Skip to content

Instantly share code, notes, and snippets.


James Pennell jpennell

  • Electronic Arts
  • Waterloo, Ontario, Canada
View GitHub Profile
jpennell / Homebrew install specific version
Created Dec 1, 2012 — forked from gcatlin/gist:1847248
Install specific version of Homebrew formula
View Homebrew install specific version
brew update
brew versions FORMULA
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions"
brew install FORMULA
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
jpennell /
Created Sep 8, 2012 — forked from davejamesmiller/
General-purpose Yes/No prompt function ("ask") [Bash]

This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer. It keeps repeating the question until it gets a valid answer.

You can’t perform that action at this time.