Skip to content

Instantly share code, notes, and snippets.

View whatcould's full-sized avatar

David Reese whatcould

  • Bust Out Solutions
  • philly
View GitHub Profile
# See http://m.onkey.org/running-rails-performance-tests-on-real-data
# START : HAX HAX HAX
# Load Rails environment in 'test' mode
RAILS_ENV = "test"
require File.expand_path('../../config/environment', __FILE__)
# Re-establish db connection for 'performance' mode
silence_warnings { RAILS_ENV = "performance" }
ActiveRecord::Base.establish_connection
apt-get -y update
apt-get -y build-dep build-essential
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libffi-dev libxslt1-dev libxml2-dev
cd /tmp
curl -s -L http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p451.tar.gz | tar xzv
cd `ls | grep -m 1 ruby-`
./configure --prefix=/usr/local --disable-install-rdoc
make
make install
@whatcould
whatcould / tumblr-theme.html
Last active December 20, 2015 10:59
Tumblr theme
<!DOCTYPE html>
<html>
<head>
<!--
Theme by inky.
Inspired by 'Minimalist', one of the default Tumblr themes.
-->
@whatcould
whatcould / # qt5 - 2016-09-14_08-01-12.txt
Created September 14, 2016 12:34
qt5 on Mac OS X 10.12 - Homebrew build logs
Homebrew build logs for qt5 on Mac OS X 10.12
Build date: 2016-09-14 08:01:12