This file contains hidden or 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
#!/bin/bash | |
REPOSITORY_DIR=$1 | |
BACKUP_DESTINATION=$2 | |
CURRENTDATE=$(date +"%Y_%m_%d") | |
BACKUP_ZIP=$BACKUP_DESTINATION$CURRENTDATE".zip" | |
echo "Backing up under the name of "$CURRENTDATE" to "$BACKUP_ZIP | |
function backup_mercurial_repo { |
This file contains hidden or 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
#! /usr/bin/python | |
from scapy.all import * | |
import sys, ifaddr, os | |
bad_sites = [ | |
'reddit.com', | |
'youtube.com', | |
'news.ycombinator.com', | |
'wsj.com', |