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
# gccmock - generate exploding link stubs from linker error messages | |
# | |
# Usage: gcc [files] 2>&1 | ruby gccmock.rb > [filename].c | |
LINK_SYMBOL = /"_([_a-z0-9]*)",/ | |
puts "#include <assert.h>" | |
puts "#define EXPLODE(name) void name() { assert(!\"unexpected call\"); }" | |
puts *ARGF.read.scan(LINK_SYMBOL).map { |a| "EXPLODE(#{a[0]})" }.sort.uniq |
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 'rubygems' | |
require 'optiflag' | |
require 'twitter' | |
Infinity = 1.0/0.0 unless defined? Infinity | |
module DBChecker extend OptiFlagSet | |
flag "password" | |
flag "user" | |
flag "days" |
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 | |
TINY="1" | |
PATCH="378" | |
mkdir -p ~/src && cd ~/src | |
curl ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.${TINY}-p${PATCH}.tar.bz2 | tar jxv | |
cd ruby-1.9.${TINY}-p${PATCH} | |
./configure \ | |
--prefix=/usr \ |