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 | |
from __future__ import print_function | |
import functools | |
import inspect | |
def orig_func(db): | |
print("this func has db argument", db) |
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 | |
from bottle import Bottle, response, request, HTTPResponse | |
import subprocess | |
import os | |
import json | |
import sys | |
ADB=os.environ.get("ADB", "adb") |
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 D3TimeLine(container, attributes, data) { | |
if(container) this._=container; | |
for(var k in attributes) this[k]=attributes[k]; | |
if(data) this.data=data; | |
} | |
D3TimeLine.prototype={ | |
axisDomainStyle: {"fill-opacity": 0.1}, | |
brushExtentStyle: {"fill-opacity": 0.1}, | |
getDataValue: function(d) {return d.count;}, |
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 | |
from __future__ import print_function | |
import os,sys | |
import asyncore | |
import socket | |
import struct |
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 | |
set -e | |
setname="$1" | |
test -n "$setname" -a -n "$2" || { | |
echo "Usage: ${0##*/} <setname> <pattern..>" >&2 | |
exit 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
#!/usr/bin/python | |
import getopt | |
import psycopg2 | |
import sys | |
import datetime | |
from utils import PSQLPipeCopierMixIn, PCapReader, _std_init, SharkReader, PCapProducer | |
sql_initdb=""" |
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 fuse | |
import os | |
import stat | |
import errno | |
import re | |
import time | |
import warnings |
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 os | |
from gi.repository import Gtk, GLib | |
class SignalHandler(object): | |
selected_model = None | |
def __init__(self, builder): | |
self.builder = builder | |
def on_quit(self, window, ev): |
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 re | |
generics=set(['the', 'and', 'to', 'of', 'a', 'in', 'i', 'we', 'this', 'that', 'for', 'it', 'on', 'will', | |
'be', 'are', 'can', 'with', 'by', 'from', 'or', 'how', 'an', 's', 'these', 'have', 'not', | |
'our', 'used', 'at', 'their', 'has', 'such', 'also', 'which', 'using', 'they', 'but', | |
'all', 'what', 'about', 'based', 'you', 'more', 'been', 'some', 'use', 'other', 'one', | |
'when', 'them', 'many', 'well', 'o', 'll', 'up']) |
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 Crypto.Hash.SHA, Crypto.Hash.HMAC | |
import sys, re, os | |
import getopt | |
import time | |
kh_re=re.compile(r'^\|1\|(?P<salt>[a-zA-Z0-9/+]+=*)\|(?P<hash>[a-zA-Z0-9/+]+=*) (?P<keytype>\S+) (?P<hostkey>[a-zA-Z0-9/+]+=*)$') | |
def read_kh(fname): | |
ret=[] |
OlderNewer