Skip to content

Instantly share code, notes, and snippets.

@releu
releu / mountainlion.sh
Created July 25, 2012 11:59 — forked from AriX/mountainlion.sh
Script to check for Mac OS X 10.8 Mountain Lion
#!/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
# 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