Today I Learned

Short TIL posts

1852 posts latest post 2026-05-13
Publishing rhythm
Apr 2026 | 23 posts
I recently discovered eradicate [1] by PyCQA [2], and it’s truly impressive. Removes commented-out code from Python files References: [1]: https://github.com/PyCQA/eradicate [2]: https://github.com/PyCQA
I came across mason-nvim-dap.nvim [1] from jay-babu [2], and it’s packed with great features and ideas. No description available. References: [1]: https://github.com/jay-babu/mason-nvim-dap.nvim [2]: https://github.com/jay-babu
pypa [1] has done a fantastic job with pipx [2]. Highly recommend taking a look. Install and Run Python Applications in Isolated Environments References: [1]: https://github.com/pypa [2]: https://github.com/pypa/pipx
I like sickcodes’s [1] project Docker-OSX [2]. Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers. References: [1]: https://github.com/sickcodes [2]: https://github.com/sickcodes/Docker-OSX
I’m impressed by memray [1] from bloomberg [2]. Memray is a memory profiler for Python References: [1]: https://github.com/bloomberg/memray [2]: https://github.com/bloomberg
I like artempyanykh’s [1] project marksman [2]. Write Markdown with code assist and intelligence in the comfort of your favourite editor. References: [1]: https://github.com/artempyanykh [2]: https://github.com/artempyanykh/marksman
Check out cog [1] by nedbat [2]. It’s a well-crafted project with great potential. Small bits of Python computation for static files References: [1]: https://github.com/nedbat/cog [2]: https://github.com/nedbat
If you’re into interesting projects, don’t miss out on hatch-fancy-pypi-readme [1], created by hynek [2]. Fancy PyPI READMEs with Hatch References: [1]: https://github.com/hynek/hatch-fancy-pypi-readme [2]: https://github.com/hynek
I’m really excited about d2 [1], an amazing project by terrastruct [2]. It’s worth exploring! D2 is a modern diagram scripting language that turns text to diagrams. References: [1]: https://github.com/terrastruct/d2 [2]: https://github.com/terrastruct
I came across neogen [1] from danymat [2], and it’s packed with great features and ideas. A better annotation generator. Supports multiple languages and annotation conventions. References: [1]: https://github.com/danymat/neogen [2]: https://github.com/danymat
Looking for inspiration? kickstart.nvim [1] by nvim-lua [2]. A launch point for your personal nvim configuration References: [1]: https://github.com/nvim-lua/kickstart.nvim [2]: https://github.com/nvim-lua
Check out init.lua [1] by ThePrimeagen [2]. It’s a well-crafted project with great potential. No description available. References: [1]: https://github.com/ThePrimeagen/init.lua [2]: https://github.com/ThePrimeagen
I’m really excited about mason.nvim [1], an amazing project by williamboman [2]. It’s worth exploring! Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters. References: [1]: https://github.com/williamboman/mason.nvim [2]: https://github.com/williamboman
I came across mason.nvim [1] from mason-org [2], and it’s packed with great features and ideas. Portable package manager for Neovim that runs everywhere Neovim runs. Easily install and manage LSP servers, DAP servers, linters, and formatters. References: [1]: https://github.com/mason-org/mason.nvim [2]: https://github.com/mason-org
I like sbidoul’s [1] project hatch-pip-deepfreeze [2]. A hatch virtual environment [3] plugin to lock dependencies with pip-deepfreeze References: [1]: https://github.com/sbidoul [2]: https://github.com/sbidoul/hatch-pip-deepfreeze [3]: /virtual-environment/
yazgoo [1] has done a fantastic job with vmux [2]. Highly recommend taking a look. helper for multiplexing terminals with vim/neovim References: [1]: https://github.com/yazgoo [2]: https://github.com/yazgoo/vmux
Give github actions the -e flag in the shebang #! so they fail on any one command failure. Otherwise each line will set the exit status, but only the last one will be passed to ci. #!/bin/bash -e What is -e # [1] The -e flag to the bash command allows your script to exit immediately if any command within the script returns a non-zero exit status. This can be useful for ensuring that your script exits with an error if any of the commands it runs fail, which can help you identify and debug issues in your script. For example, if you have a script that runs several commands and one of those commands fails, the script will continue running without the -e flag, but will exit immediately if the -e flag is present. This can make it easier to troubleshoot your script and ensure that it runs correctly. Solution for Windows # [2] In windows the solution is not quite as simple. You can define a function in a Windows batch script that wraps an if statement to check the exit status of a command and handle any errors that may have occurred. Here is an example of how you might define a function called “check_error” that does this: :check_error if errorlevel 1 ( echo An error occurred! ex...
Looking for inspiration? sshfs [1] by libfuse [2]. A network filesystem client to connect to SSH servers References: [1]: https://github.com/libfuse/sshfs [2]: https://github.com/libfuse
I recently setup some vm’s on my main machine and got sick of signing in with passwords. ssh-keygen ssh-copy-id -i ~/.ssh/id_rsa.pub virt
Moving panes between tmux sessions is something that makes tmux a very flexible and powerful tool. I don’t need this feature very often, but it comes in clutch when you need it. Pull a pane from any other session # [1] Using choose-window I was able to come up with a way to select any pane withing any other session and join it into my current session. # Choose a pane to join in horizontally bind f choose-window -Z 'join-pane -h -s "%%"' Push/Pull from scratch # [2] I’ve long had this one in my tmux config, I always have a “scratch” session that I’m running, I often use for looking at things like k9s accross repos within a popup. This use case puts a pane into the scratch session, then pulls it back out. I will use this to move a pane between sessions in the rare cases I need to do this. # push the active pane into the scratch session horizonally bind -n M-f join-pane -ht scratch # pull the last active pane from the scratch session horizonally into this session bind -n M-F join-pane -hs scratch References: [1]: #pull-a-pane-from-any-other-session [2]: #pushpull-from-scratch