Our great sponsors
|16 days ago||11 months ago|
|Vim Script||Emacs Lisp|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
would you use rust for scripting?
6 projects | reddit.com/r/rust | 20 Mar 2023
find-invalid-utf8: walks a directory tree and prints invalid UTF-8 in files using nice hex escapes with coloring. This is useful for honing on in where invalid UTF-8 occur. You have a good bet of finding some by checking out any moderately sized repository of code. The Linux kernel used to have some. The Mozilla repo does. The CPython repo does too. This is why it's important for CLI tools to deal with invalid UTF-8 gracefully in some way.
What are some less popular but well-made crates you'd like others to know about?
12 projects | reddit.com/r/rust | 8 Jan 2023
Yeah it's great! I used it to implement a little utility to convert a subset of SMS/MMS messages from an XML backup to a more readable plain text version: https://github.com/BurntSushi/dotfiles/blob/0b075d79a6ff8812a1f48a37b9858938b3eadc58/bin/rust/searchsms/main.rs
Ask HN: Can I see your scripts?
73 projects | news.ycombinator.com | 15 Aug 2022
My dotfiles: https://github.com/BurntSushi/dotfiles
Here are some selected scripts folks might find interesting.
Here's my backup script that I use to encrypt my data at rest before shipping it off to s3. Runs every night and is idempotent. I use s3 lifecycle rules to keep data around for 6 months after it's deleted. That way, if my script goofs, I can recover: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
I have so many machines running Archlinux that I wrote my own little helper for installing Arch that configures the machine in the way I expect: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
A tiny little script to recover the git commit message you spent 10 minutes writing, but "lost" because something caused the actual commit to fail (like a gpg error): https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
A script that produces a GitHub permalink from just a file path and some optional file numbers. Pass --clip to put it on your clipboard: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae... --- I use it with this vimscript function to quickly generate permalinks from my editor: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
A wrapper around 'gh' (previously: 'hub') that lets you run 'hub-rollup pr-number' and it will automatically rebase that PR into your current branch. This is useful for creating one big "rollup" branch of a bunch of PRs. It is idempotent. https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
Scale a video without having to memorize ffmpeg's crazy CLI syntax: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
Under X11, copy something to your clipboard using the best tool available: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae...
Is it common for you guys to have an update break your system?
2 projects | reddit.com/r/archlinux | 11 Aug 2022
Otherwise, the most common "breakage" I get is when I forget to update in a while. Used to be a mostly non-issue until package signing became a thing. Now I get lots of signing errors when I update. When that happens, I run this script and it usually fixes things: https://github.com/BurntSushi/dotfiles/blob/2f58eedf3b7f7dae7f0a7cea1a641459e25e5d07/bin/pacman-fix-keys
Tauri reached 1.0
2 projects | reddit.com/r/rust | 16 Jun 2022
Sadly, at work, I can't use my own bespoke setup any more. I'm effectively forced to use GNOME, which has the same braindead support for multiple monitors that KDE has. These days, I just gave up on multiple monitors and work on my laptop in my sunroom at home. Back when I was in the office and using multiple monitors, it pretty much sucked, but I did write a little script that lets me at least move focus between monitors using my keyboard while respecting the window stacking order. I had intended to expand it with more stuff, but then COVID hit, my sunroom became my work environment and multiple monitors became a luxury I didn't care about any more. For work, anyway.
Fd: A simple, fast and user-friendly alternative to 'find'
18 projects | news.ycombinator.com | 20 May 2022
The zsh builtin with a custom TIMEFMT: https://github.com/BurntSushi/dotfiles/blob/965383e6eeb0bad4...
Git ignores .gitignore with .gitignore in .gitignore
4 projects | news.ycombinator.com | 18 May 2022
That's what I used to do, but I switched to Josh's strategy a couple years ago. It doesn't "blow up" git-status. If some new piece of software creates a new directory with a bunch of random stuff in it, git-status will just show you the directory since it is is untracked, and not everything in it.
archinstall is actually good
2 projects | reddit.com/r/archlinux | 2 Aug 2021
But I did that enough that I've scripted most of it: https://github.com/BurntSushi/dotfiles/blob/caed7921e48d112cc8932b33b81013fcbbcb2e08/bin/arch-install
What do you use for writing rust code?
15 projects | reddit.com/r/rust | 11 May 2021
For docs and license, see: https://github.com/BurntSushi/dotfiles/tree/master/.doc15 projects | reddit.com/r/rust | 11 May 2021
This is why I kept mine private for so many years too. A bit ago, I cleaned house and published them: https://github.com/BurntSushi/dotfiles
Zed – A high-performance, multiplayer code editor written in Rust. Now in public beta
10 projects | reddit.com/r/rust | 15 Mar 2023
Sounds like what you want is emacs, but preconfigured. In that case, have you tried Doom Emacs, Spacemacs or any of the myriad of others like those?
How to specify formatter for LSP mode?
2 projects | reddit.com/r/DoomEmacs | 7 Sep 2022
Emacs for Professionals
11 projects | news.ycombinator.com | 3 May 2022
The performance lag of Spacemacs was addressed by Doom Emacs ( https://github.com/hlissner/doom-emacs ). Have you tried Doom Emacs by any chance. After syncing everything, the performance is stellar in my opinion.
Please help me in translating my vimrc to emacs equivalents.
4 projects | reddit.com/r/emacs | 27 Apr 2022
but I just realized, you're probably better off using doom emacs. The defaults are sane, customizations are almost always optional and the community's really active/helpful. (Disclaimer: I'm a doom emacs user with ~2k lines of config)
Just discovered emacs as a long term vim user and it's incredible
13 projects | reddit.com/r/vim | 26 Apr 2022
While Doom is more opinionated, it's not too difficult make Emacs your own, most of the choices are optimized anyway. Currently the head of Spacemacs devs is not active on the project anymore. Also I don't think it's hard to upstream code to Doom, as long as the code is thoroughly written, take a similar example on both sides: the introduction of a completion engine as layer/module (same packages are installed): - https://github.com/syl20bnr/spacemacs/pull/14901: 23 comments, 7 participants - https://github.com/hlissner/doom-emacs/pull/4664: 576 comments, 20 participants13 projects | reddit.com/r/vim | 26 Apr 2022
You should definitely mention Doom Emacs - it will make Vimmers instantly feel at home.
What would you consider a modern lisp workflow/toolchain?
10 projects | reddit.com/r/lisp | 25 Apr 2022
Also Doom emacs has one. https://github.com/hlissner/doom-emacs https://github.com/hlissner/doom-emacs/tree/master/modules/lang/common-lisp
Windows, Frames... great...but sessions?!
6 projects | reddit.com/r/emacs | 23 Apr 2022
In doom emacs I use workspaces https://github.com/hlissner/doom-emacs/blob/develop/modules/ui/workspaces/autoload/workspaces.el
Does anyone use Emacs to development big Golang project like Kubernetes?
4 projects | reddit.com/r/emacs | 19 Apr 2022
I've been using Emacs(Doom Emacs) for Golang development for a while and everything is good so far, but I really have troubles when I use it to explore Kubernetes source code today, everything is very very slow which makes the entire editor almost unusable: gopls seems not respond at all, guru eats all of the CPU but all features just not working, and I even got the following error messages for simple saving:
What do you do in your GNU/Linux computer other than opening terminal and editing config files?
4 projects | reddit.com/r/linuxmasterrace | 15 Apr 2022
I use bottom instead of htop. I am using most of my time in terminal. I am using the window manager just to visually see my different terminals operate at the same time! I also use doom-emacs (emacs in 'evil mode', that is with vim keybindings. works very well supporting org-mode). I also use terminal version of vim, and i am actively searching for new terminal tools and cli programs with tldr pages.
What are some alternatives?
spacemacs - A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
Visual Studio Code - Visual Studio Code
neovim - Vim-fork focused on extensibility and usability
prelude - Prelude is an enhanced Emacs 25.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.
helm - Emacs incremental completion and selection narrowing framework
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
source-code-pro - Monospaced font family for user interface and coding environments
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
evil - The extensible vi layer for Emacs.
vscode-neovim - Vim-mode for VS Code using embedded Neovim
emacs-ipython-notebook - Jupyter notebook client in Emacs
pylance-release - Documentation and issues for Pylance