Skip to content

Instantly share code, notes, and snippets.

~ $ cinderella
[Mon, 08 Nov 2010 13:02:13 -0600] INFO: Setting the run_list to ["homebrew", "homebrew::dbs", "homebrew::misc", "ruby", "ruby::irbrc", "node", "python"] from JSON
[Mon, 08 Nov 2010 13:02:13 -0600] INFO: Starting Chef Run (Version 0.9.12)
[Mon, 08 Nov 2010 13:02:14 -0600] ERROR: Running exception handlers
[Mon, 08 Nov 2010 13:02:14 -0600] ERROR: Exception handlers complete
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tempfile.rb:167:in `close': closed stream (IOError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tempfile.rb:167:in `callback'
~ $ curl https://github.com/atmos/cinderella/raw/master/bootstrap.sh \
> -o - | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
105 1261 105 1261 0 0 2717 0 --:--:-- --:--:-- --:--:-- 13414
Ensuring we have the latest version of cinderella installed
Password:
Cinderella installed successfully
[Mon, 08 Nov 2010 12:55:03 -0600] INFO: Setting the run_list to ["homebrew", "homebrew::dbs", "homebrew::misc", "ruby", "ruby::irbrc", "node", "python"] from JSON
[Mon, 08 Nov 2010 12:55:03 -0600] INFO: Starting Chef Run (Version 0.9.12)
~ $ ls -al /Users/barry/Developer/.rvm/gems/
total 0
drwxr-xr-x 4 barry staff 136 Nov 6 07:41 .
drwxr-xr-x 17 barry staff 578 Nov 6 00:05 ..
drwxr-xr-x 2 barry staff 68 Nov 6 07:41 ree-1.8.7-2010.01
drwxr-xr-x 2 barry staff 68 Nov 6 00:05 ruby-1.8.7-p248
$ ls -al /Users/barry/Developer/.rvm/
total 24
drwxr-xr-x 17 barry staff 578 Nov 6 00:05 .
drwxr-xr-x 14 barry staff 476 Nov 6 00:05 ..
-rw-r--r-- 1 barry staff 1038 Nov 6 00:05 LICENCE
-rw-r--r-- 1 barry staff 5214 Nov 6 00:05 README
drwxr-xr-x 2 barry staff 68 Nov 6 00:05 archives
drwxr-xr-x 5 barry staff 170 Nov 6 00:05 bin
drwxr-xr-x 6 barry staff 204 Nov 6 00:05 config
drwxr-xr-x 3 barry staff 102 Nov 6 00:05 examples
$ curl https://github.com/atmos/cinderella/raw/master/bootstrap.sh \
> -o - | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
105 1261 105 1261 0 0 3112 0 --:--:-- --:--:-- --:--:-- 18014
Ensuring we have the latest version of cinderella installed
Password:
Cinderella installed successfully
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:174:in `transmit': Request Timeout (RestClient::RequestTimeout)
from /Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
#
# Cookbook Name:: ruby
# Recipe:: default
#
DEFAULT_RUBY_VERSION = "1.8.7-p248"
script "installing rvm to ~/Developer" do
interpreter "bash"
code <<-EOS
$ curl https://github.com/atmos/cinderella/raw/master/bootstrap.sh -o - | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
106 1175 106 1175 0 0 2677 0 --:--:-- --:--:-- --:--:-- 15259
Ensuring we have the latest version of cinderella installed
Cinderella installed successfully
sh: line 23: cinderella: command not found
sh: line 23: cinderella: command not found
sh: line 23: cinderella: command not found
Run started Thu Nov 4 22:21:23 CDT 2010
Vacation to the amazing Ritz-Carlton, Amelia Island, Florida.
Then it goes downhill from:
o Our GPS led us to the airport along the coast. Then it said,
"take next left and board ferry."
o Arrive at gate in JAX. Flight already delayed 35 minutes.
o Due to delay, we only have 60 minutes to make connection in O'Hare.
o We're nervous and want to talk to someone. Gate attendant
does not arrive until about 30 minutes before we're due for takeoff.
o Gate attendant promptly proclaims they can turn it around faster
On the old computer, copy ~/Music/iTunes to an external drive or however you'll get it to
the new computer.
On the new computer, rename ~/Music/iTunes to ~/Music/iTunes.bak
Copy iTunes folder from old computer to new one, placing it at ~/Music/iTunes
Make sure your media external hard drive is plugged into the new computer.
Open iTunes.
def run_tests(test_type)
case test_type
when :all
system('rake test')
when /(controllers|functional)\/?/
system('rake test:functionals')
when /(models|unit)\/?/
system('rake test:units')
else
# do nothing...