Skip to content

Instantly share code, notes, and snippets.

View chrislerum's full-sized avatar

Chris Lerum chrislerum

View GitHub Profile
usually i don't work on local master branch
this time i did my mistake
got 4 commits ahead of origin/master
to fix, did this:
git checkout working
git checkout master
git reset --hard origin/master
i expected that to do the same thing as git reset --hard head^^^^ (go back 4 commits)
what i got was my new 'working' branch disappeared (why?)
Processing UsersController#update (for 71.180.130.25 at 2010-08-08 04:18:15) [PUT]
Parameters: {"user"=>{"profile"=>{"website"=>"", "location"=>""}, "profile_picture"=>#<File:/tmp/RackMultipart.29296.0>, "first_name"=>"Chris", "last_name"=>"Lerum", "email"=>"[email protected]"}, "commit"=>"Save Profile", "authenticity_token"=>"Kymc1F2W23OGL/zeo5PoOpLfgGP1Q0XsCmYzQuBqkBA=", "id"=>"303"}
User Load (0.4ms) SELECT * FROM `users` WHERE (`users`.`id` = 303) LIMIT 1
WARNING: Can't mass-assign these protected attributes: profile_picture
SQL (0.4ms) BEGIN
User Load (0.7ms) SELECT `users`.id FROM `users` WHERE (`users`.`email` = BINARY '[email protected]' AND `users`.id <> 303) LIMIT 1
User Update (0.5ms) UPDATE `users` SET `profile` = '--- !map:HashWithIndifferentAccess \nwebsite: \"\"\nlocation: \"\"\n' WHERE `id` = 303
[paperclip] Saving attachments.
SQL (0.2ms) COMMIT
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: /tmp/stream.29296.0 i
Processing ApplicationController#index (for 69.157.228.147 at 2010-08-08 04:09:30) [GET]
Parameters: {"1281050731"=>nil}
ActionController::RoutingError (No route matches "/system/profile_pictures/7/small/deMessieres_headshot4a.JPG" with {:method=>:get}):
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:35:in `call'
warden (0.10.7) lib/warden/manager.rb:34:in `catch'
warden (0.10.7) lib/warden/manager.rb:34:in `call'
haml (3.0.6) lib/sass/plugin/rack.rb:41:in `call'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
after giving up on system-wide rvm, trying to get back to user rvm, but rvm still seems to wants to intall everything in /usr/local ...
why?
~ chris@chrislerum
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
124 373 124 373 0 0 2422 0 --:--:-- --:--:-- --:--:-- 4907
mkdir: cannot create directory `/usr/local/rvm': Permission denied
ree-1.8.7-2010.02 /usr/local/rvm/wrappers chris@chrislerum
rvm --trace wrapper ree@chrislerum_production passenger
--trace wrapper ree@chrislerum_production passenger
rvm 0.1.43 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
+ [[ -z '' ]]
+ [[ ! -z ree@chrislerum_production ]]
+ rvm_action=use
+ [[ ! -z '' ]]
ree-1.8.7-2010.02 /usr/local/rvm/wrappers chris@chrislerum
rvm ree --passenger --trace
ree --passenger --trace
rvm 0.1.43 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
+ [[ -z use ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 0 -gt 0 ]]
ree-1.8.7-2010.02 /usr/local/rvm/wrappers chris@chrislerum
rvm wrapper ree passenger
rm: cannot remove `/usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby': Permission denied
/usr/local/rvm/scripts/wrapper: line 17: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
/usr/local/rvm/scripts/wrapper: line 18: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
/usr/local/rvm/scripts/wrapper: line 19: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
/usr/local/rvm/scripts/wrapper: line 20: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
/usr/local/rvm/scripts/wrapper: line 21: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
/usr/local/rvm/scripts/wrapper: line 22: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
/usr/local/rvm/scripts/wrapper: line 23: /usr/local/rvm/wrappers/ree-1.8.7-2010.02/ruby: Permission denied
Started by user chris
Checkout:workspace / /var/lib/hudson/jobs/ChrisLerumSite/workspace - hudson.remoting.LocalChannel@97e111
Using strategy: Default
Last Built Revision: Revision be9f350375e8f91fd50384ea9290e00339f878eb (origin/master)
Checkout:workspace / /var/lib/hudson/jobs/ChrisLerumSite/workspace - hudson.remoting.LocalChannel@97e111
GitAPI created
Cloning the remote Git repository
Cloning repository origin
$ git clone -o origin git://github.com/chrislerum/chrislerum.git /var/lib/hudson/jobs/ChrisLerumSite/workspace
ERROR: Error cloning remote repo 'origin' : Could not clone git://github.com/chrislerum/chrislerum.git
abstract (1.0.0)
actionmailer (3.0.0.rc)
actionpack (3.0.0.rc)
activemodel (3.0.0.rc)
activerecord (3.0.0.rc)
activeresource (3.0.0.rc)
activesupport (3.0.0.rc)
arel (0.4.0)
builder (2.1.2)
bundler (1.0.0.rc.2)
/Users/chris/.rvm/gems/ruby-1.9.2-preview3@chrislerum/bundler/gems/pivotal-tracker-ffc8342/lib/pivotal-tracker/project.rb:55: warning: else without rescue is useless
/Users/chris/.rvm/gems/ruby-1.9.2-preview3@chrislerum/bundler/gems/pivotal-tracker-ffc8342/lib/pivotal-tracker.rb:10:in `require': /Users/chris/.rvm/gems/ruby-1.9.2-preview3@chrislerum/bundler/gems/pivotal-tracker-ffc8342/lib/pivotal-tracker/project.rb:50: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError)
when :done: Iteration.done(self)
^
/Users/chris/.rvm/gems/ruby-1.9.2-preview3@chrislerum/bundler/gems/pivotal-tracker-ffc8342/lib/pivotal-tracker/project.rb:51: syntax error, unexpected keyword_when, expecting keyword_end
when :current: Iteration.current(self)
^
/Users/chris/.rvm/gems/ruby-1.9.2-preview3@chrislerum/bundler/gems/pivotal-tracker-ffc8342/lib/pivotal-tracker/project.rb:52: syntax error, unexpected keyword_when, expecting keyword_end
when :backlog: It