New To Linode? Starting Out Right…

Big thanks to the great reps of Linode for turning me on to their hosting at PyCon last week. Since I’m starting with a fresh Ubuntu server, I wanted to do it right, so I spent some time learning how to properly do public/private keys for logins and to disable remote root logins…

Playing Perl: Counting Occurrences

Ever have a list of phrases and wonder which individual words appear the most? Me too! Here’s a handy Perl command that will get the job done: perl -F\t -lane “map{$w{$_}++} split (/ /,$F[0]); END { print qq|$_\t$w{$_}| foreach sort{$w{$b}<=>$w{$a}} keys(%w) } ” < INPUT_FILE > OUTPUT_FILE This assumes: the input contains a TAB separated […]

Grabbing An Expired Twitter Username

Some jerkwad is squatting on the perfect Twitter username for your next project… What do you do? Complain on the basis of a violation of Twitter’s Terms of Service? I don’t think so… that might wake up the absentee user, then you’d never get the name. If you have access to a shell, try this […]