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:
Randomly remaps the first 5 mouse buttons (left, middle, right, upscroll, downscroll) in X for some reasonably harmless trolling. Non-persistant unless added to ~/.xinitrc or similar. The 'shuf' command is present on most modern desktop distros.
To reverse use xmodmap -e "pointer = 1 2 3 4 5"
a quick one-line way to disable caps lock while running X.