Geek · Things I've Learned

Ansible: Running Commands in Dry-Run Mode in Check Mode

Say you have an Ansible playbook that invokes a command. Normally, that command executes when you run ansible normally, and doesn’t execute at all when you run ansible in check mode. But a lot of commands, like rsync have a -n or –dry-run argument that shows what would be done, without actually making any changes. So it… Continue reading Ansible: Running Commands in Dry-Run Mode in Check Mode

Hacking · Things I've Learned

Programming Tip: Open and Close at the Same Time

One useful programming habit I picked up at some point is: if you open or start something, immediately close it or end it. If you open a bracket, immediately write its closing bracket. If you open a file, immediately write the code to close it. These days, development environments take care of the niggling little… Continue reading Programming Tip: Open and Close at the Same Time

Hacking

I Don’t Want Flying Cars; I Just Want Working Bluetooth

I love Bluetooth. I love that it’s supported on all my various electronic gadgets, and lets them talk to each other and exchange information, be it streaming audio data, or a text note, or what have you. Or at least I love the idea of Bluetooth. The unfortunate reality is that the implementations that I’ve seen… Continue reading I Don’t Want Flying Cars; I Just Want Working Bluetooth