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/ruby | |
require 'getoptlong' | |
filename = "" | |
blocksize = 1024 | |
opts = GetoptLong.new( | |
[ "-f", "--file", GetoptLong::REQUIRED_ARGUMENT], | |
[ "-b", "--block", GetoptLong::REQUIRED_ARGUMENT] |
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/perl -w | |
use strict; | |
my $BLOCK_SIZE=1024; | |
my $fname = $ARGV[0]; | |
open(F,"<$fname") or die("Unable to open file $fname, $!"); | |
binmode(F); | |
my $buf; |
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,getopt | |
filename = None | |
blocksize = 1024 | |
opts,args = getopt.getopt(sys.argv[1:],'f:b:') | |
for o,a in opts: | |
if o == '-f': |
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 Tkinter import * | |
from random import randint | |
import timeit | |
from optparse import OptionParser | |
worldInstance = None | |
class Direction(object): |
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 csv | |
import httplib, urllib, base64 | |
def main(): | |
# set the name of your repository, username and password | |
username = "test" | |
password = "test" | |
repo = "test" | |
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
;;; | |
;;; Mustang emacs theme by Jimmy Selgen Nielsen | |
;;; | |
;;; Inspired by: | |
;;; Mustang color theme for Vim by Henrique C. Alves: | |
;;; http://hcalves.deviantart.com/art/Mustang-Vim-Colorscheme-98974484 | |
;;; | |
(defun color-theme-mustang () | |
(interactive) |
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 bash | |
trap "echo Exited!; exit;" SIGINT SIGTERM | |
# Make sure only root can run our script | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
echo "-----------------------------------------------------------" | |
echo "-----------------------------------------------------------" |
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 | |
### BEGIN INIT INFO | |
# Provides: btsync | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Multi-user daemonized version of btsync. |
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 re | |
import sys | |
ex = re.compile("\"(url|referer)\"\:\"(.*)\"") | |
with open(sys.argv[1]) as f: | |
for line in iter(f.readline,""): | |
m = ex.search(line) | |
print(m.group(2)) |
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 re | |
import sys | |
from functools import partial | |
remainder = "" | |
bufsize=4096 | |
ex = re.compile('"(?:url|referer)"\:"([^"]*)"') | |
with open(sys.argv[1]) as f: |
OlderNewer