Skip to content

Instantly share code, notes, and snippets.

View johncalistro's full-sized avatar

John Calistro johncalistro

View GitHub Profile
@johncalistro
johncalistro / rvm_seg_fault_solution
Last active October 7, 2015 13:07
Solution for segmentation fault on RVM with OSX 10.8
OSX 10.8 Mountain Lion
Xcode 4.4 (4F250) with command line installed
RVM curl https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer | bash -s stable
Ruby 193p194
Rails 3.2.6
Error:
/Users/home_dir/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault ruby 1.9.3p194 (2012-04-20 revision 35410)
This is what fixed the problem for me.
@johncalistro
johncalistro / ML_install_err_HD
Created July 28, 2012 13:48
ML não instala por erro no acesso a HD
Aconteceu comigo e creio que com mais pessoas, a instalação do Mountain Lion nem mesmo começa e dá um erro que
o HD está com defeito.
O que resolveu no meu caso.
- Recuperei a ultima versão que tinha no Time Machine, acontece que ferrei tanto com as tentativas de
instalação que chegou uma hora que só tinha uma tela preta na minha frente, nem mesmo iniciava mais, então,
reiniciei com o Option pressionado pra escolher o disco de recuperação, e de lá recuperei o último backup
(+-3h).
@johncalistro
johncalistro / java_install_howto
Created April 13, 2013 20:46
How to install Java on Ubuntu
$ sudo apt-get install openjdk-6-jre
$ sudo apt-get install openjdk-7-jre
$ sudo apt-get install openjdk-6-jdk
$ sudo apt-get install openjdk-7-jdk
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
to check
@johncalistro
johncalistro / bash_prompt
Created January 10, 2014 18:42
Bash Prompt with Ruby version, Rails version, folder info, branch name and branch status
function _git_prompt() {
local git_status="`/usr/local/git/bin/git status -unormal 2>&1`"
if ! [[ "$git_status" =~ Not\ a\ git\ repo ]]; then
if [[ "$git_status" =~ nothing\ to\ commit ]]; then
local ansi=32
elif [[ "$git_status" =~ nothing\ added\ to\ commit\ but\ untracked\ files\ present ]]; then
local ansi=33
else
local ansi=35
fi

Keybase proof

I hereby claim:

  • I am joaocalistro on github.
  • I am johncalistro (https://keybase.io/johncalistro) on keybase.
  • I have a public key whose fingerprint is C2D3 9BBC A922 67E4 CFFA B63F BF68 452F C0F7 02E9

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am johncalistro on github.
  • I am johncalistro (https://keybase.io/johncalistro) on keybase.
  • I have a public key whose fingerprint is 6418 F9A5 F691 A2E6 E004 139F 562D 153B 99D9 B400

To claim this, I am signing this object: