Git file history

View the commit history for a particular file with git on the command line: git log –follow -p — filename  

Updating Homebrew on Yosemite

The Error $ brew /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0 $ brew doctor /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0 The Fix Make homebrew think /System/Library/Frameworks/Ruby.framework/Versions/1.8 still exists until you successfully update: cd /System/Library/Frameworks/Ruby.framework/Versions… Continue reading Updating Homebrew on Yosemite

OS X pg gem install or bundle install issues

If you’re getting errors like: Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for pg_config… yes Using config values from /usr/local/bin/pg_config checking for libpq-fe.h… yes checking for libpq/libpq-fs.h… yes checking for pg_config_manual.h… yes checking for PQconnectdb() in -lpq… no checking for… Continue reading OS X pg gem install or bundle install issues

Bonjour issues cause problems with teleport

Common issues caused by bonjour with Teleport: Teleport not connecting Teleport not showing the accept prompt Teleport only able to connect in one direction and not the other Teleport can’t reconnect Making sure Bonjour is working Messages.app > Preferences > Accounts > Bonjour > Enable Bonjour instant messaging (on both computers) Locate your other computer… Continue reading Bonjour issues cause problems with teleport