Skip to content

Instantly share code, notes, and snippets.

@fengluo
Forked from saetia/gist:1623487
Created August 9, 2012 16:50
Show Gist options
  • Save fengluo/3305826 to your computer and use it in GitHub Desktop.
Save fengluo/3305826 to your computer and use it in GitHub Desktop.

Revisions

  1. @saetia saetia revised this gist Jun 12, 2012. No changes.
  2. @saetia saetia revised this gist May 29, 2012. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -146,6 +146,13 @@ git config --global color.ui true



    #Coda

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


    #Sublime Text
  3. @saetia saetia revised this gist May 24, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -114,7 +114,7 @@ Set hostname
    ```

    ```bash
    brew install git ack wget curl redis memcached libmemcached colordiff imagemagick
    brew install git ack wget curl redis memcached libmemcached colordiff imagemagick icoutils
    ```


  4. @saetia saetia revised this gist May 21, 2012. 1 changed file with 1 addition and 27 deletions.
    28 changes: 1 addition & 27 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -34,33 +34,7 @@ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh |
    Update .zshrc
    -------------
    ```bash
    subl ~/.zshrc
    ```


    ```bash
    ZSH=$HOME/.oh-my-zsh

    export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
    export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
    export LESS_TERMCAP_me=$'\E[0m' # end mode
    export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
    export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
    export LESS_TERMCAP_ue=$'\E[0m' # end underline
    export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline

    ZSH_THEME="kphoen"

    alias zshconfig="subl ~/.zshrc"
    alias ohmyzsh="subl ~/.oh-my-zsh"

    COMPLETION_WAITING_DOTS="true"

    plugins=(git osx rails ruby github node rbenv npm brew byte)

    source $ZSH/oh-my-zsh.sh

    export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11/bin
    wget https://raw.github.com/gist/2764210/94ad3b85c8f9d61ed08d6e7f7b65e98277a07c1a/.zshrc -O ~/.zshrc
    ```


  5. @saetia saetia revised this gist May 21, 2012. No changes.
  6. @saetia saetia revised this gist May 21, 2012. 1 changed file with 3 additions and 29 deletions.
    32 changes: 3 additions & 29 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -39,11 +39,8 @@ subl ~/.zshrc


    ```bash
    # Path to your oh-my-zsh configuration.
    ZSH=$HOME/.oh-my-zsh


    # Less Colors for Man Pages
    export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
    export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
    export LESS_TERMCAP_me=$'\E[0m' # end mode
    @@ -52,40 +49,17 @@ export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
    export LESS_TERMCAP_ue=$'\E[0m' # end underline
    export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline


    # Set name of the theme to load.
    # Look in ~/.oh-my-zsh/themes/
    # Optionally, if you set this to "random", it'll load a random theme each
    # time that oh-my-zsh is loaded.
    ZSH_THEME="kphoen"

    # Example aliases
    # alias zshconfig="mate ~/.zshrc"
    # alias ohmyzsh="mate ~/.oh-my-zsh"

    # Set to this to use case-sensitive completion
    # CASE_SENSITIVE="true"

    # Comment this out to disable weekly auto-update checks
    # DISABLE_AUTO_UPDATE="true"

    # Uncomment following line if you want to disable colors in ls
    # DISABLE_LS_COLORS="true"

    # Uncomment following line if you want to disable autosetting terminal title.
    # DISABLE_AUTO_TITLE="true"
    alias zshconfig="subl ~/.zshrc"
    alias ohmyzsh="subl ~/.oh-my-zsh"

    # Uncomment following line if you want red dots to be displayed while waiting for completion
    # COMPLETION_WAITING_DOTS="true"
    COMPLETION_WAITING_DOTS="true"

    # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate rbenv ruby lighthouse)
    plugins=(git osx rails ruby github node rbenv npm brew byte)

    source $ZSH/oh-my-zsh.sh

    # Customize to your needs...
    export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11/bin
    ```

  7. @saetia saetia revised this gist May 21, 2012. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,16 +4,16 @@

    Apps
    ----
    `[Webkit](http://webkit.org)`
    [Chrome](http://google.com/chrome)
    [Firefox](http://firefox.com)
    [iTerm](http://iterm2.com)
    [Transmit](http://panic.com/transmit)
    [Coda](http://panic.com/coda)
    [Sublime Text](http://www.sublimetext.com/dev)
    [Sequel Pro](http://nightly.sequelpro.com)
    [1Password](https://agilebits.com/onepassword/mac)
    [LiveReload](http://livereload.com)
    [Webkit](http://webkit.org),
    [Chrome](http://google.com/chrome),
    [Firefox](http://firefox.com),
    [iTerm](http://iterm2.com),
    [Transmit](http://panic.com/transmit),
    [Coda](http://panic.com/coda),
    [Sublime Text](http://www.sublimetext.com/dev),
    [Sequel Pro](http://nightly.sequelpro.com),
    [1Password](https://agilebits.com/onepassword/mac),
    [LiveReload](http://livereload.com),
    [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions)


  8. @saetia saetia revised this gist May 21, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    Apps
    ----
    [Webkit](http://webkit.org)
    `[Webkit](http://webkit.org)`
    [Chrome](http://google.com/chrome)
    [Firefox](http://firefox.com)
    [iTerm](http://iterm2.com)
  9. @saetia saetia revised this gist May 21, 2012. 1 changed file with 11 additions and 11 deletions.
    22 changes: 11 additions & 11 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,17 +4,17 @@

    Apps
    ----
    * [Webkit](http://webkit.org)
    * [Chrome](http://google.com/chrome)
    * [Firefox](http://firefox.com)
    * [iTerm](http://iterm2.com)
    * [Transmit](http://panic.com/transmit)
    * [Coda](http://panic.com/coda)
    * [Sublime Text](http://www.sublimetext.com/dev)
    * [Sequel Pro](http://nightly.sequelpro.com)
    * [1Password](https://agilebits.com/onepassword/mac)
    * [LiveReload](http://livereload.com)
    * [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions)
    [Webkit](http://webkit.org)
    [Chrome](http://google.com/chrome)
    [Firefox](http://firefox.com)
    [iTerm](http://iterm2.com)
    [Transmit](http://panic.com/transmit)
    [Coda](http://panic.com/coda)
    [Sublime Text](http://www.sublimetext.com/dev)
    [Sequel Pro](http://nightly.sequelpro.com)
    [1Password](https://agilebits.com/onepassword/mac)
    [LiveReload](http://livereload.com)
    [LiveReload Extensions](http://help.livereload.com/kb/general-use/browser-extensions)


    #Xcode Command Line Tools
  10. @saetia saetia revised this gist May 21, 2012. 1 changed file with 45 additions and 2 deletions.
    47 changes: 45 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -39,11 +39,54 @@ subl ~/.zshrc


    ```bash
    # Path to your oh-my-zsh configuration.
    ZSH=$HOME/.oh-my-zsh


    # Less Colors for Man Pages
    export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
    export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
    export LESS_TERMCAP_me=$'\E[0m' # end mode
    export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
    export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
    export LESS_TERMCAP_ue=$'\E[0m' # end underline
    export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline


    # Set name of the theme to load.
    # Look in ~/.oh-my-zsh/themes/
    # Optionally, if you set this to "random", it'll load a random theme each
    # time that oh-my-zsh is loaded.
    ZSH_THEME="kphoen"
    plugins=(git osx rails ruby github node npm brew)

    # Example aliases
    # alias zshconfig="mate ~/.zshrc"
    # alias ohmyzsh="mate ~/.oh-my-zsh"

    # Set to this to use case-sensitive completion
    # CASE_SENSITIVE="true"

    # Comment this out to disable weekly auto-update checks
    # DISABLE_AUTO_UPDATE="true"

    # Uncomment following line if you want to disable colors in ls
    # DISABLE_LS_COLORS="true"

    # Uncomment following line if you want to disable autosetting terminal title.
    # DISABLE_AUTO_TITLE="true"

    # Uncomment following line if you want red dots to be displayed while waiting for completion
    # COMPLETION_WAITING_DOTS="true"

    # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate rbenv ruby lighthouse)
    plugins=(git osx rails ruby github node rbenv npm brew byte)

    source $ZSH/oh-my-zsh.sh
    export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin

    # Customize to your needs...
    export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11/bin
    ```


  11. @saetia saetia revised this gist Apr 20, 2012. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -209,7 +209,9 @@ Key Bindings

    ```json
    [
    { "keys": ["super+b"], "command": "expand_selection", "args": {"to": "brackets"} }
    { "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"} }
    ]
    ```

  12. @saetia saetia revised this gist Apr 20, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -196,6 +196,7 @@ Settings
    "font_size": 18,
    "highlight_modified_tabs": true,
    "show_tab_close_buttons": false,
    "tab_size": 2,
    "spell_check": false,
    "theme": "Soda Light.sublime-theme",
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
  13. @saetia saetia revised this gist Apr 18, 2012. 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
    @@ -349,6 +349,7 @@ LoadModule expires_module libexec/apache2/mod_expires.so
    LoadModule headers_module libexec/apache2/mod_headers.so
    LoadModule ident_module libexec/apache2/mod_ident.so
    LoadModule usertrack_module libexec/apache2/mod_usertrack.so
    #LoadModule unique_id_module libexec/apache2/mod_unique_id.so
    LoadModule setenvif_module libexec/apache2/mod_setenvif.so
    LoadModule version_module libexec/apache2/mod_version.so
    LoadModule proxy_module libexec/apache2/mod_proxy.so
    @@ -376,7 +377,9 @@ LoadModule speling_module libexec/apache2/mod_speling.so
    LoadModule userdir_module libexec/apache2/mod_userdir.so
    LoadModule alias_module libexec/apache2/mod_alias.so
    LoadModule rewrite_module libexec/apache2/mod_rewrite.so
    #LoadModule perl_module libexec/apache2/mod_perl.so
    LoadModule php5_module libexec/apache2/libphp5.so
    #LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so

    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
  14. @saetia saetia revised this gist Apr 17, 2012. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -77,7 +77,6 @@ defaults write com.apple.dock show-process-indicators -bool true
    #Enable AirDrop over Ethernet and on unsupported Macs running Lion
    defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true


    #Set a blazingly fast keyboard repeat rate
    defaults write NSGlobalDomain KeyRepeat -int 0.02

  15. @saetia saetia revised this gist Apr 17, 2012. 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
    @@ -104,6 +104,9 @@ defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
    #Show the ~/Library folder
    chflags nohidden ~/Library

    #Disable ping dropdowns
    defaults write com.apple.iTunes hide-ping-dropdown true

    ```

    Set hostname
  16. @saetia saetia revised this gist Apr 17, 2012. 1 changed file with 43 additions and 0 deletions.
    43 changes: 43 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -61,6 +61,49 @@ defaults write -g ApplePressAndHoldEnabled -bool false

    #Disable webkit homepage
    defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true

    #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

    #Show indicator lights for open applications in the Dock
    defaults write com.apple.dock show-process-indicators -bool true

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


    #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

    #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

    #Disable Safari’s thumbnail cache for History and Top Sites
    defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2

    #Enable Safari’s debug menu
    defaults write com.apple.Safari IncludeInternalDebugMenu -bool true

    #Disable the Ping sidebar in iTunes
    defaults write com.apple.iTunes disablePingSidebar -bool true

    #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

    ```

    Set hostname
  17. @saetia saetia revised this gist Apr 9, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -514,7 +514,7 @@ sudo touch /etc/php.ini && subl /etc/php.ini

    engine = On
    short_open_tag = On
    asp_tags = On
    asp_tags = Off
    precision = 14
    y2k_compliance = On
    output_buffering = 4096
  18. @saetia saetia revised this gist Apr 5, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -577,7 +577,7 @@ max_file_uploads = 20
    allow_url_fopen = On
    allow_url_include = Off
    default_socket_timeout = 60
    zend_extension="/usr/local/Cellar/xdebug/2.1.3/xdebug.so"
    zend_extension="/usr/local/Cellar/xdebug-php/2.1.3/xdebug.so"

    [Date]

  19. @saetia saetia revised this gist Apr 5, 2012. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -50,11 +50,13 @@ export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/lo



    # OS X Preferences

    ```bash
    #Disable window animations
    defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

    #Enable key repeat
    #Enable repeat on keydown
    defaults write -g ApplePressAndHoldEnabled -bool false

    #Disable webkit homepage
    @@ -68,7 +70,8 @@ Set hostname



    #Homebrews
    #Homebrew


    ```bash
    /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
  20. @saetia saetia revised this gist Apr 4, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -98,7 +98,9 @@ git config --global user.name "Joel Glovacki"
    git config --global user.email "[email protected]"
    git config --global github.user saetia
    git config --global github.token your_token_here

    git config --global core.editor "subl -w"
    git config --global color.ui true
    ```


  21. @saetia saetia revised this gist Apr 4, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ Apps

    #Shell

    Install z-shell
    Switch to z-shell
    ---------------
    ```bash
    curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
  22. @saetia saetia revised this gist Apr 4, 2012. 1 changed file with 2 additions and 5 deletions.
    7 changes: 2 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -43,8 +43,6 @@ ZSH=$HOME/.oh-my-zsh
    ZSH_THEME="kphoen"
    plugins=(git osx rails ruby github node npm brew)
    source $ZSH/oh-my-zsh.sh
    export PHP_AUTOCONF=/usr/local/Cellar/autoconf/2.13/bin/autoconf213
    export PHP_AUTOHEADER=/usr/local/Cellar/autoconf/2.13/bin/autoheader213
    export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin:/usr/X11/bin
    ```

    @@ -467,11 +465,11 @@ XDebug
    brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/xdebug-php.rb
    ```

    MySQL, PostgreSQL & PHP
    MySQL
    -----

    ```bash
    brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/php.rb --with-apache --with-mysql --with-pgsql
    brew install mysql
    ```

    MySQL Settings
    @@ -502,7 +500,6 @@ Configure php.ini
    ---------------------

    ```bash

    #create php.ini
    sudo touch /etc/php.ini && subl /etc/php.ini
    ```
  23. @saetia saetia revised this gist Apr 4, 2012. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -464,8 +464,7 @@ XDebug


    ```bash
    #autoconf and xdebug
    brew install https://raw.github.com/gist/1010716/4802f6a498168ffd45aeb8b94632c8e58069407d/autoconf.rb xdebug
    brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/xdebug-php.rb
    ```

    MySQL, PostgreSQL & PHP
  24. @saetia saetia revised this gist Apr 4, 2012. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -328,7 +328,7 @@ LoadModule speling_module libexec/apache2/mod_speling.so
    LoadModule userdir_module libexec/apache2/mod_userdir.so
    LoadModule alias_module libexec/apache2/mod_alias.so
    LoadModule rewrite_module libexec/apache2/mod_rewrite.so
    LoadModule php5_module /usr/local/Cellar/php/5.3.8/libexec/apache2/libphp5.so
    LoadModule php5_module libexec/apache2/libphp5.so

    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    @@ -503,7 +503,9 @@ Configure php.ini
    ---------------------

    ```bash
    subl "/usr/local/Cellar/php/5.3.8/etc/php.ini"

    #create php.ini
    sudo touch /etc/php.ini && subl /etc/php.ini
    ```

    ```ini
  25. @saetia saetia revised this gist Apr 4, 2012. 1 changed file with 12 additions and 10 deletions.
    22 changes: 12 additions & 10 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -472,27 +472,29 @@ MySQL, PostgreSQL & PHP
    -----

    ```bash
    brew install https://raw.github.com/saetia/homebrew/php/Library/Formula/php.rb --with-apache --with-mysql --with-pgsql
    brew install https://github.com/josegonzalez/homebrew-php/raw/master/Formula/php.rb --with-apache --with-mysql --with-pgsql
    ```

    MySQL Settings
    --------------




    ```bash

    #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 &&
    cp $(brew --prefix mysql)/support-files/my-small.cnf /usr/local/var/mysql/my.cnf &&
    sed -i "" 's/max_allowed_packet = 1.*M/max_allowed_packet = 2G/g' /usr/local/var/mysql/my.cnf &&
    mkdir -p ~/Library/LaunchAgents &&
    cp /usr/local/Cellar/mysql/5.5.20/com.mysql.mysqld.plist ~/Library/LaunchAgents/ &&
    launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
    unset TMPDIR && mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

    #start mysql
    mysql.server start

    #change password
    /usr/local/Cellar/mysql/5.5.20/bin/mysqladmin -u root password 'new-password'
    #secure mysql
    /usr/local/Cellar/mysql/5.5.20/bin/mysql_secure_installation
    ```


  26. @saetia saetia revised this gist Apr 3, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -252,9 +252,10 @@ NameVirtualHost *:80
    ```


    Open apache config


    ```bash
    #open apache config
    subl "/etc/apache2/httpd.conf"
    ```

  27. @saetia saetia revised this gist Apr 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -252,7 +252,7 @@ NameVirtualHost *:80
    ```


    Open apache config and replace lines
    Open apache config

    ```bash
    subl "/etc/apache2/httpd.conf"
  28. @saetia saetia revised this gist Apr 3, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -211,8 +211,8 @@ echo "listen-address=127.0.0.1" >> /usr/local/etc/dnsmasq.conf
    Enable dnsmasq daemon
    -------------
    ```bash
    sudo cp "/usr/local/Cellar/dnsmasq/2.57/uk.org.thekelleys.dnsmasq.plist" "/Library/LaunchDaemons" &&
    sudo launchctl load -w "/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist"
    sudo cp "/usr/local/Cellar/dnsmasq/2.57/homebrew.mxcl.dnsmasq.plist" "/Library/LaunchDaemons" &&
    sudo launchctl load -w "/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist"
    ```

    Add Localhost to /etc/resolver
  29. @saetia saetia revised this gist Apr 3, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -133,7 +133,7 @@ git clone git://github.com/buymeasoda/soda-theme.git ~/Library/Application\ Supp
    Install Tomorrow Theme
    ----------------------
    ```bash
    git clone git://github.com/chriskempson/TextMate-Tomorrow-Theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow
    git clone git://github.com/chriskempson/textmate-tomorrow-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow
    ```

    Settings
  30. @saetia saetia revised this gist Apr 3, 2012. 1 changed file with 26 additions and 22 deletions.
    48 changes: 26 additions & 22 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -82,6 +82,32 @@ brew install git ack wget curl redis memcached libmemcached colordiff imagemagic



    #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 "Joel Glovacki"
    git config --global user.email "[email protected]"
    git config --global github.user saetia
    git config --global github.token your_token_here
    git config --global core.editor "subl -w"
    ```







    #Sublime Text

    @@ -150,28 +176,6 @@ git clone [email protected]:bytestudios/sublime-snippets.git "/Users/Joel/Library/A



    #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 "Joel Glovacki"
    git config --global user.email "[email protected]"
    git config --global github.user saetia
    git config --global github.token your_token_here
    git config --global core.editor "subl -w"
    ```