til Easy Copy on Write MacOS I stumbled on this while reading through some notes about git worktrees, and found it to be a pretty handy trick. The version of cp on MacOS supports -c for creating copy-on-write copies of a file. E.g., this command would copy a
til Renumber all windows in tmux If you have a large number of windows open in tmux [https://github.com/tmux/tmux], it can be a pain when deleting some of them as the numbers are no longer consxistent. You could have 20 windows open, but the next window you
til Compile Emacs 27 on CentOS 7 Quick instructions for installing Emacs 27 on CentOS 7 since it doesn't seem to be available in any popular yum repositories. Install dependencies: # Note: This installs dependencies for X11 as well. Change this and the ./configure below if you don't
til Upload files to Nextcloud using curl (and webdav) I recently had the need to upload a bunch of PDF files from a linux server to my Nextcloud [https://nextcloud.com/] instance. Nextcloud doesn't currently have a headless linux client, but WebDAV [https://en.wikipedia.org/wiki/WebDAV] is available by