Skip to content

Instantly share code, notes, and snippets.

@j100002ben
Forked from wanewang/install.md
Created May 10, 2016 21:52
Show Gist options
  • Save j100002ben/fdc7814c348dce9dfee45585670c812e to your computer and use it in GitHub Desktop.
Save j100002ben/fdc7814c348dce9dfee45585670c812e to your computer and use it in GitHub Desktop.

Revisions

  1. @wanewang wanewang revised this gist Apr 4, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -231,6 +231,6 @@ mackup restore

    ### Install xcode color plugin

    https://github.com/ViccAlexander/Chameleon#storyboard-add-on
    https://bjango.com/mac/skalacolor/
    1. https://github.com/ViccAlexander/Chameleon#storyboard-add-on
    2. https://bjango.com/mac/skalacolor/

  2. @wanewang wanewang revised this gist Apr 4, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install.md
    Original file line number Diff line number Diff line change
    @@ -229,7 +229,8 @@ git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --
    mackup restore
    ```

    Install xcode color plugin
    ### Install xcode color plugin

    https://github.com/ViccAlexander/Chameleon#storyboard-add-on
    https://bjango.com/mac/skalacolor/

  3. @wanewang wanewang revised this gist Apr 4, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -229,7 +229,7 @@ git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --
    mackup restore
    ```

    ```xcode color plugin
    Install xcode color plugin
    https://github.com/ViccAlexander/Chameleon#storyboard-add-on
    https://bjango.com/mac/skalacolor/
    ```

  4. @wanewang wanewang revised this gist Apr 4, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -228,3 +228,8 @@ git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --
    ```bash
    mackup restore
    ```

    ```xcode color plugin
    https://github.com/ViccAlexander/Chameleon#storyboard-add-on
    https://bjango.com/mac/skalacolor/
    ```
  5. @wanewang wanewang revised this gist Apr 4, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion install.md
    Original file line number Diff line number Diff line change
    @@ -112,7 +112,8 @@ rbenv \
    node \
    tig \
    ruby-build \
    mackup
    mackup \
    carthage
    ```

    ### oh-my-zsh
  6. @wanewang wanewang revised this gist Apr 1, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -57,6 +57,9 @@ chflags nohidden ~/Library
    # Show absolute path in finder's title bar.
    defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

    # Show build duration for Xcode
    defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES

    ```

    ## Shell
  7. @wanewang wanewang revised this gist Mar 3, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion install.md
    Original file line number Diff line number Diff line change
    @@ -108,7 +108,8 @@ caskroom/cask/brew-cask \
    rbenv \
    node \
    tig \
    ruby-build
    ruby-build \
    mackup
    ```

    ### oh-my-zsh
    @@ -219,3 +220,7 @@ git config --global alias.br branch && \
    git config --global alias.ll "log --stat" && \
    git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --graph"
    ```

    ```bash
    mackup restore
    ```
  8. @wanewang wanewang revised this gist Feb 5, 2016. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -130,7 +130,8 @@ eval "$(rbenv init -)"
    brew install \
    swiftgen \
    swiftlint \
    xctool
    xctool \
    tailor

    # build tool
    gem install cocoapods fastlane
    @@ -183,7 +184,8 @@ iterm2-beta \
    atom \
    imageoptim \
    handbrake \
    dockertoolbox
    dockertoolbox \
    squirrel
    ```

    ### Set hostname
  9. @wanewang wanewang revised this gist Jan 10, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -132,7 +132,11 @@ swiftgen \
    swiftlint \
    xctool

    # build tool
    gem install cocoapods fastlane

    # plugin
    curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/deploy/Scripts/install.sh | sh
    ```

    ### Vim
  10. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install.md
    Original file line number Diff line number Diff line change
    @@ -173,8 +173,8 @@ jitouch \
    istat-menus \
    dropbox \
    box-sync \
    google-chrome-canary \
    mplayerx \
    xtrafinder \
    iterm2-beta \
    atom \
    imageoptim \
  11. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -170,6 +170,7 @@ discord \
    macid \
    virtualbox \
    jitouch \
    istat-menus \
    dropbox \
    box-sync \
    google-chrome-canary \
  12. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -157,6 +157,7 @@ brew tap caskroom/versions
    # Install mac apps & fonts
    brew cask install \
    alfred \
    nylas-n1 \
    font-source-code-pro \
    font-source-han-sans \
    font-inconsolata-dz-for-powerline \
  13. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 28 additions and 12 deletions.
    40 changes: 28 additions & 12 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -67,9 +67,32 @@ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    ```


    ### iTerm2

    Install https://github.com/powerline/fonts

    ```bash
    # Install Tomorrow Night Eighties theme for iTerm2
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night.itermcolors \
    -O ~/Downloads/Tomorrow\ Night.itermcolors
    ```

    ### zsh config

    ```bash
    ln -s Dropbox/data/setting/bira.zsh-theme ~/.oh-my-zsh/themes/bira_me.zsh-theme
    ln -s Dropbox/data/setting/zshrc ~/.zshrc
    ln -s Dropbox/data/setting/git-completeee ~/.oh-my-zsh/plugins/.
    ```


    ```bash
    # Install homebrew packages
    brew install \
    wget \
    zsh \
    git \
    git-flow-avh \
    @@ -84,6 +107,7 @@ ack \
    caskroom/cask/brew-cask \
    rbenv \
    node \
    tig \
    ruby-build
    ```

    @@ -105,8 +129,10 @@ eval "$(rbenv init -)"
    ```bash
    brew install \
    swiftgen \
    swfitlint \
    swiftlint \
    xctool

    gem install cocoapods fastlane
    ```

    ### Vim
    @@ -164,7 +190,7 @@ sudo scutil --set HostName Wanedd

    ```bash
    # Creates a new ssh key
    # ssh-keygen -t rsa -b 4096 -C "hlbyichi@gmail.com"
    # ssh-keygen -t rsa -b 4096 -C "jhihguan@gmail.com"

    # Copy ssh key to clipboard for adding to github.com
    pbcopy < ~/.ssh/id_rsa.pub
    @@ -185,13 +211,3 @@ git config --global alias.br branch && \
    git config --global alias.ll "log --stat" && \
    git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --graph"
    ```

    ### iTerm2

    Install https://github.com/powerline/fonts

    ```bash
    # Install Tomorrow Night Eighties theme for iTerm2
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors
    ```
  14. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -82,14 +82,15 @@ imagemagick \
    graphicsmagick \
    ack \
    caskroom/cask/brew-cask \
    dockertoolbox \
    rbenv \
    node \
    ruby-build
    ```

    ### oh-my-zsh
    Install https://github.com/robbyrussell/oh-my-zsh
    ```bash
    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    ```

    ### Ruby
    ```bash
    @@ -129,6 +130,7 @@ brew tap caskroom/versions

    # Install mac apps & fonts
    brew cask install \
    alfred \
    font-source-code-pro \
    font-source-han-sans \
    font-inconsolata-dz-for-powerline \
  15. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 30 additions and 51 deletions.
    81 changes: 30 additions & 51 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -67,44 +67,36 @@ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    ```

    ```
    ```bash
    # Install homebrew packages
    brew install \
    zsh \
    git \
    git-flow-avh \
    tree \
    ssh-copy-id \
    wget \
    jpegoptim \
    pngcrush \
    colordiff \
    imagemagick \
    graphicsmagick \
    ack \
    caskroom/cask/brew-cask
    caskroom/cask/brew-cask \
    dockertoolbox \
    rbenv \
    node \
    ruby-build
    ```

    #### Switch to z-shell

    ### oh-my-zsh
    Install https://github.com/robbyrussell/oh-my-zsh

    #### Homebrew

    Install http://brew.sh

    ### Ruby
    ```bash
    # Install homebrew packages
    brew install \
    git \
    git-flow-avh \
    tree \
    ssh-copy-id \
    jpegoptim \
    pngcrush \
    colordiff \
    imagemagick \
    graphicsmagick \
    ack \
    caskroom/cask/brew-cask
    rbenv install 2.3.0
    rbenv global 2.3.0
    # add to .zshrc
    eval "$(rbenv init -)"
    ```

    ### iOS
    @@ -139,7 +131,18 @@ brew tap caskroom/versions
    brew cask install \
    font-source-code-pro \
    font-source-han-sans \
    font-inconsolata-dz-for-powerline \
    bartender \
    macdown \
    github-desktop \
    sourcetree \
    fabric \
    discord \
    macid \
    virtualbox \
    jitouch \
    dropbox \
    box-sync \
    google-chrome-canary \
    mplayerx \
    iterm2-beta \
    @@ -152,14 +155,14 @@ dockertoolbox
    ### Set hostname

    ```bash
    sudo scutil --set HostName kelon
    sudo scutil --set HostName Wanedd
    ```

    ### Git

    ```bash
    # Creates a new ssh key
    ssh-keygen -t rsa -b 4096 -C "[email protected]"
    # ssh-keygen -t rsa -b 4096 -C "[email protected]"

    # Copy ssh key to clipboard for adding to github.com
    pbcopy < ~/.ssh/id_rsa.pub
    @@ -168,9 +171,9 @@ pbcopy < ~/.ssh/id_rsa.pub
    ssh -T [email protected]

    # Set git config values
    git config --global user.name "hlb" && \
    git config --global user.email "hlbyichi@gmail.com" && \
    git config --global github.user hlb && \
    git config --global user.name "Wane Wang" && \
    git config --global user.email "jhihguan@gmail.com" && \
    git config --global github.user jhihguan && \
    git config --global color.ui true && \
    git config --global push.default simple && \
    git config --global alias.co checkout && \
    @@ -190,27 +193,3 @@ Install https://github.com/powerline/fonts
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors
    ```

    ## Node

    ```bash
    # Install node
    brew install node

    # Install nvm
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash

    # Install the latest version of Node.js and sets up terminal
    nvm install node && nvm alias default node

    # Node 5 + npm 3 is slow. use npm@2 now
    npm install -g npm@2.

    # tools
    brew install \
    watchman \
    flow

    # React Native
    npm install -g react-native-cli
    ```
  16. @wanewang wanewang revised this gist Jan 8, 2016. 1 changed file with 36 additions and 4 deletions.
    40 changes: 36 additions & 4 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -61,6 +61,28 @@ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

    ## Shell

    #### Homebrew

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

    ```
    brew install \
    zsh \
    git \
    tree \
    ssh-copy-id \
    wget \
    jpegoptim \
    pngcrush \
    colordiff \
    imagemagick \
    graphicsmagick \
    ack \
    caskroom/cask/brew-cask
    ```

    #### Switch to z-shell

    Install https://github.com/robbyrussell/oh-my-zsh
    @@ -73,9 +95,9 @@ Install http://brew.sh
    # Install homebrew packages
    brew install \
    git \
    git-flow-avh \
    tree \
    ssh-copy-id \
    wget \
    jpegoptim \
    pngcrush \
    colordiff \
    @@ -85,6 +107,15 @@ ack \
    caskroom/cask/brew-cask
    ```

    ### iOS

    ```bash
    brew install \
    swiftgen \
    swfitlint \
    xctool
    ```

    ### Vim

    ```bash
    @@ -107,9 +138,10 @@ brew tap caskroom/versions
    # Install mac apps & fonts
    brew cask install \
    font-source-code-pro \
    virtualbox \
    google-chrome \
    firefox \
    font-source-han-sans \
    bartender \
    google-chrome-canary \
    mplayerx \
    iterm2-beta \
    atom \
    imageoptim \
  17. Liang-Bin Hsueh revised this gist Dec 9, 2015. 1 changed file with 24 additions and 1 deletion.
    25 changes: 24 additions & 1 deletion install.md
    Original file line number Diff line number Diff line change
    @@ -74,7 +74,6 @@ Install http://brew.sh
    brew install \
    git \
    tree \
    node \
    ssh-copy-id \
    wget \
    jpegoptim \
    @@ -158,4 +157,28 @@ Install https://github.com/powerline/fonts
    # Install Tomorrow Night Eighties theme for iTerm2
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors
    ```

    ## Node

    ```bash
    # Install node
    brew install node

    # Install nvm
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash

    # Install the latest version of Node.js and sets up terminal
    nvm install node && nvm alias default node

    # Node 5 + npm 3 is slow. use npm@2 now
    npm install -g npm@2.

    # tools
    brew install \
    watchman \
    flow

    # React Native
    npm install -g react-native-cli
    ```
  18. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -112,6 +112,7 @@ virtualbox \
    google-chrome \
    firefox \
    iterm2-beta \
    atom \
    imageoptim \
    handbrake \
    dockertoolbox
  19. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -114,6 +114,7 @@ firefox \
    iterm2-beta \
    imageoptim \
    handbrake \
    dockertoolbox
    ```

    ### Set hostname
  20. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -63,11 +63,11 @@ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

    #### Switch to z-shell

    https://github.com/robbyrussell/oh-my-zsh
    Install https://github.com/robbyrussell/oh-my-zsh

    #### Homebrew

    http://brew.sh
    Install http://brew.sh

    ```bash
    # Install homebrew packages
    @@ -86,12 +86,16 @@ ack \
    caskroom/cask/brew-cask
    ```

    ### Vim

    ```bash
    # Install homebrew packages
    # Install MacVim
    brew install macvim --with-lua --with-override-system-vim
    brew linkapps macvim
    ```

    Install http://vim.spf13.com

    #### Homebrew Cask Apps & Fonts

    ```bash
    @@ -146,7 +150,7 @@ git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --

    ### iTerm2

    install https://github.com/powerline/fonts
    Install https://github.com/powerline/fonts

    ```bash
    # Install Tomorrow Night Eighties theme for iTerm2
  21. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 13 additions and 14 deletions.
    27 changes: 13 additions & 14 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -70,7 +70,7 @@ https://github.com/robbyrussell/oh-my-zsh
    http://brew.sh

    ```bash
    # install homebrew packages
    # Install homebrew packages
    brew install \
    git \
    tree \
    @@ -87,21 +87,21 @@ caskroom/cask/brew-cask
    ```

    ```bash
    # install homebrew packages
    # Install homebrew packages
    brew install macvim --with-lua --with-override-system-vim
    brew linkapps macvim
    ```

    #### Homebrew Cask Apps & Fonts

    ```bash
    # add support for fonts
    # Add support for fonts
    brew tap caskroom/fonts

    #add dev/beta versions
    # Add dev/beta versions
    brew tap caskroom/versions

    #install mac apps & fonts
    # Install mac apps & fonts
    brew cask install \
    font-source-code-pro \
    virtualbox \
    @@ -120,18 +120,17 @@ sudo scutil --set HostName kelon

    ### Git

    #### Setup Git & Github

    ```bash
    ssh-keygen -t rsa -C "[email protected]"
    # Creates a new ssh key
    ssh-keygen -t rsa -b 4096 -C "[email protected]"

    #copy ssh key to clipboard for adding to github.com
    # Copy ssh key to clipboard for adding to github.com
    pbcopy < ~/.ssh/id_rsa.pub

    #test connection
    # Test connection
    ssh -T [email protected]

    #set git config values
    # Set git config values
    git config --global user.name "hlb" && \
    git config --global user.email "[email protected]" && \
    git config --global github.user hlb && \
    @@ -145,12 +144,12 @@ git config --global alias.ll "log --stat" && \
    git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --graph"
    ```

    ### Terminal & iTerm2
    ### iTerm2

    install https://github.com/powerline/fonts

    ```bash
    #iTerm2
    # Install Tomorrow Night Eighties theme for iTerm2
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors

    ```
  22. Liang-Bin Hsueh revised this gist Dec 8, 2015. No changes.
  23. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 10 additions and 12 deletions.
    22 changes: 10 additions & 12 deletions install.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@
    ### OS X Preferences
    ---
    ## System Preferences

    ```bash
    # Enable character repeat on keydown
    @@ -60,9 +59,7 @@ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

    ```

    ### Shell

    ---
    ## Shell

    #### Switch to z-shell

    @@ -115,17 +112,15 @@ imageoptim \
    handbrake \
    ```

    ####Set hostname
    ### Set hostname

    ```bash
    sudo scutil --set HostName kelon
    ```

    ###Git

    ---
    ### Git

    ####Setup Github
    #### Setup Git & Github

    ```bash
    ssh-keygen -t rsa -C "[email protected]"
    @@ -150,9 +145,12 @@ git config --global alias.ll "log --stat" && \
    git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --graph"
    ```

    ### Install Tomorrow Night Eighties Themes
    ### Terminal & iTerm2

    install https://github.com/powerline/fonts

    ```bash
    #iTerm2
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors

  24. Liang-Bin Hsueh renamed this gist Dec 8, 2015. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions gistfile1.md → install.md
    Original file line number Diff line number Diff line change
    @@ -141,8 +141,13 @@ git config --global user.name "hlb" && \
    git config --global user.email "[email protected]" && \
    git config --global github.user hlb && \
    git config --global color.ui true && \
    git config --global push.default simple

    git config --global push.default simple && \
    git config --global alias.co checkout && \
    git config --global alias.ci commit -v&& \
    git config --global alias.st status && \
    git config --global alias.br branch && \
    git config --global alias.ll "log --stat" && \
    git config --global alias.lp "log --pretty=oneline --abbrev-commit --decorate --graph"
    ```

    ### Install Tomorrow Night Eighties Themes
  25. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 6 additions and 223 deletions.
    229 changes: 6 additions & 223 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    ### OS X Preferences
    ---

    most of these require logout/restart to take effect

    ```bash
    # Enable character repeat on keydown
    defaults write -g ApplePressAndHoldEnabled -bool false
    @@ -130,7 +128,7 @@ sudo scutil --set HostName kelon
    ####Setup Github

    ```bash
    ssh-keygen -t rsa -C "saetia@gmail.com"
    ssh-keygen -t rsa -C "hlbyichi@gmail.com"

    #copy ssh key to clipboard for adding to github.com
    pbcopy < ~/.ssh/id_rsa.pub
    @@ -139,232 +137,17 @@ pbcopy < ~/.ssh/id_rsa.pub
    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 user.name "hlb" && \
    git config --global user.email "[email protected]" && \
    git config --global github.user hlb && \
    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
    ### Install Tomorrow Night Eighties Themes

    ```bash
    git clone https://github.com/bobthecow/Markdown.mode.git \
    ~/Library/Application\ Support/Coda\ 2/modes/Markdown.mode
    ```

    ###Sublime Text

    ---

    ####Install Soda Theme

    ```bash
    git clone git://github.com/buymeasoda/soda-theme.git \
    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Theme\ -\ Soda
    ```

    ####Install Tomorrow Night Eighties Themes

    ```bash
    #Sublime Text
    git clone git://github.com/chriskempson/textmate-tomorrow-theme.git \
    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Color\ Scheme\ -\ Tomorrow

    #iTerm2
    wget https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Tomorrow%20Night%20Eighties.itermcolors \
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors

    #Xcode
    mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes && \
    wget https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/Xcode%204/Tomorrow%20Night%20Eighties.dvtcolortheme -O \
    ~/Library/Developer/Xcode/UserData/FontAndColorThemes/Tomorrow\ Night\ Eighties.dvtcolortheme
    ```

    ####Settings

    ```json
    {
    "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


    ```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]:co-b/sublime-snippets.git \
    ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/CoB
    ```

    ### iOS
    ---

    ```bash
    sudo gem install cocoapods
    pod setup
    ```

    ### Ruby
    ---

    #### Ruby version manager

    ```bash
    curl -L https://get.rvm.io | bash -s stable --rails
    ```

    #### Gems
    ```bash
    gem install pygmentize growl guard guard-phpunit bropages
    ```



    ### Node
    ---

    #### Packages

    ```bash
    npm install -g coffee-script bower
    ```




    ### Vagrant
    ---

    ```bash
    vagrant plugin install vagrant-hostsupdater
    ```


    ### PHP
    ---

    ```bash
    #switch from SecureTransport
    brew reinstall --with-openssl curl

    #install php-fpm
    brew tap homebrew/dupes && \
    brew tap homebrew/versions && \
    brew tap homebrew/dupes && \
    brew install php70 \
    --with-fpm \
    --without-apache \
    --with-mysql \
    --with-homebrew-curl \
    --with-homebrew-openssl \
    --without-snmp

    #setup daemon
    ln -sfv /usr/local/opt/php70/*.plist ~/Library/LaunchAgents && \
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
    ```

    ####PHP-Redis
    ```bash
    #brew install php70-redis
    brew install --HEAD homebrew/php/php70-redis
    ```

    ####MariaDB

    ```bash

    #setup daemon
    ln -sfv /usr/local/opt/mariadb/*.plist ~/Library/LaunchAgents && \
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist

    #initial setup
    mysql_install_db

    #secure mariadb
    mysql_secure_installation
    ```

    ####NGINX

    ```bash
    sudo cp -v /usr/local/opt/nginx/*.plist /Library/LaunchDaemons/ &&
    sudo chown root:wheel /Library/LaunchDaemons/homebrew.mxcl.nginx.plist &&
    sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
    ```

    ### Local Web Server
    ---

    #### Add DNS Domains, Enable dnsmasq daemon

    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

    ```bash
    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
    sudo discoveryutil mdnsflushcache && scutil --dns
    ```

    ####Enable virtual hosts

    This will allow you to serve folders under ~/Sites/ as websites.

    * ~/Sites
    * example.com
    * htdocs
    * index.html

    to access this site, visit http://example.com.build


    ####Match production server paths
    ```bash
    sudo mkdir -p /var/ && sudo ln -s ~/Sites /var/www
    ```



    ![aww yeah](http://i.imgur.com/AmFax.gif)
    -O ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors && open ~/Downloads/Tomorrow\ Night\ Eighties.itermcolors
  26. Liang-Bin Hsueh revised this gist Dec 8, 2015. 1 changed file with 12 additions and 85 deletions.
    97 changes: 12 additions & 85 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -16,26 +16,16 @@ defaults write NSGlobalDomain KeyRepeat -int 0
    # Disable window animations ("new window" scale effect)
    defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

    # Turn on dashboard-as-space
    defaults write com.apple.dashboard enabled-state 2

    # Use plain text mode for new TextEdit documents
    defaults write com.apple.TextEdit RichText -int 0

    # Make top-right hotspot start screensaver
    defaults write com.apple.dock wvous-tr-corner -int 5 && \
    defaults write com.apple.dock wvous-tr-modifier -int 0

    # Set default Finder location to home folder (~/)
    defaults write com.apple.finder NewWindowTarget -string "PfLo" && \
    defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}"

    # 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

    @@ -57,17 +47,6 @@ defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
    # Avoid creating .DS_Store files on network volumes
    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true

    # 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

    # Trackpad: map bottom right corner to right-click
    defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2 && \
    defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightClick -bool true && \
    defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1 && \
    defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true

    # Enable the Develop menu and the Web Inspector in Safari
    defaults write com.apple.Safari IncludeInternalDebugMenu -bool true && \
    defaults write com.apple.Safari IncludeDevelopMenu -bool true && \
    @@ -81,38 +60,24 @@ chflags nohidden ~/Library
    # Show absolute path in finder's title bar.
    defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

    # Auto-play videos when opened with QuickTime Player
    defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1

    # Enable AirDrop over Ethernet and on unsupported Macs
    defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

    # Disable WebkitNightly.app's homepage
    defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true

    ```



    ###Shell
    ### Shell

    ---

    ####Switch to z-shell
    #### Switch to z-shell

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

    #### Homebrew

    ####Homebrew
    http://brew.sh

    ```bash
    # install package manager
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

    # install homebrew packages
    brew install \
    git \
    tree \
    node \
    ssh-copy-id \
    @@ -125,18 +90,14 @@ graphicsmagick \
    ack \
    caskroom/cask/brew-cask
    ```
    ####Homebrew Web Server Packages

    ```bash
    brew install \
    dnsmasq \
    nginx \
    mariadb \
    redis \
    memcached \
    libmemcached \
    # install homebrew packages
    brew install macvim --with-lua --with-override-system-vim
    brew linkapps macvim
    ```

    ####Homebrew Cask Apps & Fonts
    #### Homebrew Cask Apps & Fonts

    ```bash
    # add support for fonts
    @@ -148,52 +109,18 @@ brew tap caskroom/versions
    #install mac apps & fonts
    brew cask install \
    font-source-code-pro \
    adobe-creative-cloud \
    blueharvest \
    cleanmymac \
    cocktail \
    ghostlab \
    coda \
    sublime-text-dev \
    virtualbox \
    coderunner \
    google-chrome \
    firefox \
    codekit \
    iterm2-beta \
    sequel-pro \
    querious \
    imageoptim \
    imagealpha \
    xquartz \
    simpholders-2-alpha \
    handbrake \
    vagrant \
    ksdiff \
    spotify
    ```


    ####Update .zshrc

    ```bash
    wget https://gist.github.com/saetia/2764210/raw/ab099b587689640eb32cbc1afdb6a19b62be7fb0/.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

    ```bash
    sudo scutil --set HostName Work
    ```

    ###Agree To Xcode
    ```bash
    sudo xcrun cc
    sudo scutil --set HostName kelon
    ```

    ###Git
  27. @saetia saetia revised this gist Oct 20, 2015. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -81,9 +81,6 @@ chflags nohidden ~/Library
    # Show absolute path in finder's title bar.
    defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

    # Enable text copying from Quick Look
    defaults write com.apple.finder QLEnableTextSelection -bool YES

    # Auto-play videos when opened with QuickTime Player
    defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1

  28. @saetia saetia revised this gist Oct 20, 2015. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -356,14 +356,20 @@ vagrant plugin install vagrant-hostsupdater
    ---

    ```bash
    #switch from SecureTransport
    brew reinstall --with-openssl curl

    #install php-fpm
    brew tap homebrew/dupes && \
    brew tap homebrew/versions && \
    brew tap homebrew/dupes && \
    brew install php70 \
    --with-fpm \
    --without-apache \
    --with-mysql
    --with-mysql \
    --with-homebrew-curl \
    --with-homebrew-openssl \
    --without-snmp

    #setup daemon
    ln -sfv /usr/local/opt/php70/*.plist ~/Library/LaunchAgents && \
  29. @saetia saetia revised this gist Oct 2, 2015. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -360,16 +360,21 @@ vagrant plugin install vagrant-hostsupdater
    brew tap homebrew/dupes && \
    brew tap homebrew/versions && \
    brew tap homebrew/dupes && \
    brew install php56 \
    brew install php70 \
    --with-fpm \
    --without-apache \
    --with-mysql

    #setup daemon
    ln -sfv /usr/local/opt/php56/*.plist ~/Library/LaunchAgents && \
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
    ln -sfv /usr/local/opt/php70/*.plist ~/Library/LaunchAgents && \
    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
    ```

    ####PHP-Redis
    ```bash
    #brew install php70-redis
    brew install --HEAD homebrew/php/php70-redis
    ```

    ####MariaDB

  30. @saetia saetia revised this gist Jul 30, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -84,6 +84,9 @@ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
    # Enable text copying from Quick Look
    defaults write com.apple.finder QLEnableTextSelection -bool YES

    # Auto-play videos when opened with QuickTime Player
    defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1

    # Enable AirDrop over Ethernet and on unsupported Macs
    defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true