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
$ go version | |
go version go1.2 darwin/amd64 | |
$ go env | |
GOARCH="amd64" | |
GOBIN="/usr/local/bin" | |
GOCHAR="6" | |
GOEXE="" | |
GOHOSTARCH="amd64" | |
GOHOSTOS="darwin" | |
GOOS="darwin" |
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 sys | |
import socket | |
import dpkt | |
f = open(sys.argv[1], 'r') | |
pcap = dpkt.pcap.Reader(f) | |
buffers = {} | |
requests = {} |
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/env python | |
import subprocess | |
import re | |
WP = re.compile(r' +') | |
def lsof(): | |
p = subprocess.Popen(['lsof', '/'], stdout=subprocess.PIPE) | |
headers = WP.split(p.stdout.readline()) # headers |
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/env python | |
from glob import glob | |
from fnmatch import fnmatch | |
from os import walk | |
from os.path import join | |
import re | |
DATE_OR_VERSION = re.compile('\.(\d{4}-\d{2}-\d{2})|(\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
#!/usr/bin/env python | |
import sys | |
from mtools.util.logfile import LogFile | |
log = LogFile(open(sys.argv[1], 'r')) | |
day = None | |
out = None | |
for line in log: | |
d = line.datetime |
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 numpy as np | |
from skimage.data import imread | |
from skimage.transform import resize | |
from skimage.color import rgb2grey | |
""" | |
http://www.hackerfactor.com/blog/?/archives/529-Kind-of-Like-That.html | |
""" | |
TWOS = np.array([2 ** n for n in range(7, -1, -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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"github.com/nranchev/go-libGeoIP" | |
"io" | |
"os" | |
"regexp" | |
"time" |
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 debian:7.5 | |
MAINTAINER <Mathieu> | |
RUN apt-get update | |
RUN apt-get -q install -y erlang make git | |
RUN useradd -d /opt/fipes --system fipes | |
ADD Makefile /opt/fipes/ |
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 debian:7.5 | |
MAINTAINER mlecarme@bearstech.com | |
ENV DEBIAN_FRONTEND noninteractive | |
# Basic needed tools | |
RUN apt-get -q update | |
RUN apt-get -q install -y mercurial bzr protobuf-compiler flex bison \ | |
valgrind g++ make autoconf libtool libz-dev libbz2-dev curl \ | |
rpm build-essential git wget gawk procps |
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/env python | |
import sys | |
from tvdb_api import Tvdb | |
from tvnamer.config_defaults import defaults | |
from tvnamer.utils import Config, FileParser, FileFinder | |
from tvnamer.tvnamer_exceptions import (ShowNotFound, SeasonNotFound, EpisodeNotFound, |