Code Archive

Machine This bash completion script ensures that you always get the matching bash completions for the installed kubectl, minikube and helm. Simply source it and it will do the rest. more

Tux I run Debian unstable on a few machines and wanted to know if I was always running the latest kernel. I've added the script below to my shell startup. And then I went on and added it to some servers as well, after a few hundred days of uptime there … more

Emoji I recently played a bit with emojis, the result is this script which lets me search existing emojis and transform strings. It's a trivial Python script that leverages https://github.com/carpedm20/emoji more

VNC Using a VNC client over an SSH tunnel can be useful. I sometimes use that setup when I have a GUI application running remotely that I don't want to restart. Using VNC I can quickly take control of it. more

I had never touched the Irssi default theme before, I'm very happy with it. I've been using adv_windowlist for a few years now to manage the many channels I'm in. And recently I switched to a new terminal that apparently supports more colors than my previous one, and adv_windowlist had … more

Salt This can be annoying when using SaltStack, you run saltutil.sync_grains, or a highstate, but your custom grain is never synced to the minion. This happened to me while using multiple environments and when the grain was not in the base environment. What worked for me to get a successful sync … more

A while ago I published a snippet to generate an OTP auth token from the command line, but I recently got a new phone and had to re-add all my secret keys to a different authenticator app. As I keep all the secret keys backed up I made another script … more

While migrating my website that also runs a bitcoin testnet faucet I decided to finally automate the bitcoind startup using supervisord. I had already done that in other locations but had forgotten some important settings. Bitcoind takes some time to start, and supervisord needs to know. I also had to … more

I use a custom screen locking script together with xautolock for automatic locking and manual locking when needed. To prevent multiple i3lock instances from starting I use an atomically created mutex. The script has somewhat excessive logging that still remains from the time it was buggy. more

Dice I use the same script on multiple machines to pick a random desktop background and i3lock wallpaper. It performs a few sanity checks before running and selects an image from a directory based on the current screen size. more

DjangoPythonBitcoinTuxDebianHTML5 badgeSaltStackUpset confused bugMoneyHackerUpset confused bugX.OrggitFirefoxWindowMakerBashIs it worth the time?i3 window managerWagtailContainerIrssiNginxSilenceTorWorldInternet securityFontGnuPGThunderbirdJenkins