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 os | |
import fcntl, sys, termios | |
from difflib import SequenceMatcher | |
del sys.argv[0] | |
ARGS = ' '.join(sys.argv) | |
SKIP = ['cd', '', 'ls', 'cd ..'] |
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
import random | |
a = range(1, 100) | |
def r1(): | |
return random.choice(a) | |
def r2(): | |
return a[random.randint(0, len(a)-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
#!/usr/bin/env python | |
import sys | |
from zipfile import ZipFile | |
import gzip | |
import io | |
""" | |
Reads a zip file and prints it out so that you can easily grep it. |