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
| #opencv | |
| import cv2.cv as cv | |
| import cv2 | |
| import numpy as np | |
| def build_filters(): | |
| filters = [] | |
| ksize = 31 | |
| for theta in np.arange(0, np.pi, np.pi / 32): |
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
| <!-- | |
| ... | |
| --> | |
| <option id="gnu.c.compiler.option.include.paths.651068615" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath"> | |
| <listOptionValue builtIn="false" value="/usr/local/include/opencv"/> | |
| </option> | |
| <!-- | |
| ... | |
| --> | |
| <option id="gnu.cpp.link.option.libs.2101947007" name="Libraries (-l)" superClass="gnu.cpp.link.option.libs" valueType="libs"> |
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 zlib,sys,os | |
| print 'Usage: %s <infile> <offset-addr> <length> <outfile>' % sys.argv[0] | |
| if len(sys.argv) < 5: | |
| exit(-1) | |
| fr = open(sys.argv[1], 'rb') |
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 Image | |
| import sys | |
| def xorImage( infile ): | |
| try: | |
| im = Image.open( infile ) | |
| except IOError: | |
| print "Cant load", infile |
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
| !! cd /usr/lib/urxvt/perl; git clone https://github.com/muennich/urxvt-perls . | |
| !! Perl extensions | |
| URxvt.perl-ext-common: default,clipboard,matcher,keyboard-select | |
| !! URLs | |
| URxvt.keysym.C-U: perl:url-select:select_next | |
| URxvt.url-launcher: /usr/bin/firefox -new-tab | |
| URxvt.underlineURLs: True | |
| URxvt.matcher.button: 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
| #!/bin/bash | |
| # | |
| # Print battery warning | |
| # | |
| VERBOSE=0 | |
| SUSPEND_CMD=/home/stk/.i3/suspend.sh | |
| TIMEOUT=120 | |
| DEVNAME='/org/freedesktop/UPower/devices/battery_BAT0' | |
| ALERT_THR=15 |
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
| # convert images | |
| convert *.pgm %d.jpg | |
| # video from image sequence | |
| avidemux2_cli --video-codec DV --fps 1 --load jpg/*.jpg --save out.avi --quit | |
| # No ASLR | |
| sysctl -w kernel.randomize_va_space=0 | |
| paxctl -x <program> | |
| setarch `arch` -R <program> |
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
| alphabet=''.join([chr(i) for i in xrange(256) if chr(i) not in '!"#$&*+-/0123456789;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^abcdefghijklmnopqrstuvwxyz|' and i != 0]) | |
| def filt(s): | |
| return s.translate(ident,'!"#$&*+-/0123456789;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\^abcdefghijklmnopqrstuvwxyz|') | |
| def obfNum(n): | |
| """ Obfuscate a number """ | |
| if n==0: | |
| return "([]<{})" | |
| elif n==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
| # | |
| # Timing Attack Miscellaneous | |
| # | |
| import string | |
| import sys | |
| import re | |
| import time | |
| import threading | |
| import httplib |
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
| # | |
| # RSA TOOLKIT v.0.1a | |
| # | |
| import gmpy,string | |
| ALPHABET=string.lowercase+" '" | |
| # | |
| # Factorization | |
| # | |
| def factorize(Num): |