Skip to content

Instantly share code, notes, and snippets.

View annelbcodes's full-sized avatar

Anne Barrios annelbcodes

  • Asia, Earth
View GitHub Profile
@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")
@bpainter
bpainter / arrows.scss
Created July 15, 2011 19:08
Sass mixin for arrows based on The Shapes of CSS from Chris Coyier http://css-tricks.com/examples/ShapesOfCSS/
// --------------------------------------------------------
// arrows
// --------------------------------------------------------
// $direction: top, left, right, bottom, top-left, top-right, bottom-left, bottom-right
// $color: hex, rgb or rbga
// $size: px or em
// @example
// .element{
// @include arrow(top, #000, 50px);
// }
@dryan
dryan / check_site.py
Created July 1, 2010 18:16
check_sites shell script to monitor a list of websites and send notices when they are down.
#!/usr/bin/env python
sites = [
'google.com',
]
USE_BOXCAR = True
USE_GROWL = True
BOXCAR_EMAIL = ''
BOXCAR_API_KEY = ''