Skip to content

Instantly share code, notes, and snippets.

@bclubb
Created June 6, 2011 20:36
Show Gist options
  • Select an option

  • Save bclubb/1011039 to your computer and use it in GitHub Desktop.

Select an option

Save bclubb/1011039 to your computer and use it in GitHub Desktop.
Let's you know when the developer site is back up. hopefully. Remember to chmod +x i_want_my_ios5.sh and then run ./i_want_my_ios5.sh from the terminal
#!/bin/sh
while [ "true" ]
do
RESPONSE=$(curl --write-out %{http_code} --silent --output /dev/null http://developer.apple.com/devcenter/ios/index.action)
if [ "$RESPONSE" -ne "302" ]; then
#afplay "Finished.mp3" #uncomment the start of the line and add your own sound if you want something to play
echo "It's up!!!!"
fi
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment