Blog

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

Rsync hangs forever

2020-06-22

Upset confused bug My backup system uses rsync and for the last ten days not a single backup had succeeded, they had all timed out. Then my home drive died. It still took a few days until I figured out why rsync hang, but in the end I did. more

Faucet requests May 2020 I run a bitcoin testnet faucet. Testnet coins are supposed to be worthless, but there is scarcity and some people try to get as many as they can. I try to prevent this to keep the faucet running and useful for as many people as possible, for as long as possible. 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

My i3 desktop Inspired by a comment on reddit I am sharing my screen locking configuration in this post, I use i3, xautolock and a custom lock script. more

i3 window manager 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

Yes, I felt like I had to automate this after installing minikube on a few machines in a row. more

Wagtail has "scheduled" pages that are not yet visible on the site. I think the interface is not ideal as you need to click the Publish button after setting a publication date on the Settings tab. I'm not sure how exactly the data models work, but the actual publication is … more

I have a custom sync script for Firefox because the built-in sync is simply not thorough enough. To make the sync more reliable I wanted to close Firefox when it is running. This was surprisingly hard to accomplish, but once I found wmctrl the problem was solved. Notice that this … more

DjangoPythonBitcoinTuxDebianHTML5 badgeSaltStackUpset confused bugMoneyHackerUpset confused bugX.OrggitFirefoxWindowMakerBashIs it worth the time?i3 window managerWagtailContainerIrssiNginxSilenceUse a maskWorldInternet securityPianoFontGnuPGThunderbirdJenkinshome-assistant-logo