Skip to content

Instantly share code, notes, and snippets.

View pkumaschow's full-sized avatar

Peter Kumaschow pkumaschow

  • Melbourne, Australia
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pkumaschow on github.
  • I am kumaschowp (https://keybase.io/kumaschowp) on keybase.
  • I have a public key ASDGFha9cKK_onTSQQ5JqzkJXltdtztQS2O39PNB4YBJDQo

To claim this, I am signing this object:

@pkumaschow
pkumaschow / webcheck.py
Created December 7, 2014 08:58
python website status check
#!/usr/bin/python
import requests
import sys
#sites.txt contains a lists of hostnames one to a line
sites = [line.strip() for line in open("sites.txt")]
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)