Forked from kevinelliott/1-macOS-10.12-sierra-setup.md
Created
December 1, 2016 13:15
-
-
Save abhimskywalker/76a6d2e9c546d8f982d5ceda7c21f59b to your computer and use it in GitHub Desktop.
Revisions
-
kevinelliott revised this gist
Oct 12, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -107,10 +107,10 @@ echo 'source ~/.dotfiles/base.sh' >> ~/.bash_profile ```bash #Set a blazingly fast keyboard repeat rate defaults write NSGlobalDomain KeyRepeat -int 1 #Set a shorter Delay until key repeat defaults write NSGlobalDomain InitialKeyRepeat -int 10 #Add a context menu item for showing the Web Inspector in web views defaults write NSGlobalDomain WebKitDeveloperExtras -bool true -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ tap 'caskroom/cask' tap 'homebrew/bundle' tap 'homebrew/core' tap 'homebrew/services' brew 'ack' brew 'autoconf' brew 'autojump' @@ -23,8 +24,10 @@ brew 'memcached' brew 'libmemcached' brew 'libxml2' brew 'mas' brew 'mysql' brew 'ossp-uuid' brew 'readline' brew 'postgresql' brew 'tmux' brew 'wget' cask 'adobe-creative-cloud' -
kevinelliott revised this gist
Sep 20, 2016 . 2 changed files with 55 additions and 73 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -59,9 +59,7 @@ This will take some time, especially if you have a slow internet connection and ### Install from Third-Party Websites * Development * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions) * Utilities * [HyperDock](https://bahoom.com/hyperdock/) @@ -76,69 +74,12 @@ Fonts ----- [Mensch coding font](http://robey.lag.net/2010/06/21/mensch-font.html) # Xcode Command Line Tools `Xcode > Preferences > Downloads > Command Line Tools` # Homebrew ## Install Parallels plugin for Vagrant ``` @@ -148,7 +89,7 @@ vagrant plugin install vagrant-parallels See http://parallels.github.io/vagrant-parallels/ for more details. # Shell Install custom .dotfiles ```bash @@ -216,9 +157,7 @@ git config --global color.ui true Add Sublime Text CLI -------------------- This is done automatically by Homebrew Cask. Install Package Control ----------------------- @@ -300,14 +239,6 @@ git clone [email protected]:bytestudios/sublime-snippets.git "/Users/Joel/Library/A ## Server ### MySQL ```bash This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,64 @@ tap 'caskroom/cask' tap 'homebrew/bundle' tap 'homebrew/core' brew 'ack' brew 'autoconf' brew 'autojump' brew 'xz' brew 'automake' brew 'colordiff' brew 'libpng' brew 'freetype' brew 'git' brew 'git-flow' brew 'hub' brew 'icoutils' brew 'libtool' brew 'jpeg' brew 'libtiff' brew 'imagemagick' brew 'openssl' brew 'libevent' brew 'memcached' brew 'libmemcached' brew 'libxml2' brew 'mas' brew 'ossp-uuid' brew 'readline' brew 'tmux' brew 'wget' cask 'adobe-creative-cloud' cask 'amazon-drive' cask 'amazon-music' cask 'android-studio' cask 'anvil' cask 'applepi-baker' cask 'atom' cask 'cocoapods-app' cask 'docker-toolbox' cask 'dropbox' cask 'firefox' cask 'github-desktop' cask 'google-chrome' cask 'grandperspective' cask 'iterm2' cask 'java' cask 'joinme' cask 'livereload' cask 'ngrok' cask 'opera' cask 'parallels-desktop' cask 'rescuetime' cask 'sidestep' cask 'skitch' cask 'skype' cask 'sonos' cask 'spotify' cask 'steam' cask 'sublime-text' cask 'transmit' cask 'vagrant' cask 'vagrant-manager' cask 'visual-studio-code' mas 'QuickBooks', id: 640830064 mas 'CARROT Weather', id: 993487541 -
kevinelliott revised this gist
Sep 20, 2016 . 2 changed files with 13 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,12 +58,6 @@ This will take some time, especially if you have a slow internet connection and ### Install from Third-Party Websites * Development * [Dropbox](https://www.dropbox.com/install2) * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions) This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,20 @@ tap 'caskroom/cask' tap 'homebrew/bundle' tap 'homebrew/core' brew 'mas' cask 'dropbox' cask 'firefox' cask 'google-chrome' cask 'opera' cask 'parallels-desktop' cask 'sublime-text' cask 'visual-studio-code' mas 'QuickBooks', id: 640830064 mas 'CARROT Weather', id: 993487541 mas 'iMovie', id: 408981434 mas 'Pages', id: 409201541 mas 'Xcode', id: 497799835 mas 'Veertu', id: 1024069033 mas 'Slack', id: 803453959 mas 'WiFi Explorer', id: 494803304 mas 'WiFi Signal', id: 525912054 mas 'Numbers', id: 409203825 -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,8 @@ This keeps the system performing at top speeds, clean of trojans, spyware, and e You are encouraged to fork this and modify it to your heart's content to match your own needs. If you find it useful: feel free to shoot me an email, leave a comment, or tell others about it. ## Install Software The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis. -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,9 @@ Custom recipe to get **macOS 10.12 Sierra** running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my [10.11 El Capitan setup recipe](https://gist.github.com/kevinelliott/e12aa642a8388baf2499) and [10.10 Yosemite setup recipe](https://gist.github.com/kevinelliott/0726211d17020a6abc1f). I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer **from scratch every 6 months**, and I **do not** perform upgrades between releases. This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. **I highly recommend this.** You are encouraged to fork this and modify it to your heart's content to match your own needs. -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 16 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,6 +22,10 @@ The software selected is software that is "tried and true" --- software I need a During install of Homebrew, the script will kindly detect that you have not yet installed Xcode Command Line Tools, and pop up a dialog asking if you want to install it. Yes, you do. I defer to install the full Xcode until later since the download takes longer and I want to keep moving forward. For now, just the Xcode Command Line Tools. Confirm the license: `sudo xcodebuild -license` #### Mac App Store Command Line Tools The `mas` command by `argon` is a handy tool to interact with the App Store without needing to point and click, search, and otherwise need manual intervention. This lets us install the next batch of software very quickly using **Terminal**. @@ -36,16 +40,19 @@ Then signin to the **Mac App Store** for the first time: ### Install binaries from a Brewfile (apps from App Store using mas, apps from Cask) #### Retrieve Brewfile `curl -o Brewfile https://gist.github.com/kevinelliott/7a152c556a83b322e0a8cd2df128235c/raw/2-macOS-10.12-sierra-setup-brewfile` #### Edit Brewfile for last minute changes You may wish to add or remove a few App Store or Cask items before initiating Homebrew to install all of the applications. If you wish to review these now you may examine the [Brewfile](https://gist.github.com/kevinelliott/7a152c556a83b322e0a8cd2df128235c/raw/2-macOS-10.12-sierra-setup-brewfile) now. #### Install apps `brew bundle install` This will take some time, especially if you have a slow internet connection and because Xcode is huge. **But it's faster than you having to search the App Store app and click to install for each of these!** ### Install from Third-Party Websites -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,5 @@ mas 'Pages', id: 409201541 mas 'Veertu', id: 1024069033 mas 'Slack', id: 803453959 mas 'Numbers', id: 409203825 mas 'Xcode', id: 497799835 mas -
kevinelliott revised this gist
Sep 20, 2016 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
kevinelliott renamed this gist
Sep 20, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ tap 'caskroom/cask' tap 'homebrew/bundle' tap 'homebrew/core' brew 'mas' mas 'iMovie', id: 408981434 mas 'Pages', id: 409201541 mas 'Veertu', id: 1024069033 mas 'Slack', id: 803453959 mas 'Numbers', id: 409203825 mas 'Xcode', id: 497799835 -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,13 @@ Now that Homebrew is installed, it's easy to get **mas**: `brew install mas` Then signin to the **Mac App Store** for the first time: `mas signin [email protected]` ### Install binaries from a Brewfile (apps from App Store using mas, apps from Cask) ... * [Airmail](https://itunes.apple.com/us/app/airmail/id573171375?mt=12&uo=4) * [Degrees](https://itunes.apple.com/us/app/degrees/id430173763?mt=12&uo=4) -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,6 +22,14 @@ The software selected is software that is "tried and true" --- software I need a During install of Homebrew, the script will kindly detect that you have not yet installed Xcode Command Line Tools, and pop up a dialog asking if you want to install it. Yes, you do. I defer to install the full Xcode until later since the download takes longer and I want to keep moving forward. For now, just the Xcode Command Line Tools. #### Mac App Store Command Line Tools The `mas` command by `argon` is a handy tool to interact with the App Store without needing to point and click, search, and otherwise need manual intervention. This lets us install the next batch of software very quickly using **Terminal**. Now that Homebrew is installed, it's easy to get **mas**: `brew install mas` ### Install from App Store * [Airmail](https://itunes.apple.com/us/app/airmail/id573171375?mt=12&uo=4) -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,6 +18,10 @@ The software selected is software that is "tried and true" --- software I need a `ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` #### Xcode Command Line Tools During install of Homebrew, the script will kindly detect that you have not yet installed Xcode Command Line Tools, and pop up a dialog asking if you want to install it. Yes, you do. I defer to install the full Xcode until later since the download takes longer and I want to keep moving forward. For now, just the Xcode Command Line Tools. ### Install from App Store * [Airmail](https://itunes.apple.com/us/app/airmail/id573171375?mt=12&uo=4) -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,12 @@ You are encouraged to fork this and modify it to your heart's content to match y The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis. ### Prerequisites #### Homebrew `ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` ### Install from App Store * [Airmail](https://itunes.apple.com/us/app/airmail/id573171375?mt=12&uo=4) -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # macOS 10.12 Sierra Setup Custom recipe to get **macOS 10.12 Sierra** running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my [10.11 El Capitan setup recipe](https://gist.github.com/kevinelliott/e12aa642a8388baf2499) and [10.10 Yosemite setup recipe](https://gist.github.com/kevinelliott/0726211d17020a6abc1f). I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros. -
kevinelliott revised this gist
Sep 20, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # macOS 10.12 Sierra Setup Custom recipe to get **macOS 10.12 Sierra** running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my **10.11 El Capitan setup recipe** (https://gist.github.com/kevinelliott/e12aa642a8388baf2499) and [10.10 Yosemite setup recipe](https://gist.github.com/kevinelliott/0726211d17020a6abc1f). I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros. -
kevinelliott created this gist
Sep 20, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,365 @@ # macOS 10.12 Sierra Setup Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe (https://gist.github.com/kevinelliott/e12aa642a8388baf2499) and 10.10 Yosemite setup recipe (https://gist.github.com/kevinelliott/0726211d17020a6abc1f). I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros. This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this. You are encouraged to fork this and modify it to your heart's content to match your own needs. ## Install Software The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis. ### Install from App Store * [Airmail](https://itunes.apple.com/us/app/airmail/id573171375?mt=12&uo=4) * [Degrees](https://itunes.apple.com/us/app/degrees/id430173763?mt=12&uo=4) * [Pages](https://itunes.apple.com/us/app/pages/id409201541?mt=12&uo=4) * [Twitter](https://itunes.apple.com/us/app/twitter/id409789998?mt=12&uo=4) * [WiFi Explorer](https://itunes.apple.com/us/app/wifi-explorer/id494803304?mt=12&uo=4) * [WiFi Signal](https://itunes.apple.com/us/app/wifi-signal/id525912054?mt=12&uo=4) * [Todoist](https://itunes.apple.com/us/app/todoist-to-do-list-task-list/id585829637?mt=12&uo=4) * [Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12&uo=4) ### Install from Third-Party Websites * Browsers * Chrome (installed via Cask) * Firefox (installed via Cask) * Opera (installed via Cask) * [Webkit](http://webkit.org) * Development * [Dropbox](https://www.dropbox.com/install2) * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions) * [Sublime Text 3](http://www.sublimetext.com/3) * Utilities * [HyperDock](https://bahoom.com/hyperdock/) * [Little Snitch](http://www.obdev.at/products/littlesnitch/download.html) * Virtualization * Parallels Desktop (installed via Cask) * Docker (installed via brew) * Vagrant (installed via Cask) Fonts ----- [Mensch coding font](http://robey.lag.net/2010/06/21/mensch-font.html) #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 ```bash ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew doctor ``` At the time of this writing, `brew doctor` says that `Xcode 6.1` is required, which means downloading it from the Apple Developer Center until it is released in the Mac App Store. ## Install Homebrew extension Cask ```bash brew install caskroom/cask/brew-cask ``` ## Install common applications via Homebrew *Databases are installed later.* ```bash brew install ack autojump automake colordiff curl git git-flow \ hub icoutils imagemagick libmemcached memcached openssl ossp-uuid qt \ readline redis tmux wget libxml2 ``` ## Install applications via Homebrew Cask ```bash brew cask install anvil brew cask install atom brew cask install authy-bluetooth brew cask install awareness brew cask install bartender brew cask install battery-guardian brew cask install firefox brew cask install github-desktop brew cask install google-chrome brew cask install grandperspective brew cask install hipchat brew cask install joinme brew cask install iterm2 brew cask install livereload brew cask install ngrok brew cask install parallels-desktop brew cask install quicksilver brew cask install rescuetime brew cask install satellite-eyes brew cask install sidestep brew cask install skitch brew cask install skype brew cask install sonos brew cask install spotify brew cask install steam brew cask install transmit brew cask install vagrant brew cask install vagrant-manager ``` ## Install Parallels plugin for Vagrant ``` vagrant plugin install vagrant-parallels ``` See http://parallels.github.io/vagrant-parallels/ for more details. #Shell Install custom .dotfiles ```bash git clone [email protected]:kevinelliott/.dotfiles.git ~/.dotfiles ~/.dotfiles/install.sh ``` Update .bash_profile ```bash echo 'source ~/.dotfiles/base.sh' >> ~/.bash_profile ``` # OS X Preferences ```bash #Set a blazingly fast keyboard repeat rate defaults write NSGlobalDomain KeyRepeat -int 0.02 #Set a shorter Delay until key repeat defaults write NSGlobalDomain InitialKeyRepeat -int 12 #Add a context menu item for showing the Web Inspector in web views defaults write NSGlobalDomain WebKitDeveloperExtras -bool true #Show the ~/Library folder chflags nohidden ~/Library #Store screenshots in subfolder on desktop mkdir ~/Desktop/Screenshots defaults write com.apple.screencapture location ~/Desktop/Screenshots ``` Set hostname ------------ `sudo scutil --set HostName SpaceX-Falcon-9` #Git Setup Github ------------ ```bash ssh-keygen -t rsa -C "[email protected]" # Copy ssh key to github.com subl ~/.ssh/id_rsa.pub # Test connection ssh -T [email protected] # Set git config values git config --global user.name "Kevin Elliott" git config --global user.email "[email protected]" git config --global github.user kevinelliott git config --global github.token your_token_here git config --global core.editor "subl -w" git config --global color.ui true ``` # Sublime Text Add Sublime Text CLI -------------------- ```bash mkdir -p ~/bin && ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl ``` Install Package Control ----------------------- Run `Sublime Text 3` and access the console via the `CTRL + ``` shortcut or the `View > Show Console` menu. ``` import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) ``` See https://sublime.wbond.net/installation for more information. Their site has a note that this install code will change for each new release, so it would be good to check once in a while. Install Packages ---------------- [BracketHighlighter](https://github.com/facelessuser/BracketHighlighter) [CoffeeScriptHaml](https://github.com/jisaacks/CoffeeScriptHaml) Install Soda Theme ---------------------- ```bash git clone git://github.com/buymeasoda/soda-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Theme\ -\ Soda ``` Install Tomorrow Theme ---------------------- ```bash git clone git://github.com/chriskempson/textmate-tomorrow-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow ``` Settings -------- **Sublime Text > Preferences > Settings - User** ```json { "bold_folder_labels": true, "close_windows_when_empty": true, "color_scheme": "Packages/User/SublimeLinter/Monokai-Cobalt (SL).tmTheme", "draw_indent_guides": false, "fade_fold_buttons": false, "font_face": "Source Code Pro", "font_size": 16, "highlight_line": true, "highlight_modified_tabs": true, "ignored_packages": [ "Vintage" ], "show_tab_close_buttons": false, "spell_check": false, "tab_size": 2, "translate_tabs_to_spaces": true, "theme": "Soda Light.sublime-theme", "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?", "word_wrap": true } ``` Key Bindings ------------ ```json [ { "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 -------- ```bash git clone [email protected]:bytestudios/sublime-snippets.git "/Users/Joel/Library/Application Support/Sublime Text 2/Packages/Byte" ``` ## Server ### Docker ```bash brew install docker boot2docker boot2docker init boot2docker up ``` ### MySQL ```bash brew install mysql brew pin mysql ``` ### MySQL Settings ```bash # Copy launch agent into place mkdir -p ~/Library/LaunchAgents && cp /usr/local/Cellar/mysql/VERSION/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/ # Edit launch agent and set both keepalive and launch at startup to false vi ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist # Inject launch agent 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 start mysql # Secure mysql /usr/local/Cellar/mysql/VERSION/bin/mysql_secure_installation ``` ### PostgreSQL ```bash brew install postgres --no-ossp-uuid brew pin postgres ``` ### PostgreSQL Settings ```bash # Initialize db if none exists already initdb /usr/local/var/postgres # Create launchctl script mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/postgresql/VERSION/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ # Edit launchctl script (set to not start automatically and keepalive false) subl ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist # Inject launchctl script launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist # Start PostgreSQL start pg ``` ### Ruby Gems #### libv8 / therubyracer ```bash brew uninstall v8 gem uninstall libv8 brew install v8 gem install therubyracer gem install libv8 -v 3.16.14.3 -- --with-system-v8 ``` #### nokogiri ```bash brew tap homebrew/dupes brew install libxml2 libxslt libiconv gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/VERSION/ ``` #### capybara-webkit ```bash brew install -v https://raw.github.com/cliffrowley/homebrew/patched_qt/Library/Formula/qt.rb --HEAD --without-ssse3 gem install capybara-webkit -v '0.9.0' ``` 