This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true; do | |
if curl -silent -A "iMacAppStore/1.0.1 (Macintosh; U; Intel Mac OS X 10.6.7; en) AppleWebKit/533.20.25" 'http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewMultiRoom?fcId=489264329&mt=12&s=143461' | grep -i "mountain lion" ; then | |
echo "Hello, Kitty" | |
say "MOUNTAIN LION IS AVAILABLE" | |
break | |
else | |
echo "Nope" | |
fi | |
sleep 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OfflineIMAP config for GMail backup (only tested on OS X) | |
# Save it as ~/.offlineimaprc | |
# NB: this will sync *everything*, including All Mail, Spam, Bin, etc. | |
[general] | |
metadata = ~/.offlineimap | |
accounts = GMail | |
maxsyncaccounts = 1 | |
# You might want to change the below to ui = TTY.TTYUI the first time you run offlineimap | |
# It can choke on large attachments and GMail might reset the connection if you download too much |