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/env python | |
import os | |
import json | |
from sys import argv | |
from time import strftime | |
def firstrun(): | |
x = {} | |
x['jf'] = raw_input("File name?: ") |
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
#!/opt/local/bin/python | |
BLOCK_THRESHOLD = 1000 | |
from scapy.all import rdpcap,DNSQR | |
from sys import argv | |
# FIXME: Idiot proof this. | |
packets = rdpcap(argv[1]) |
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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
setopt autocd extendedglob notify | |
bindkey -e | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/home/dmcnish/.zshrc' |
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/bash | |
synclient HorizHysteresis=10 VertHysteresis=10 CircularScrolling=1 CircScrollTrigger=1 TapButton1=1 TapButton2=3 TapButton3=2 | |
syndaemon -i 1.0 -t & |
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 | |
""" | |
Who owns the OUI? IEEE knows. | |
Auto-refreshes once a month. | |
Run with -u to force update. | |
""" | |
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 | |
""" | |
Who owns the OUI? IEEE knows. | |
Run with -u to force update. | |
""" | |
from __future__ import print_function | |
from urllib import urlopen | |
import sys |
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 | |
import re | |
from sys import argv | |
m = open('macs.txt', 'r').read() | |
log_file = '' | |
if '-z' in argv: | |
from gzip import open |
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 | |
import urllib2 | |
from base64 import b64encode | |
import bs4 | |
import time | |
hostname = 'nagioshost.example.tld' | |
nagios_prefix = '/nagios' | |
proto = 'http' |
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
tell application "Google Chrome" | |
set the clipboard to URL of active tab of front window as string | |
end tell | |
tell application "Wedge" | |
activate | |
end tell | |
-- You will need to tick "Enable support for assistive | |
-- devices" in System Preferences -> Accessibility | |
tell application "System Events" |
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
tell application "Safari" | |
activate | |
set the clipboard to URL of front document as string | |
end tell | |
tell application "Wedge" | |
activate | |
end tell | |
-- You will need to tick "Enable support for assistive |