Skip to content

Instantly share code, notes, and snippets.

View marcosValle's full-sized avatar

Marcos Valle marcosValle

View GitHub Profile
@marcosValle
marcosValle / gist:6fdd7e9d64c64b413cef7247aa35ed03
Created June 6, 2016 01:43 — forked from sanbornm/gist:177420
Simple script to check when your site changes status codes
import pickle, pprint, time, os
import httplib
import smtplib
def emailAlert(alert,subject='You have an alert'):
fromaddr = "youremail@domain.com"
toaddrs = "youremail@domain.com"
# Add the From: and To: headers at the start!