This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/*" |
NewerOlder