Skip to content

Instantly share code, notes, and snippets.

View botandrose's full-sized avatar

Micah Geisel botandrose

View GitHub Profile
@botandrose
botandrose / bootstrap-cr48.sh
Created March 16, 2011 09:45
script to get my cr48 where i like it
#!/bin/bash
cd /tmp
# "jailbreak" to allow modifications
/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification
# make the system writable
mount -o remount,rw /
# make the stateful_partition executable
@botandrose
botandrose / rails_bench.sh
Created December 27, 2010 22:06
rails w/1.9 slower than w/1.8
# with rails 3.0.3
rails new bench
cd bench/
rvm use --create ree-1.8.7-2010.02@bench
gem install bundler && bundle
time rails runner
# real 0m1.007s
# user 0m0.796s
# sys 0m0.196s
#!/usr/bin/ruby
# a ruby script for compiling haml from serve into html.
# to use, run "sudo compile.rb *.haml"
# puts all the compiled files into /html
ARGV.each do |url|
url = url.split('.').first
`curl http://localhost:4000/#{url} > ./html/#{url}.html`
end
require("spec_helper.js");
require("../../public/javascripts/accounts_new.js");
Screw.Unit(function() {
// stow the fixture (plus events) away in an iframe
var fixture_freezer = document.createElement("iframe");
$(fixture_freezer).prepend($("#fixture").clone(true));
before(function() {
// wipe out dirty dom and restore clean fixture from iframe
# bard.rb
# bot and rose design rails template
NAME = @root.split("/").last
# delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
run "rm -f public/javascripts/*"