commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
To quickly add some remark, comment, stamp text, ... on top of (each of) the pages of the input pdf file.
Can be used in a firewall script, e.g. to avoid logging broadcast packtes.
Instead of looking for the right ip address, just pick whatever address you like and set a static ip mapping.
There's already a proper command for what the former alternative tried to script
Update twitter from commandline, without revealing your password and without having to type it interactively.
You 'll need to put a line "machine twitter.com login TWITTERUSER password TWITTERPASS" in $HOME/.netrc and better chmod 600 that file.
you don't need to echo, just a plain redirect is enough to empty the file
Possible use, to filter something in stderr:
(/usr/bin/$COMMAND $PARAM 3>&1 1>&2 2>&3 | grep -v $uninteresting_error ) 3>&1 1>&2 2>&3
Used for moving stuff around on a fileserver