Skip to content

Instantly share code, notes, and snippets.

Avatar

James Pennell jpennell

  • Electronic Arts
  • Waterloo, Ontario, Canada
View GitHub Profile
@jpennell
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
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb # reset formula
## Example: Using Subversion 1.6.17
#
@jpennell
jpennell / README.md
Created Sep 8, 2012 — forked from davejamesmiller/ask.sh
General-purpose Yes/No prompt function ("ask") [Bash]
View README.md

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.