This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#cgo CFLAGS: -x objective-c | |
#cgo LDFLAGS: -framework Cocoa | |
#import <Cocoa/Cocoa.h> | |
int | |
StartApp(void) { | |
[NSAutoreleasePool new]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample usage: "checksites.py eriwen.com nixtutor.com ..." | |
import pickle, os, sys, logging | |
from httplib import HTTPConnection | |
from smtplib import SMTP | |
def email_alert(alert,subject='You have an alert'): | |
fromaddr = "youremail@domain.com" | |
toaddrs = "youremail@domain.com" |