Re:GitHub Outage
by madmod on Wednesday January 27, 2016 @07:47PM
(#10984999)
For the impatient. I would make a gist but...
[ Parent
| on HN ]
Here is a version which uses OSX's say command for a spoken announcement of "github is up again". It also checks once every minute instead of once a second.
while true; do curl -s https://status.github.com/api/status.json | egrep 'good|minor' && say -r 160 "github is up again" || echo -n .; sleep 60; done
Edit: accept a status of minor as an indication of up-ness.
Re:GitHub Outage
by pramodliv1 on Friday January 29, 2016 @12:16PM
(#10996585)
say "github" does not get the pronunciation right. say "git hub" is the way to go!
Re:GitHub Outage
by such_a_casual on Wednesday January 27, 2016 @08:03PM
(#10985132)
I'm not sure how ddos'ing github would help with the outage.
runs script
Judging by the fact that their status page is still up I'd say that the service is pretty independent of the rest of the site. If my one-liner gets popular enough to do damage to Github when China can't then I will be extremely proud of myself. :D
Ah, I like yours better for GitHub specifically, but for any website, my .bashrc got this as its latest addition tonight:
# watch for a website to come back online
# example: github down? do `mashf5 github.com`
function mashf5() {
watch -d -n 5 "curl --head --silent --location $1 | grep '^HTTP/'"
}