Mensch font, Source Code Pro, Webkit, Chrome, Firefox, Kaleidoscope, iTerm, Sequel Pro, Codekit, ImageOptim, XQuartz
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
#Disable ext change warning
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
# Check for software updates daily, not just once per week
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
#Use current directory as default search scope in Finder
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true
#Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
#Enable AirDrop over Ethernet and on unsupported Macs
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
#Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0
# Show icons for hard drives, servers, and removable media on the desktop
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true &&
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true &&
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true &&
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
# Avoid creating .DS_Store files on network volumes
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
#Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12
#Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true &&
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true &&
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
#Enable Safari’s debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
# Disable smart quotes as it’s annoying for messages that contain code
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
# Enable the Develop menu and the Web Inspector in Safari
defaults write com.apple.Safari IncludeDevelopMenu -bool true &&
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true &&
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true &&
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
#Show the ~/Library folder
chflags nohidden ~/Library
#Show absolute path in finder's title bar.
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
defaults write com.apple.LaunchServices LSHandlers -array-add '{LSHandlerContentType=public.plain-text;LSHandlerRoleAll=com.macromates.textmate;}'
###XCode Command Line Tools
Get em here
###SSH
Get your public and private keys copied over.
Add your keys to keyring
ssh-add -K ~/.ssh/id_dsa
ssh-add -K ~/.ssh/id_rsa
ssh-add -K ~/.ssh/identity
###Git
####Setup Github
#test connection
ssh -T [email protected]
#set git config values
git config --global user.name "Steven Klass" &&
git config --global user.email "[email protected]" &&
git config --global github.user rh0dium &&
git config --global core.editor "mate -w" &&
git config --global color.ui true &&
git config --global push.default simple
#token
git config --global github.token your_token_here
####Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
brew install wget git
# Universal is used for the ICM Trees.
brew install openssl --universal
brew install mysql --enable-memcached --universal
brew install qt --with-qt3support --mysql --without-frameworks --without-phonon --universal
# ./configure -prefix /usr/local/Cellar/qt/4.8.6 -system-zlib -qt-sql-mysql -qt-sql-sqlite -qt-libtiff -qt-libpng -qt-libjpeg -confirm-license -opensource -nomake demos -nomake examples -cocoa -fast -release -I/usr/local/Cellar/mysql/5.6.19/include/mysql/ -L/usr/local/Cellar/mysql/5.6.19/lib/ -platform univsal
brew install boost --universal
brew install graphviz --with-bindings --with-app --with-freetype
mkdir -p /opt/icmanage/
# (Pull in ICM TOOLROOT)
ln -s /usr/local/Cellar/qt/4.8.6 qt4
ln -s /usr/local/Cellar/openssl/1.0.1h ssl
ln -s /usr/local/Cellar/boost/1.55.0_2 boost
###Dropbox
###Shell
####Switch to z-shell
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
####Update .zshrc
wget https://gist.github.com/saetia/2764210/raw/ef18e4013ed7d11e400527268bfaff0b7b0e4a70/.zshrc -O ~/.zshrc
#syntax highlighting
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
####Set hostname
sudo scutil --set HostName Work
###Git
####Setup Github
ssh-keygen -t rsa -C "[email protected]"
#copy ssh key to github.com
cat ~/.ssh/id_rsa.pub
#test connection
ssh -T [email protected]
#set git config values
git config --global user.name "Joel Glovacki" &&
git config --global user.email "[email protected]" &&
git config --global github.user saetia &&
git config --global core.editor "subl -w" &&
git config --global color.ui true &&
git config --global push.default simple
#token
git config --global github.token your_token_here
###Coda
####Install markdown support
git clone https://github.com/bobthecow/Markdown.mode.git ~/Library/Application\ Support/Coda\ 2/modes/Markdown.mode
###Sublime Text
####Add Sublime Text CLI
sudo mkdir -p "/usr/local/bin/" && ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" "/usr/local/bin/subl"
####Install Soda Theme
git clone git://github.com/buymeasoda/soda-theme.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Theme\ -\ Soda
####Install Tomorrow Theme
git clone git://github.com/chriskempson/textmate-tomorrow-theme.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Color\ Scheme\ -\ Tomorrow
####Settings
{
"close_windows_when_empty": true,
"color_scheme": "Packages/Color Scheme - Tomorrow/Tomorrow-Night-Eighties.tmTheme",
"draw_indent_guides": false,
"font_face": "Source Code Pro",
"font_size": 22.0,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"show_full_path": true,
"show_tab_close_buttons": false,
"spell_check": false,
"tab_size": 2,
"theme": "Soda Light.sublime-theme",
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}
####Key Bindings
[
{ "keys": ["super+b"], "command": "expand_selection", "args": {"to": "brackets"} },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} },
{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} }
]
####Snippets
git clone [email protected]:bytestudios/sublime-snippets.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Byte
curl -L https://get.rvm.io | bash -s stable --rails
gem install pygmentize growl guard guard-phpunit
npm install -g coffeescript
This will route requests to any url ending in .build back to your own computer. The goal is to use urls like http://example.com.build for development while you work on http://example.com
brew install dnsmasq &&
mkdir -pv $(brew --prefix)/etc/ &&
echo 'address=/.build/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/build'
#flush cache
dscacheutil -flushcache
#ensure it works
scutil --dns
####Enable virtual hosts
This will allow you to serve folders under ~/Sites/ as websites.
- ~/Sites
- example.com
- httpdocs
- index.html
- httpdocs
- example.com
to access this site, visit http://example.com.build
sudo touch "/etc/apache2/users/$USER.conf"
sudo subl "/etc/apache2/users/$USER.conf"
DocumentRoot "/Users/Joel/Sites/"
NameVirtualHost *:80
<Directory "/Users/Joel/Sites/">
Options Indexes MultiViews FollowSymLinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
UseCanonicalName off
VirtualDocumentRoot /Users/Joel/Sites/%-2+/httpdocs
</VirtualHost>
####Apache Config
sudo wget https://gist.github.com/saetia/6096745/raw/8a4b8a752f26e3841fa2d91586e70723006e2f12/httpd.conf -O /etc/apache2/httpd.conf
####Enable centOS style /var/www/vhosts for local dev
sudo mkdir -p /var/www/ &&
sudo ln -s ~/Sites /var/www/vhosts
####XDebug
brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/xdebug-php.rb
####MySQL
brew install mysql
####MySQL Settings
#setup daemon
mkdir -p ~/Library/LaunchAgents && cp /usr/local/Cellar/mysql/5.5.20/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/ && launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
#Set up databases to run as your user account
unset TMPDIR && mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
#start mysql
mysql.server start
#secure mysql
/usr/local/Cellar/mysql/5.5.20/bin/mysql_secure_installation
####Configure php.ini
wget https://gist.github.com/saetia/6096739/raw/837b02be80f31edf73767e9b3d0ba2f765ee4be4/php.ini -O /etc/php.ini
####Restart apache
sudo apachectl graceful