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
""" BitString - A file-like object for reading/writing bits. | |
""" | |
try: | |
from cStringIO import StringIO | |
except: | |
from StringIO import StringIO | |
def binlen(n): |
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/bash | |
# @author [email protected] | |
if test "$1"; then | |
LONG_URL="$1" | |
else | |
read LONG_URL | |
fi | |
BITLY="http://bit.ly/?s=&keyword=&url=" |
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 | |
# encoding: utf-8 | |
""" A simple URI Encoding/Decoding commandline tool. | |
""" | |
__author__ = 'David Schoonover <[email protected]>' | |
__date__ = '2009-06-05' | |
__version__ = (0, 0, 1) | |
import sys, select, urllib |
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/bash | |
### MonetDB Installer for RHEL5 ### | |
# Script needs to be run as root if any any packages need installing. | |
# For more info, see: | |
# - http://monetdb.cwi.nl/MonetDB/Documentation/Linux-Installation.html#Linux-Installation | |
# MonetDB RPM's for RHEL5: |
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
'You see,' [the devil] says to me casually, 'the moth is way up there by the | |
white wall of the doorway, and it is visible only because it moves. From here it | |
almost looks like a bird high up in the sky, if you think of the wall as the | |
sky. That's probably how the moth sees the wall, and only we know it is wrong. | |
But it doesn't know that we know. It doesn't even know we exist. You try to | |
communicate with it, if you can. Can you tell it anything in a way it | |
understands; can you be sure it has understood you completely?' | |
'I don't know,' I replied. 'Can you?' |
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/bash | |
# @author [email protected] | |
if test "$1"; then | |
LONG_URL="$1" | |
else | |
read LONG_URL | |
fi | |
SHADY="http://www.shadyurl.com/create.php?myUrl=" |
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/bash | |
# usage: | |
# unshorten.sh 'http://bit.ly/95U1UY' | |
# echo 'http://bit.ly/95U1UY' | unshorten.sh | |
# | |
# author: [email protected] | |
if test "$1"; then |
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/bash | |
function usage () { | |
echo | |
echo "Usage: $0 USERNAME COOKIES" | |
echo | |
echo "Easiest Way to Get Your Cookies:" | |
echo " I recommend you use firebug on a visit to http://www.flickr.com and copy the value of the Cookie header from your first request." | |
} |
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
(function(){ | |
/** | |
* Function.asyncChain( fn, [...] ) -> Function | |
* | |
* Takes any number of callback functions and returns a scheduler function | |
* which manages the chain. Each supplied callback to should take one | |
* argument, the scheduler, to execute with no arguments when it completes. | |
* | |
* Example: |
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/bash | |
function halp () { | |
cat <<-HALP | |
pylons -- Starts a Pylons app, creating logs and saving a pidfile. | |
Usage: $( basename $0 ) [INI_FILE] | |
If INI_FILE is not 'development.ini', stdout and stderr are redirected |
OlderNewer