curl -s https://raw.githubusercontent.com/bsorem-sugarcrm/prefs/master/install.sh | sh
$ zsh
$ git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
$ setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
$ chsh -s /bin/zsh
$ mkdir code && cd code
$ curl -Lk https://github.com/bsorem-sugarcrm/prefs/archive/master.zip > prefs.zip
$ unzip -a prefs.zip && rm -f prefs.zip
$ cd prefs
$ ln -s ~/code/prefs/zsh/zpreztorc ~/.zpreztorc
$ ln -s ~/code/prefs/zsh/zprofile ~/.zprofile
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install caskroom/cask/brew-cask
$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh
$ brew tap homebrew/services
$ brew tap homebrew/dupes
$ brew tap homebrew/versions
$ brew tap homebrew/homebrew-php
$ brew tap homebrew/science
$ brew tap homebrew/python
$ brew tap homebrew/apache
$ brew cask install alfred android-studio atom bettertouchtool cyberduck dropbox firefox github-desktop gitkraken hyperterm imageoptim iterm2 java jing kitematic macdown namechanger nylas-n1 qlmarkdown sequel-pro sketch skitch sublime-text the-unarchiver vagrant virtualbox vivaldi vlc
$ brew cask cleanup
$ brew install boost cmake composer curl diff-so-fancy docker elasticsearch freetype git go httpie imagemagick kafka libmemcached libsass libssh2 libyaml mariadb mcrypt memcached mongodb mysql openssl php53 php53-apc php53-igbinary php53-mcrypt php53-memcached php53-xdebug php54 php54-apc php54-igbinary php54-mcrypt php54-memcached php54-xdebug php56 phpdocumentor phpunit php-code-sniffer pkg-config rbenv redis rethinkdb sqlite wget zookeeper
$ brew cleanup
prefs/zsh/*
/usr/local/etc/php/5.3/php.ini
Symlink php.ini:
## ln -s /usr/local/etc/php/{{VERSION}}/php.ini /etc/php.ini
ln -sf $CODE/prefs/php/php.ini /etc/php.ini
/etc/php.ini
upload_max_filesize = 150M
mysql.default_socket = /tmp/mysql.sock
memory_limit = 4G
display_errors = Off
$ brew services start mysql
brew install mariadb
mysql_install_db
Unload Apache launcher:
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null
Install Apache 2.4 via Homebrew
brew install -v httpd24 --with-brewed-openssl
Launch Apache:
brew services start httpd24
Add LoadModules
# LoadModule php5_module /usr/local/opt/php53/libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/lib/libphp5.so
<Directory />
#AllowOverride none
#Require all denied
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
Include /private/etc/apache2/users/*.conf
Copy from /apache/
$ sudo dseditgroup -o edit -a <USERNAME> -t user www
$ sudo dseditgroup -o edit -a <USERNAME> -t user wheel
git config core.fileMode false
brew cask install android-studio
brew install android-sdk
$ brew tap homebrew/science
$ brew install opencv
$ brew cleanup
$ apm install atom-beautify atom-ternjs autocomplete-php color-picker editorconfig emmet highlight-line jshint linter linter-eslint merge-conflicts minimap pigments project-manager react tabs-to-spaces linter-phpcs todo-show tool-bar tool-bar-main simple-drag-drop-text docblockr auto-update-packages file-icons
atom-beautify
atom-ternjs
autocomplete-php
color-picker
emmet
highlight-line
jshint
linter
linter-eslint
merge-conflicts
minimap
pigments
react
tabs-to-spaces
linter-phpcs
tool-bar
tool-bar-main
simple-drag-drop-text
docblockr
auto-update-packages
file-icons
editorconfig
project-manager
todo-show
activate-power-mode
git-time-machine