This script establishes a null session with a Windows host, before running the standard net view command to list out the available shares. This technique will sometimes yield information that would be normally be denied without authentication

Searches through all Java .jar files in the current directory, and in any sub-directories, looking for the class file that you specify. This can be very handy if you need to use a class in a Java programme, but aren't sure which .jar file contains it

This script attempts to ping a list of well-known internet hosts, and if it fails to contact any of them will reboot the system. I have used this with great success on my IPCop firewall, which occasionally drops its internet connection and will reconnect if rebooted. Schedule this using cron to perform a connectivity check every 15 minutes