Homebrew in your home

I recently discovered the cool feature of Homebrew - the one to having it installed in your home directory!

A colleague's Mac mini broke, had to quickly switch to a another one so she can resume working. The other Mac was shared so Time Machine was a no go. So I resumed to rsync over SSH between two machines.

Needless to say rsync works flawlessly, however there I hit a major problem with homebrew. On the switch system it was already installed by someone else, I had to install it on her home directory - and recompile all the packages.

Thus from a 15 minutes job went up to almost 3 hours of recompiling and configuring all the required packages, like httpd, PHP and other stuff. Not including debug why "gd" does not work.

Therefore I reinstalled also everything on my laptop in my home, so I can easily move to another computer by grabbing my home directory.

I'm adding here for reference the options used to install each package

xcode-select --install
mkdir ~/Work
cd ~/Work
git clone https://github.com/mxcl/homebrew.git
cd homebrew
brew update
brew tap homebrew/apache
brew tap homebrew/php
brew install mysql55 --with-memcached
brew install httpd24
brew install php56 --with-imap --with-homebrew-libxml2 --with-pear --with-httpd24 --with-homebrew-curl
brew install php56 php56-uploadprogress php56-timezonedb php56-xdebug php56-crypto php56-xhprof php56-geoip php56-yaml php56-http php56-igbinary php56-imagick php56-intl php56-jsmin php56-mcrypt php56-memcache php56-memcached php56-opcache php56-propro php56-raphf
brew install python 
brew install igbinary
brew install gd imagemagick graphicsmagick
brew install ansible haproxy dnsmasq memcached libmemcached node npm
brew install git git-sh
brew install thefuck p7zip unrar elinks lynx geos geoip md5sha1sum wget siege bzip2
brew install pdf2htmlex iperf jmeter mcrypt bash bash-completion 
brew install midnight-commander netcat mtools

, in homebrew/etc/apache2/2.4/httpd.conf

Include /Users/XXXXXXXX/Work/homebrew/etc/apache2/2.4/conf.d/*.conf

, in /Users/XXXXXXXX/Work/homebrew/etc/apache2/2.4/conf.d/php.conf

AddType application/x-httpd-php .php