Last active
December 20, 2015 05:09
-
-
Save cruinh/6076590 to your computer and use it in GitHub Desktop.
lists just the apple developer portal services that are online right now. Meant to be used with Geektool (http://projects.tynsoe.org/en/geektool/)
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
echo "Apple Developer Services Online\n"; curl -s https://developer.apple.com/support/system-status/ | grep "online-icon.*href" | grep -o '<a href[[:print:]]*</a>' | grep -o '>.*<' | sed -e 's/.$//' -e 's/^.//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
updated again to use curl instead of lynx (thanks Jon... not sure why I didn't think of that first!)
...and to combine the sed commands into one (thanks again Jon!)