Skip to content

Instantly share code, notes, and snippets.

Neal nneal

Block or report user

Report or block nneal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@nneal
nneal / gist:3988917
Created Oct 31, 2012 — forked from gcatlin/gist:1847248
Install specific version of Homebrew formula
View gist:3988917
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
@nneal
nneal / gist:3725746
Created Sep 15, 2012
pg start error
View gist:3725746
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
brew update; brew upgrade; brew doctor
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
@nneal
nneal / ubuntu_ruby_install.sh
Created Jun 11, 2012
Ubuntu Ruby install - rbenv and ruby-build
View ubuntu_ruby_install.sh
#!/bin/bash
# Install rbenv
# https://github.com/sstephenson/rbenv
cd ~
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile
echo 'eval "$(rbenv init -)"' >> .bash_profile
You can’t perform that action at this time.