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
2013-05-16 17:28:17 mikeboers@maxwell: ~ | |
$ traceroute -w 1 8.8.8.8 | |
traceroute to 8.8.8.8 (8.8.8.8), 64 hops max, 52 byte packets | |
1 * * * | |
2 * * * | |
3 * * * | |
4 * * * | |
5 * * * | |
6 * * * | |
7 * 64.59.148.241 (64.59.148.241) 16.647 ms !X * |
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
import csv | |
import itertools | |
import sys | |
# Read all Tab-delimited rows from stdin. | |
tsv_reader = csv.reader(sys.stdin, delimiter='\t') | |
all_data = list(tsv_reader) | |
# Transpose it. | |
all_data = list(itertools.izip_longest(*all_data, fillvalue='')) |
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
function pym { | |
python -m $@ | |
} | |
function _pym_complete { | |
local executable current previous options | |
executable=${COMP_WORDS[0]} | |
current="${COMP_WORDS[COMP_CWORD]}" | |
previous="${COMP_WORDS[COMP_CWORD-1]}" |
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
LAHLERIRAHLEDDIKWKT | |
CNANOCIESRRAUNAFAOG | |
WKRGGVREGAASNSESLRB | |
TETEUAEGNLWOGNTKDET | |
IUHLUHTCITDSERIAAAA | |
RECKSUPERHEROEWSRRC | |
EATCTVNCEANRNETGTKK | |
NBAOAENNHRFAPMAKHEY | |
IKGPREDATORTARRLVRR | |
LSYSKCRVFHNSYYIAATU |
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
import os | |
import sys | |
import logging | |
# Turn logging down premptively. | |
logging.getLogger("shotgun_api3").setLevel(logging.WARNING) | |
import shotgun_api3 |
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
import argparse | |
import datetime | |
import json | |
import os | |
import re | |
import requests | |
parser = argparse.ArgumentParser() |
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
# Lets define a `classproperty` such that it works as a property on both | |
# an object and it's type: | |
class classproperty(object): | |
__slots__ = ('getter', ) | |
def __init__(self, getter): | |
self.getter = getter |
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
from __future__ import division | |
from argparse import ArgumentParser | |
import math | |
import os | |
import sys | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import cv2 |
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
import glob | |
import threading | |
from queue import Queue | |
import av | |
packet_queue = Queue(1) | |
def read_target(): |
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
from __future__ import division | |
import random | |
import math | |
import hashlib | |
import hmac | |
def str_to_int(input): | |
out = 0 | |
for c in input: |