Skip to content

Instantly share code, notes, and snippets.

View andrix's full-sized avatar

Andrés Moreira andrix

View GitHub Profile
@andrix
andrix / .pylintrc
Created May 23, 2012 18:03
.pylintrc
# This is a pylint configuration file tuned for checking scrapy code
[MASTER]
# Specify a configuration file.
#rcfile=
# Profiled execution.
profile=no
@andrix
andrix / isup.py
Created December 2, 2011 16:54
isup: simple script that query isup.me and tell you if a site is UP/DOWN
#!/usr/bin/env python
import re
import sys
from urllib import urlopen
def isup(domain):
resp = urlopen("http://www.isup.me/%s" % domain).read()
return "%s: %s" % (domain, "UP" if re.search("It's just you.", resp,
re.DOTALL) else "DOWN")