OSX terminal spell to notify you when internet connection is back
Here's a simple loop that will notify you as soon as your internet connection is back. It will basically try to ping Google's first DNS server until it suceeds.
[code language="shell"]
until…