Tag Archives: script

One command to rule…. alright, just return an IP

One of my friends who is into networks always joke, as why there is no single Unix command to return only the IP address and nothing else. Here is a script that just does that one thing and nothing else. … Continue reading

Posted in Hacks | Tagged , , | 2 Comments

Automating Drupal workflow using Git and Drush

Update Nov 11, 2009: Updated the script to accept username and server name as arguments and to print syntax help if no argument is passed. It would eliminate to modify script for different servers. Drupal rocks for some things, its … Continue reading

Posted in Programming | Tagged , , , , , , | 3 Comments

A simple shell trick

Here is shell a trick that I used lately. Before moving to new system (where I enforce quotas on all home folders), I had portable home directories for all the users on my shared server storage. The old setup did … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Jukebox in a single line

If you are like me, who starts starts iTunes with default library and realize you have heard the same song 8 times in the last week, here are two one-line-Jukebox scripts for you. The scripts randomly choose and play songs … Continue reading

Posted in Programming | Tagged , , , , , , , | Leave a comment