Skip to content

Instantly share code, notes, and snippets.

View phin3has's full-sized avatar

Brandon E. phin3has

View GitHub Profile
# Set up ssh-agent
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initializing new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add;
@phin3has
phin3has / pingalyzer.py
Created May 24, 2013 19:17
This is the start of my first real Python program "Pingalyzer.py"
import sys, os, re
#in Python3.3 there's a sick module called "ipaddress", Nix hasn't pulled 3.3 into the reps and I don't feel like forcing that on people.
#import ipaddress
logo = '''
____ ____ ____ ____ ____ _ __ __ _____ ___ ____
| \ || \ / | / || | | | || | / _]| \
| o ) | | _ || __|| o || | | | ||__/ | / [_ | D )
| _/| | | | || | || || |___ | ~ || __|| _]| /
| | | | | | || |_ || _ || ||___, || / || [_ | \