For some reason my WiFi on my MacBook keeps flaking out and I have to disconnect and reconnect to the access point to restore the connection. I managed to write a simple shell script to do this, and I can run the script easily with QuickSilver or through Spotlight.