Skip to content

Instantly share code, notes, and snippets.

View ssimpson89's full-sized avatar

Stephen Simpson ssimpson89

View GitHub Profile
#!/bin/bash -e
##############################
# Created by Stephen Simpson #
# Version 0.1 #
# Last Modified: 12/05/12 #
##############################
###VARIABLES####
server.py
-------------
import SocketServer
import json
import os
import subprocess
import commands
class MyTCPServer(SocketServer.ThreadingTCPServer):
allow_reuse_address = True
@ssimpson89
ssimpson89 / s3backup.sh
Last active October 14, 2015 00:28
s3backup script
#!/bin/bash
##Notification email address
_EMAIL=email@email.com
#Bucket name
BUCKET=BUCKETNAME
ERRORLOG=/var/log/backuplogs/backup.err`date +%F`
ACTIVITYLOG=/var/log/backuplogs/activity.log`date +%F`