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
%w[autotest/fsevent autotest/timestamp redgreen/autotest autotest/growl test_notifier/runner/autotest].each do |lib| | |
begin | |
require lib | |
rescue LoadError => e | |
warn "Couldn't load #{lib}: #{e}" | |
end | |
end | |
TestNotifier.default_notifier = :growl if defined? TestNotifier |
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 "openssl" | |
require "net/smtp" | |
Net::SMTP.class_eval do | |
private | |
def do_start(helodomain, user, secret, authtype) | |
raise IOError, 'SMTP session already started' if @started | |
check_auth_args user, secret, authtype if user or secret | |
sock = timeout(@open_timeout) { TCPSocket.open(@address, @port) } |
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
%w(open-uri rubygems pp irb/completion irb/ext/save-history wirble).each do |lib| | |
begin | |
require lib | |
rescue LoadError => e | |
warn "Couldn't load #{lib}: #{e}" | |
end | |
end | |
ARGV.concat %w( --readline ) |
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 | |
# GC Tuning | |
export RUBY_HEAP_MIN_SLOTS=800000 | |
export RUBY_HEAP_SLOTS_INCREMENT=300000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=79000000 | |
export RUBY_HEAP_FREE_MIN=100000 | |
export RUBY_FREE_MIN=$RUBY_HEAP_FREE_MIN |
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
case "$rvm_ruby_string" in | |
*ree*|*ruby-1.9.2*) | |
export RUBY_HEAP_MIN_SLOTS=1000000 | |
export RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=1000000000 | |
export RUBY_HEAP_FREE_MIN=500000 | |
export RUBY_FREE_MIN=$RUBY_HEAP_FREE_MIN | |
;; | |
*) |
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
g++ libgl1-mesa-dev libpango1.0-dev libboost-dev | |
libsdl-ttf2.0-dev libsdl-mixer1.2 libsdl-mixer1.2-dev | |
libfreeimage3 libfreeimage-dev |
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
# Textmate essential bundles | |
cd ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles | |
# CSS | |
git clone git://github.com/textmate/css.tmbundle.git CSS.tmbundle | |
# Coffeescript | |
git clone git://github.com/jashkenas/coffee-script-tmbundle.git CoffeeScript.tmbundle |
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
String::strip = -> if String::trim? then @trim() else @replace /^\s+|\s+$/g, "" |
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
function ssl-csr() { | |
openssl genrsa -out $1.key 1024 | |
openssl req -new -key $1.key -out $1.csr | |
} | |
function ssl-cert() { | |
ssl-csr $1 | |
openssl x509 -req -days 365 -in $1.csr -signkey $1.key -out $1.crt | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>JS Test</title> | |
</head> | |
<body id="" onload=""> | |
<div id="results"></div> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script> |