So, the blog now can semi-automatically1 post blog updates to my Twitter feed.

The script is infuriatingly simple (Github): thanks to Twitter API Python implementation python-twitter, the relevant part simplifies to one-liner:

status = api.PostUpdate(message)

And thus by running ./blag_tweet.py after the Jekyll build and upload phase (./blag_deploy.sh), the CLI tool automagickally makes a Tweet about the specified blog post. Neat? (Guess so, at least if I were a bit more active on Twitter…)

1: It’s not an automatic deploy hook, even if it could be; but I like to run the script explicitly by myself …