$ brew doctor
$ brew update
$ brew tap homebrew/dupes # psgrep
$ brew install autoconf automake cmake curl curl-ca-bundle grep psgrep wget zsh
$ brew install git gist tig
$ brew install unzip unrar p7zip libzip gzip
$ brew install stow
$ brew install cups-pdf
$ brew install htop-osx
$ brew install tmux
$ brew install postgresql redis mysql mongodb sqlite
$ brew install nginx openssl gpp
$ brew install ruby-build rbenv
$ brew install libiconv
$ brew tap homebrew/dupes
$ brew tap josegonzalez/homebrew-php
$ brew install php53 php53-mcrypt phpmyadmin
$ brew install android-sdk clisp newlisp go v8 scala python node
$ brew install mecab mecab-ipadic cabocha
$ brew tap homebrew/science # OpenCV
$ brew tap totakke/openni # OpenNI
$ brew install libusb --universal
$ brew install libpng eigen libtiff jasper tbb qt
$ brew install opencv openni sensor sensor-kinect nite
$ brew tap oame/nlp
$ brew install julius julius-dictation-kit
$ julius -C `brew --prefix julius-dictation-kit`/share/fast.jconf -charconv EUC-JP UTF-8
Install XQuartz
from https://xquartz.macosforge.org
$ brew install libpng pixman glib
$ brew install cairo
$ brew install apple-gcc42 asciidoc bdw-gc binutils bsdmake cloog coreutils crf++ ctags docbook docbook-xsl doxygen faac ffmpeg fontconfig fontforge freetype gdbm geos gettext gfortran ghostscript giflib glib gmp gnu-getopt gnu-tar harfbuzz icu4c imagemagick irssi isl jbig2dec jpeg jq json-c lame libevent libffi libmpc libsigsegv libtool libusb little-cms2 lv lynx mcrypt mobile-shell mpfr ncftp neon nkf nmap ossp-uuid pango parallel pcre pcre++ phantomjs pixman pkg-config portaudio potrace proctools proj protobuf qt readline sbt scons serf sip texi2html tree unixodbc varnish w3m x264 xmlto xvid xz yasm youtube-dl zeromq zlib