Category Archives: unix

Bespin Gotchas

In case of trouble connecting to Bespin from an external machine, try setting the IP address to 0.0.0.0 Either change the file pavement.py: 62 63 64 65 66 67 68 69 70 71 72 server=Bunch( # set to true to … Continue reading

Posted in code, how-to, unix, www | Leave a comment

Sorted, Human Readable file sizes via du

du -d 1 | sort -n | cut -f 2 | xargs du -h -d 0

Posted in code, unix | 1 Comment

Get email updates when your IP changes/ Python DynDns update client

I use DynDns to map my ISP provided dynamic IP to a static hostname. For some reason, the DynDns provided update clients don’t always work for me and often leave my hostname pointing to a dead or (worse) someone else’s … Continue reading

Posted in code, how-to, unix, www | 26 Comments

Reliance Wireless broadband auto-login (and logout) script(s)

The old “curl” based method stopped working yesterday when Reliance got a new login page as well as a new backend. It seems Reliance is now also looking at Cookies during authentication. Here’s a little Python script that you can … Continue reading

Posted in code, india, unix, www | 56 Comments

echo what you read with IFS

Sample this code for reading a file line by line: 1 2 3 4 5 #!/bin/ksh while read LINE do echo "$LINE" done < $FILENAME It works fine in most cases, where by most cases I mean your lines don’t … Continue reading

Posted in code, unix | Leave a comment