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
def Hash(*args, &block) | |
if args.any? | |
args[0] | |
else | |
Hash.from_block &block | |
end | |
end | |
class Hash | |
def self.from_block &block |
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
# very badly factored ftp server that wraps a web service | |
#!/usr/bin/env ruby | |
Dir.chdir(File.join(File.dirname(__FILE__), '..', '..')) | |
require 'rubygems' | |
require 'bundler' | |
require 'vendor/bundler_gems/environment' | |
Bundler.require_env 'ftpd' |
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
#import <Foundation/Foundation.h> | |
#import <ApplicationServices/ApplicationServices.h> | |
void move_mouse(const CGPoint pt); | |
int main(int argc, char *argv[]) { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
NSUserDefaults *args = [NSUserDefaults standardUserDefaults]; | |
int x = [args integerForKey:@"x"]; |
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
diff --git a/configure b/configure | |
index ac47d02..5961126 100755 | |
--- a/configure | |
+++ b/configure | |
@@ -1784,7 +1784,7 @@ case $host in | |
acx_host_winapi="XWINDOWS" | |
;; | |
esac | |
-ARCH_CFLAGS="$ARCH_CFLAGS -DSYSAPI_$acx_host_arch=1 -DWINAPI_$acx_host_winapi=1" | |
+ARCH_CFLAGS="$ARCH_CFLAGS -DSYSAPI_$acx_host_arch=1 -DWINAPI_$acx_host_winapi=1 -arch i386" |
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
diff --git a/config/initializers/craken.rb b/config/initializers/craken.rb | |
new file mode 100644 | |
index 0000000..44f6ff9 | |
--- /dev/null | |
+++ b/config/initializers/craken.rb | |
@@ -0,0 +1,19 @@ | |
+CRAKEN_PATH = "/opt/ruby-enterprise/bin:/bin:/usr/bin:/usr/local/bin" | |
+ | |
+module Craken | |
+ def append_tasks_with_path(*args, &block) |
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
commit 4a9613917ea1f7ace0b54fea28b4f02e4c1dafde | |
Author: Dave Turnbull <[email protected]> | |
Date: Tue Jan 12 10:38:05 2010 +1100 | |
_______ _______ _______ __ __ __ __ __ __ | |
| ____|| ____|| ____|| | | | | | | | | | | | | |
| |__ | |__ | |__ | | | | | | | | | | | | ______ ______ | |
| __| | __| | __| | | | | | | | | | | | | |______|______| | |
| | | | | | | `--' | | `--' | | `--' | | |
0 [dave] np: ~/src/incite/rt (carrierwave)* |
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/sh | |
# Simon Howe <[email protected]> | |
# David Turnbull <[email protected]> | |
git cherry -v HEAD $1 | grep ^+ | while read line; do | |
status=$( git status ) | |
if current_git_status=$( echo "$status" | grep 'working directory clean' ); then | |
hash=`git rev-parse --short $( echo "$line" | cut -d' ' -f2 )` | |
description=$( echo "$line" | cut -d' ' -f3- | cut -c 1-64 ) | |
conflict=$( git cherry-pick -n $hash 2> /dev/null | grep 'CONFLICT' ) |
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
Process: Skype [64520] | |
Path: /Users/dave/Applications/Skype.app/Contents/MacOS/Skype | |
Identifier: com.skype.skype | |
Version: 2.8.0.722 (2.8.0.722) | |
Code Type: X86 (Native) | |
Parent Process: launchd [1199] | |
Date/Time: 2010-01-29 08:53:21.710 +1100 | |
OS Version: Mac OS X 10.6.2 (10C540) | |
Report Version: 6 |
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
ALL OREAND THE GIFCHERRY BUSH DA BOON CHASED DA WHEASELGIFPASTECLITNUGGET SHIT | |
WH0A WHUT W00D PEEPUHL THEEENK IF DAY GN00 EYE WUZ A JEEEZUS FREEEK?! | |
EYE WENT TO THE TRAK TO WAATCH THE PONYNUGGETS RHUN AROUND THE GIFPASTE | |
MY MOM HAS A GARDUN WAREZ SHE GROZE KUMKUWAITS | |
THERE'S AN ASSNUGGET 4 ALL YA JEWS AND HOMERSEXULES | |
A DIQ IZ FER DISPENISING JIZZJ00CE IN DA CLITSAQ JIZZPOQIT | |
NO WAY JAQNAD, EYE GOT ENOUGH OF DEM SHITSTAYN THINGYS FOR GNO MHORE | |
EYE WHISH I COULD LIFT HVY TINGS LYKE DOZE GUIZ ON TEEVHEE | |
AOL E_MAILWAREZ IS 2 31337 FOR THE CLITSAQLIKES OFF MIZZEE | |
SIMPSONS WIN95 THEME R0X! THOT I'D LET Y'ALL KNOW |
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
require 'rbconfig' | |
require 'find' | |
require 'ftools' | |
include Config | |
# this was adapted from rdoc's install.rb by way of Log4r | |
$sitedir = CONFIG["sitelibdir"] | |
unless $sitedir |