Skip to content

Instantly share code, notes, and snippets.

@harrisony
Created April 7, 2013 01:26
Show Gist options
  • Save harrisony/5328444 to your computer and use it in GitHub Desktop.
Save harrisony/5328444 to your computer and use it in GitHub Desktop.
quick down for everyone or just me check
#!/bin/sh
wget -q -O - "http://downforeveryoneorjustme.com/$1" | grep -E '.*class="domain"' | sed 's/<a href.*>\(.*\)<\/a>/\1/' | sed 's/<\/span>//'
@harrisony
Copy link
Author

harrisony@phosphorus ⮀ ~/bin ⮀ sh down.sh google.com
It's just you. http://google.com is up.
harrisony@phosphorus ⮀ ~/bin ⮀ sh down.sh mitie.edu.au
It's not just you! http://mitie.edu.au looks down from here.

@kanerogers
Copy link

parsing html with regexes again??

stay classy, @harrisony

@harrisony
Copy link
Author

@kanerogers ❤️ made my day seeing that comment 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment