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"
xinput set-prop 13 "Device Enabled" 0
how to disable touchpad, and
xinput set-prop 13 "Device Enabled" 1
how to enable again
Allows to copy the file contents to X clipboard, and then be pasted in any application with the middle mouse button.
Will track your mouse and save it to a file.
You can use gnuplot to graph it:
gnuplot -persist <(echo "unset key;unset border;unset yzeroaxis;unset xtics;unset ytics;unset ztics;plot './mouse-tracking' with points lt 1 pt 6 ps variable")