ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
#install
curl -L https://get.rvm.io | bash -s stable
# fix ssl
rvm osx-ssl-certs update all
rvm install 2.1.1
rvm install ruby-2.1.1
brew install mysql mongodb memcached redis libyaml
brew install imagemagick pidof optipng pngquant wget
brew tap marcqualie/nginx
brew install nginx-full --with-headers-more-module
#node
brew install phantomjs node
#npm ( require node )
curl -L https://npmjs.com/install.sh | sh
curl https://raw.githubusercontent.com/creationix/nvm/v0.25.1/install.sh | bash
mkdir ~/Library/LaunchAgents
#MariaDB
cp /usr/local/Cellar/mariadb/5.5.32/homebrew.mxcl.mariadb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist
#mongoDB
cp /usr/local/Cellar/mongodb/2.4.8/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
npm install -g bower
#Issue( https://github.com/mxcl/homebrew/pull/23793 )
brew install qt
# Global configuration
git config --global user.name 'your_github_username'
git config --global user.email 'your_github_email'
# Shortcuts
vim ~/.gitconfig
#paste
[alias]
st = status
ci = commit
co = checkout
br = branch
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[color "status"]
added = yellow
changed = cyan
untracked = red
# Git Branch Config
vim ~/.bash_profile
# paste
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/(\1$(parse_git_dirty))/"
}
export PS1='\[\e[1;37m\]\w\[\e[m\] $(parse_git_branch "(%s)" ) \[\e[1;32m\]\$ \[\e[m\]\[\e[1;37m\]'
export PATH=$HOME/.rbenv/shims:$PATH
source ~/.bash_profile
###CJ - Pull
cd ~/clickjogos
rvm @global
gem install git-up term-ansicolor
wget https://gist.github.com/raw/02b8f09c58cbc6a09131/be3ab201716427b9320e5622a6974e53af3f745f/cjpull.rb
ruby cjpull.rb
###VIM
vim ~/.vimrc
#paste
set number
syntax on
###Sublime terminal shortcut
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
###Sublime Plugins
BracketHighlighter e Alignment
[SidebarEnhacements](https://dl.dropboxusercontent.com/u/9303546/SublimeText/SideBarEnhancements.zip)
###DNS - Google
8.8.8.8
8.8.4.4
###Foreman
- Isolando hosts
sudo vim /etc/hosts
#paste
127.0.0.1 adm.dev
127.0.0.1 api.clickjogos.dev
127.0.0.1 clickjogos.dev
127.0.0.1 connect.clickjogos.dev
127.0.0.1 devcenter.dev
127.0.0.1 jdm.dev
127.0.0.1 m.clickjogos.dev
127.0.0.1 sso_example.clickjogos.dev
127.0.0.1 clicktracker.clickjogos.dev
127.0.0.1 joguinhos.dev
- whatfont
- page-ruler
- rulers-guides-eye-dropper
- perfectpixel-by-welldonec
- edit-this-cookie
- eye-dropper
- coffeeconsole
###Apps
Para quem fez o update e ficou com erro no carregamento da libltdl.7.dylib so executar:
brew reinstall libtool --universal && brew unlink libtool && brew link libtool