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:
Use sed to comment out any up/down bindings in zsh
Col 1 is swapped sum in kb
Col 2 is pid of process
Col 3 is command that was issued
Every time this is run it will change your background picture. For added fun
Add some DBUS magic:
. $HOME/.dbus/session-bus/`cat /var/lib/dbus/machine-id`-0
and a crontab entry:
*/5 * * * * above_command_in_script.sh >/dev/null 2>/dev/null
now wallpaper changes every 5 mins
For all of the jpgs in a directory, determine their size and if below a threshold remove them forcefully.