Skip to content

Instantly share code, notes, and snippets.

# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# install the Node package manager for later use
@joeyAghion
joeyAghion / benchmark.rb
Created November 30, 2012 19:45 — forked from panthomakos/benchmark.rb
Benchmark Your Bundle
#!/usr/bin/env ruby
# Set the CHECK_RAILTIE environment variable to star (*) gems without Railties (warning: SLOW).
require 'benchmark'
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
/^Missing API definition file in (.+)$/i,
@joeyAghion
joeyAghion / benchmark_bundle.rb
Created December 3, 2012 00:28 — forked from bdurand/benchmark_bundle.rb
Benchmark Your Bundle
#!/usr/bin/env ruby
# Set the CHECK_RAILTIE environment variable to star (*) gems without Railties (warning: SLOW).
require 'bundler'
require 'benchmark'
REGEXPS = [
/^no such file to load -- (.+)$/i,
/^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i,
# In most cases, script proceeds as expected:
$ ruby script.rb
................................................................................ done.
$ ruby script.rb
................................................................................ done.
# Occasionally, fails with empty results:
$ ruby script.rb
........script.rb:59:in `block (3 levels) in <main>': got a nil widget (RuntimeError)