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/perl | |
use strict; | |
use File::Temp qw/tempfile/; | |
use Getopt::Long; | |
use constant PATH_TO_JTR => ""; | |
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/tclsh | |
set rows 40 | |
set cols 80 | |
if {$argc == 2} { | |
set rows [lindex $argv 0] | |
set cols [lindex $argv 1] | |
} elseif {$argc != 0} { | |
puts "Invalid arguments! Need two (rows, cols) or none." |
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 | |
for f; do | |
if [ -f "$f" ]; then | |
TINURL=$(curl -s -F "image=@$f" http://www.tineye.com/search | | |
grep -E -o 'http://www.tineye.com/search/[0-9a-f]+/' | | |
head -n 1) | |
if [ -z "$TINURL" ]; then | |
echo "You have reached your daily search limit or something." >&2 | |
else |
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
/* mpicc -lssl -o tripfind tripfind.c */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include <regex.h> | |
#include <signal.h> | |
#include <sys/time.h> | |
#include <openssl/des.h> |
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 glob | |
import math | |
import os | |
import getopt | |
import sys | |
from PIL import Image |
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 | |
# Open a Youtube or other video in your browser, wait for it to load, leave the | |
# browser window open. Run script. Profit. | |
# May not work with Gnash &c. | |
lsof -u $(whoami) | grep Flash | awk '{sub(/[^0-9]+/, "", $4) | |
sub(/\/tmp\//, "", $9) | |
print "/proc/"$2"/fd/"$4, $9".flv"}' | xargs -rn 2 cp -n |
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
/* gcc -Wall -Wextra `allegro-config --libs` -lm w.c */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <time.h> | |
#include <allegro.h> | |
#define POINTS 3 | |
#define WIDTH 600 |
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 argparse | |
import errno | |
import json | |
import os | |
import re | |
import stat | |
import sys | |
import time |
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/ruby -w | |
require 'optparse' | |
require 'base64' | |
options = {} | |
optparse = OptionParser.new do |opts| | |
opts.banner = "Usage: #$0 [options] FILE" | |
options[:type] = nil |
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 collections | |
import random | |
import sqlite3 | |
import sys | |
try: | |
from nltk.tokenize import sent_tokenize | |
except ImportError: |
OlderNewer