Skip to content

Instantly share code, notes, and snippets.

@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
@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: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: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 / rvmout
Created January 23, 2013 15:56
after deleting RVM line from .zshrc
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 170 0 0:00:01 0:00:01 --:--:-- 282
100 10598 100 10598 0 0 8454 0 0:00:01 0:00:01 --:--:-- 8454
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 696 0 --:--:-- --:--:-- --:--:-- 963
100 1488k 100 1488k 0 0 334k 0 0:00:04 0:00:04 --:--:-- 537k
@andrunix
andrunix / gist:4608915
Created January 23, 2013 16:17
rvm requirements run - shows that I am missing the command line tools. What about this llvm-gcc though? I thought that was the problem with Ruby 1.9.3
andrunix@amp-laptop~$ rvm requirements run
Requirements for osx/10.8/x86_64
NOTE: 'ruby' represents Matz's Ruby Interpreter (MRI) (1.8.X, 1.9.X)
This is the *original* / standard Ruby Language Interpreter
'ree' represents Ruby Enterprise Edition
'rbx' represents Rubinius
Additional Dependencies:
# For update-system:
function showForm() {
$('#upper').slideUp(300);
$('#mail').slideDown(300)
}
function hideForm() {
$('#mail_form')[0].reset();
$('#mail').slideUp(300);
$('#upper').slideDown(300);
$('#error').html('');
@andrunix
andrunix / gist:7901799
Created December 10, 2013 22:45
Error when running npm install
npm http 304 https://registry.npmjs.org/express
> mean@0.1.0 postinstall /home/andrunix/code/enterleague.com
> bower install
module.js:340
throw err;
^
Error: Cannot find module 'mout'
@andrunix
andrunix / gist:8713747
Created January 30, 2014 17:17
Firebase findAll
findAll: function() {
var sports = {};
var sportsRef = new Firebase(FBURL + '/sports');
sportsRef.once('value', function(snapshot) {
sports = snapshot.val();
});
return sports;
}
<?php
# ---------------------------------------------------------------------------
# listitem.php - List an item for sale
# ---------------------------------------------------------------------------
require_once('suresale.php');
require_once('navfn.php');
require_once "dbfn.php";
require_once "lgnfrm.php";
require_once('listitems.php');