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
#!/bin/sh | |
. /home/ec2-user/.bash_profile | |
. /etc/profile.d/aws-apitools-common.sh | |
region=us-east-1 | |
# these should be configured for each NAT instance | |
target1=8.8.8.8 | |
target2=8.8.4.4 | |
active_rt=rtb-ACTIVE | |
standby_rt=rtb-STANDBY |
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
#!/bin/bash | |
oldifs=$IFS | |
IFS=' | |
' | |
[ $# -ne 2 ] && { echo "Usage: $0 sourceDirectory destinationDirectory" ; exit 1; } | |
[ ! -d "$1" ] && { echo "$1 is not a valid directory"; exit 1; } | |
[ ! -d "$2" ] && { mkdir -p "$2"; } | |
src=$(cd "$1" ; pwd) | |
dst=$(cd "$2" ; pwd) | |
find "$src" -type d | |
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
rsync -ahvzP |
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
#!/usr/bin/python | |
import sys | |
import hashlib | |
from OpenSSL.crypto import * | |
def main(): | |
if(len(sys.argv) != 3): | |
print sys.argv[0] + " /path/to/file.p12 ProcessedMachineIdentifier" | |
sys.exit(0) |