Skip to content

Instantly share code, notes, and snippets.

@claudioovp
Last active April 15, 2016 21:53
Show Gist options
  • Save claudioovp/8a22c3970dd37a93e970 to your computer and use it in GitHub Desktop.
Save claudioovp/8a22c3970dd37a93e970 to your computer and use it in GitHub Desktop.
OS X Clean Install

https://gist.github.com/kevinelliott/0726211d17020a6abc1f

https://mallinson.ca/osx-web-development/

https://gist.github.com/saetia/1623487

http://sourabhbajaj.com/mac-setup/index.html

https://github.com/altercation/solarized

###Change Mission Control Animation Speed defaults write com.apple.dock expose-animation-duration -float 0.1 ; killall Dock

##Xcode Command Line Tools

Xcode > Preferences > Downloads > Command Line Tools

#Homebrew

Run Xcode and accept the license

Homebrew can not install properly until this occurs.

Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor

Install Homebrew extension Cask

brew install caskroom/cask/brew-cask

###Shell


####Switch to z-shell

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

###Node

NVM script

https://github.com/creationix/nvm#installation

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
nvm install node && nvm alias default node

##DNSMASQ OSX config

http://passingcuriosity.com/2013/dnsmasq-dev-osx/

brew install dnsmasq

mkdir -pv $(brew --prefix)/etc/ && \
echo 'address=/.dev/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf && \
echo 'address=/.public/127.0.0.1' > $(brew --prefix)/etc/dnsmasq.conf && \
sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons && \
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist && \
sudo mkdir -v /etc/resolver && \
sudo zsh -c 'echo "nameserver 127.0.0.1" > /etc/resolver/dev' && \
sudo zsh -c 'echo "nameserver 127.0.0.1" > /etc/resolver/public'


# delete cache dns
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; say cache flushed

# check dnsmasq config
subl /usr/local/etc/dnsmasq.conf

# restart Dnsmasq
sudo launchctl stop homebrew.mxcl.dnsmasq
sudo launchctl start homebrew.mxcl.dnsmasq

https://mallinson.ca/osx-web-development/ https://gist.github.com/claudioovp/e003a7f76238f56d6255

##Android https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03

PHP Composer

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment