I just wrote one of the best one-line bash scripts of all time.

ALL TIME! curl -s -u Frank__Booth:password -d “track=heineken” http://stream.twitter.com/track.xml | grep “/screen_name” | grep -v Frank__Booth | sed -e ‘s/[^0-9a-zA-Z]//g’ | sed -e ‘s/screenname//g’ | xargs -I ‘{}’ curl –basic –user Frank__Booth:password –data status=”@{} Heineken? Fuck that shit! PABST BLUE RIBBON” http://twitter.com/statuses/update.xml

Read more

Twitter JSON stream parser

So recently I’ve had occasion to parse the Twitter JSON stream, specifically the spritzer stream for data mining purposes. Turns out this is a pretty difficult problem to solve in most languages. So here’s my Alexandrian solution to this particular Gordian knot, in Bash, because that’s just how I roll. curl -s –basic –user username:password …

Read more

Debian Diskless Cluster Howto

Inital Setup This guide will walk you through the diskless cluster install and setup process. The cluster has a head node that serves boot images to the compute nodes and the database node. We’re attempting to present a unified system image across the cluster. For this reason, all nodes are looking at the same root …

Read more

Toodledo Bash Script

So, I’ve been playing with Toodledo recently. It’s a pretty impressive web-based todo system with pretty much all the functionality you could ask for. However, I don’t really like the Ruby command line client, so I wrote my own in Bash. It requires that you have a local MTA in order to function properly. I …

Read more