Skip to content

Instantly share code, notes, and snippets.

@andrunix
andrunix / gist:4608270
Created January 23, 2013 15:37
grep path
andrunix@amp-laptop~$ GREP_OPTIONS="" \grep -rn 'PATH=' ~/.zlogin ~/.zshrc ~/.bash_profile ~/.bashrc | GREP_OPTIONS="" \grep -vE '[[:alnum:]_]PATH=|PATH=.*PATH'
grep: /Users/andrunix/.zlogin: No such file or directory
/Users/andrunix/.zshrc:37:export PATH=/Users/andrunix/local/bin:/Users/andrunix/.rvm/gems/ruby-1.9.2-p290/bin:/Users/andrunix/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/andrunix/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/andrunix/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/andrunix/android-sdk-mac_86/tools:/Applications/sshfs/bin:/usr/local/mysql/bin
@andrunix
andrunix / gist:4608199
Created January 23, 2013 15:32
rvm get head
andrunix@amp-laptop~$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 369 0 --:--:-- --:--:-- --:--:-- 446
100 10598 100 10598 0 0 15702 0 --:--:-- --:--:-- --:--:-- 15702
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 131 100 131 0 0 693 0 --:--:-- --:--:-- --:--:-- 963
100 1488k 100 1488k 0 0 303k 0 0:00:04 0:00:04 --:--:-- 343k
@andrunix
andrunix / gist:4605739
Created January 23, 2013 13:44
rvm --trace requirements run
andrunix@amp-laptop~$ rvm --trace requirements run
+ [[ -n '' ]]
+ set -o errtrace
+ export 'PS4=+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ PS4='+ $(date "+%s.%N") ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > '
+ 1358948608.N /scripts/cli : __rvm_parse_args() 697 > [[ -z '' ]]
+ 1358948608.N /scripts/cli : __rvm_parse_args() 697 > [[ -n '' ]]
+ 1358948608.N /scripts/cli : __rvm_parse_args() 700 > [[ error == '' ]]
+ 1358948608.N /scripts/cli : __rvm_parse_args() 700 > [[ 0 -eq 1 ]]
+ 1358948608.N /scripts/cli : __rvm_parse_args() 700 > [[ -n '' ]]
@andrunix
andrunix / gist:4600926
Created January 23, 2013 01:37
After reverting to 1.9.2 with RVM
tarted GET "/assets/application.js?body=1" for 127.0.0.1 at 2013-01-22 20:28:54 -0500
Served asset /application.js - 304 Not Modified (77ms)
/Users/andrunix/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251: [BUG] Bus Error
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-darwin12.2.0]
-- control frame ----------
c:0116 p:---- s:0589 b:0589 l:000588 d:000588 CFUNC :require
c:0115 p:0010 s:0585 b:0585 l:000569 d:000584 BLOCK /Users/andrunix/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251
c:0114 p:0005 s:0583 b:0583 l:000574 d:000582 BLOCK /Users/andrunix/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:234
c:0113 p:0045 s:0581 b:0581 l:000580 d:000580 METHOD /Users/andrunix/.rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:639