4 ms·
For the impatient. I would make a gist but... while true; do curl -s https://status.github.com/api/status.json | grep good && tput bel || echo -n .; sleep 1;
by madmod 11y ago
For the impatient. I would make a gist but...
while true; do curl -s https://status.github.com/api/status.json | grep good && tput bel || echo -n .; sleep 1; done
- such_a_casual 11y agoI'm not sure how ddos'ing github would help with the outage. runs script
- madmod 11y agoJudging 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
- deleted 11y ago[deleted]
- smurpy 11y agoHere 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.
- pramodliv1 11y agosay "github" does not get the pronunciation right. say "git hub" is the way to go!
- oxguy3 11y agoAh, 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/'" }