Skip to content

Instantly share code, notes, and snippets.

View BenDerPan's full-sized avatar
💭
I may be slow to respond.

BenDerPan BenDerPan

💭
I may be slow to respond.
View GitHub Profile
@BenDerPan
BenDerPan / website-monitoring-1
Created September 26, 2017 07:41 — forked from adeekshith/website-monitoring-1
Scripts for website monitoring using Python
#!/usr/bin/env python
# sample usage: checksites.py eriwen.com nixtutor.com yoursite.org
import pickle, os, sys, logging
from httplib import HTTPConnection, socket
from smtplib import SMTP
def email_alert(message, status):
fromaddr = '[email protected]'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev