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 | |
PATCH=376 | |
mkdir -p /usr/local/src && cd /usr/local/src | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p$PATCH.tar.bz2 | |
tar -xjvf ruby-1.9.1-p$PATCH.tar.bz2 | |
cd ruby-1.9.1-p$PATCH | |
./configure --prefix=/usr --program-suffix=19 --enable-shared | |
make && make install |
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
#!/usr/bin/env ruby | |
require 'rack' | |
class FrameD | |
CHARS = ('a'..'z').to_a | |
def random_path | |
(0..10).map { |i| | |
CHARS[rand(CHARS.length)] |
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
#!/usr/bin/env ruby | |
# | |
# Name: reval.rb | |
# License: MIT | |
# Author: postmodern (postmodern.mod3 at gmail.com) | |
# Description: | |
# | |
# Re-evaluates a specified Ruby file whenever the file changes. | |
# Reval was inspired by Giles Bowkett's kickass talk on Archaeopteryx at | |
# RubyFringe 2008, where Giles used some mad Ruby to re-evaluate his |
NewerOlder