Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| cd ~ | |
| sudo apt-get update | |
| sudo apt-get install openjdk-7-jre-headless -y | |
| wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.3.deb | |
| sudo dpkg -i elasticsearch-0.90.3.deb | |
| sudo service elasticsearch start | |
| sudo service elasticsearch start | |
| # If you see "WARNING: ElasticSearch may have failed to start." |
| $VERBOSE = nil | |
| require File.expand_path('../rooby', __FILE__) | |
| Person = Rooby::Class.new 'Person' do | |
| define :initialize do |name| | |
| @name = name | |
| end | |
| define :name do |
This script installs a patched version of ruby 1.9.3-p194 with boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Many thanks to funny-falcon for the performance patches.
| - http://www.coffeepowered.net/2009/06/13/fine-tuning-your-garbage-collector/ | |
| - http://snaprails.tumblr.com/post/241746095/rubys-gc-configuration | |
| article’s settings: ("spec spec" took 17-23!sec) | |
| export RUBY_HEAP_MIN_SLOTS=1250000 | |
| export RUBY_HEAP_SLOTS_INCREMENT=100000 | |
| export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
| export RUBY_GC_MALLOC_LIMIT=30000000 | |
| export RUBY_HEAP_FREE_MIN=12500 |
If Animal and Fozzie wanted to pair on Animals machine and they both have access to shared.muppets.com then they could use the following setup
~/.ssh/configHost tunnel_from_muppets
Hostname space.muppets.com
RemoteForward 1235 localhost:22
| # A Basic API Controller for Rails | |
| # Handles authentication via Headers, params, and HTTP Auth | |
| # Automatically makes all requests JSON format | |
| # | |
| # Written for production code | |
| # Made public for: http://broadcastingadam.com/2012/03/state_of_rails_apis | |
| # | |
| # Enjoy! | |
| class ApiController < ApplicationController |