Every time I create a new post in this blog I like to toot or tweet about it. Instead of manually doing this, I have my Mac Mini run a little shell script on a cron job, that does this automatically for me.

You can download the source for this script over at github. The way it works is pretty simple:

Running the script is trivially easy (and it’s all in Kotlin) so it’s easy to follow the logic. All you need to do to run this script is:

brew install kotlin
kotlin tootbot.main.kts

That’s it! Just remember to update the variables at the top of the file.


  1. Not doing Twitter for obvious reasons↩︎