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 'cgi' | |
unless ARGV.length == 1 | |
STDERR.puts "Usage: tinyurl <URL>" | |
exit(1) | |
end | |
url = ARGV[0] |
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/python2.5 | |
import sys | |
import os | |
import stat | |
import re | |
from subprocess import call, check_call, Popen, PIPE | |
from optparse import OptionParser | |
# I've found this script useful for copying my most recently |
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
/*Version 1.51 15.06.09*/ | |
/* @group Helvetireader */ | |
* {font-family: "Helvetica Neue", Helvetica, "MgOpen Moderna", sans-serif !important;} | |
body {background-color: #fff !important;} | |
/* Anything to to hide? */ |
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 | |
# If you have a lot of Ogg Vorbis files with lengths that are wildly | |
# wrong or have incomplete data at the start, you may be able to fix | |
# them with this script. I invoked this for a whole directory of | |
# files with: | |
# find . -iname '*.ogg' -print0 | xargs -0 -n 1 fix-ogg-length.sh | |
set -e | |
echo Fixing "$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
#!/bin/sh | |
if [ $# -ne 1 ] | |
then | |
echo Usage: $0 "<path-to-download.emx>" | |
exit 1 | |
fi | |
for i in $(xml_grep 'TRACKURL' $1|sed 's/.*\(http.*mp3\).*/\1/'|egrep http) | |
do |
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/python2.5 | |
# This script attempts to take a PDF file and split it into two PDF | |
# files, one of which has all the images and the other which has | |
# everything else. You can select pages by whether they contain | |
# /Subtype /Image (bitmaps in my case) or /XObject which seems to | |
# catch bitmaps and included PDF files (which are most diagrams | |
# exported to PDF in my case). | |
import os |
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
$ git log --format="%an"|sort|uniq | |
fjmd1 | |
frabcus | |
goatchurch | |
heathd | |
louise | |
mark | |
sams | |
solidgoldpig | |
sym |
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/python3.1 | |
import sys | |
import re | |
import tempfile | |
from subprocess import call, check_call | |
import os | |
def print_usage(): | |
print("Usage: {} user@host".format(sys.argv[0])) |
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
--- Polar_Transformer.original.java 2008-03-10 21:52:08.000000000 +0100 | |
+++ Polar_Transformer.java 2010-06-25 15:27:13.171811587 +0200 | |
@@ -73,37 +73,56 @@ | |
if (showDialog(ipInitial)) | |
{ | |
- | |
- widthInitial = ipInitial.getWidth(); | |
- heightInitial = ipInitial.getHeight(); | |
- if (ipInitial instanceof ColorProcessor) isColor = true; |
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/python3.1 | |
import sys | |
import os | |
import urllib.parse | |
from subprocess import call | |
if len(sys.argv) != 2: | |
print("Usage: {} [FILE-OR-DIRECTORY]".format(sys.argv[0]),file=sys.stderr) | |
sys.exit(1) |
OlderNewer