Skip to content

Instantly share code, notes, and snippets.

View 7hunderbird's full-sized avatar
👶
Since 1976.

Tyler Bird 7hunderbird

👶
Since 1976.
View GitHub Profile

ruby-1.9.3-p484 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p484 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@7hunderbird
7hunderbird / gist:4063979
Created November 13, 2012 04:53
A great merge with no errors.
Updating fefeb0c..3b85f14
Fast-forward
.gitignore | 1 +
Gemfile | 21 ++++++++++++++-------
Gemfile.lock | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
app/assets/javascripts/assignments.js.coffee | 3 +++
app/assets/javascripts/courses.js.coffee | 3 +++
app/assets/javascripts/study_plans.js.coffee | 3 +++
app/assets/javascripts/users.js.coffee | 3 +++
app/assets/stylesheets/assignments.css.scss | 3 +++
require "bundler/capistrano"
set :application, "awesome"
set :user, "vagrant"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :scm, "git"
set :repository, "git@github.com:7hunderbird/#{application}.git"
@7hunderbird
7hunderbird / deploy.rb
Created October 22, 2012 21:14
Act 2
require "bundler/capistrano"
set :application, "awesome"
set :user, "vagrant"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :scm, "git"
set :repository, "git@github.com:7hunderbird/#{application}.git"
@7hunderbird
7hunderbird / scene1.rb
Last active October 11, 2015 23:08
Act 1
require "bundler/capistrano"
server "192.168.33.10", :web, :app, :db, primary: true
set :application, "awesome"
set :user, "vagrant"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
run "cd #{current_path} && bundle exec rake db:migrate" do |channel, stream, data|
puts # line break
puts "#{channel[:server]} -> #{data}"
break if stream == :err
end
@7hunderbird
7hunderbird / gist:2065819
Created March 17, 2012 22:20
Engines Checklist
rails plugin new my_engine --full --mountable
Engines Checklist
* Copy and namespace models, views, controllers, and helpers
* Copy routes
* Copy tests, add :use_route # so your test know which route to hit.
* Configure defaults
* Add dependencies to your gemspec
* Require your dependencies # because bundler doesn't boot strap them, etc.
@7hunderbird
7hunderbird / get_upc.rb
Created December 9, 2011 20:29
This will take a UPC number and return the Title.
require 'rubygems'
require 'nokogiri'
require 'open-uri'
puts "Give me a UPC code:"
upc = gets.chomp
url = "http://www.upcdatabase.com/item/" + upc
doc = Nokogiri::HTML(open(url))
@7hunderbird
7hunderbird / gist:1018132
Created June 10, 2011 02:18
warning message, what does this really mean?
[demo_app (master)]$ rake -T
WARNING: Global access to Rake DSL methods is deprecated. Please include
... Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method DemoApp::Application#task called at /Users/tbird/.rvm/gems/ruby-1.8.7-p334/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks'
rake about # List versions of all Rails frameworks and the environment
rake db:create # Create the database from config/database.yml for the current Rail...
rake db:drop # Drops the database for the current Rails.env (use db:drop:all to ...
rake db:fixtures:load # Load fixtures into the current environment's database.
rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE=false).
rake db:migrate:status # Display status of migrations
Installing ri documentation for builder-2.1.2...
ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text="<!-- HI -->"
... RDOC args: --ri --op /Users/tbird/.rvm/gems/ruby-1.8.7-p334@rails31/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation --quiet