Tag archive for "Automation"

I have always tried to work smarter, not harder. When I started my career in IT I had a lot to learn, and I always enjoyed it when I could automate a task or make it more reliable. Automation saves time that can be spent on more important things like continuous learning, delivering features and communicating with others.

Supernova Lately I've been getting lots of errors similar to pkg_resources.extern.packaging.version.InvalidVersion: Invalid version. Here's how I fixed them. more

Debian On Debian-based systems /lib/modules tends to fill up with obsolete files. The reason is that kernel packages have to be purged to remove those files, and that doesn't happen while normal upgrade/remove operations. This script is my solution to this problem. Deletion is disabled by default, verify the output of … more

Dice The folder sensor in home assistant is good if you need a random file from one directory, but how about a random file from a file hierarchy? more

Yachts I didn't want to download the AWS CLI client over and over, so I wrote a tiny wrapper script to run it in a docker container. I don't use it a lot as setting up shell completions is a pain, but it can be useful. more

Letter Procmail is an old tool, and the reason you're using it today is probably because you started using it many years ago, and changing to something else is not something you want to do. Procmail doesn't know about unicode, so unicode in headers is problematic. This post contains my solution to creating procmail rules that understand unicode subjects. more

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

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

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

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