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:
Lets you set all the java alternatives at once to a matching version. Also has options for just changing the jre or the plugin.
Have your screen session running in multiple places. (warning, things start to look weird if the terminal windows have different dimensions)
This will ring the system bell once if your script exits successfully and twice if it fails. So you can go look at something else and it will alert you when done. Don't forget to use 'xset b [vol [pitch [duration]]]' to get the bell to sound the way you want.