$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ brew tap caskroom/cask
$ brew cask install google-chrome firefox iterm2 sublime-text caffeine google-drive github-desktop sequel-pro spotify imageoptim skype slack superduper qlmarkdown
$ brew install rbenv
$ rbenv init
Add rbenv to bash
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
$ source ~/.bash_profile
Install Ruby 2.4.1 and set it as the default version
$ rbenv install 2.4.1
$ rbenv global 2.4.1
$ ruby -v
# ruby 2.4.1
Download Java SDK from oracle and install it
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Install maven (mvm command)
brew install maven
Install IntelliJ Idea Community Edition
brew cask install intellij-idea-ce
$ git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
$ ~/.bash_it/install.sh
$ bash-it enable plugin git ruby rbenv
$ gem install scss-lint
$ gem install rubocop
$ gem install haml
$ brew install node
$ npm install -g jshint
$ npm install -g coffeelint
$ brew cask install postgres
$ brew cask install postico
Install pg-Gem
$ gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
$ brew install mysql
$ brew install imagemagick
Useful Gems
$ gem install bundler
$ gem install byebug
$ gem install mysql2
echo "max_allowed_packet=256M" >> /usr/local/etc/my.cnf
mysql.server restart