A short program I wrote this evening when the internet was down.  It tries pinging google every 10 seconds, and when it succeeds, it plays the success music.