Skip to content

Instantly share code, notes, and snippets.

@jugglebird
Forked from saetia/gist:1623487
Created March 26, 2014 19:39
Show Gist options
  • Select an option

  • Save jugglebird/9791512 to your computer and use it in GitHub Desktop.

Select an option

Save jugglebird/9791512 to your computer and use it in GitHub Desktop.

Revisions

  1. @saetia saetia revised this gist Jan 25, 2014. 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
    @@ -259,7 +259,7 @@ curl -L https://get.rvm.io | bash -s stable --rails

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


  2. @saetia saetia revised this gist Jan 14, 2014. 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
    @@ -308,7 +308,7 @@ This will allow you to serve folders under ~/Sites/ as websites.

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

    to access this site, visit http://example.com.build
  3. @saetia saetia revised this gist Jan 14, 2014. 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
    @@ -149,8 +149,8 @@ git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/cu
    ```bash
    ssh-keygen -t rsa -C "saetia@gmail.com"

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

    #test connection
    ssh -T git@github.com
  4. @saetia saetia revised this gist Jan 7, 2014. 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
    @@ -116,7 +116,7 @@ curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh |


    ```bash
    ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    ```bash
  5. @saetia saetia revised this gist Dec 16, 2013. 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
    @@ -294,8 +294,7 @@ sudo mkdir -v /etc/resolver &&
    sudo zsh -c 'echo "nameserver 127.0.0.1" > /etc/resolver/build'

    #flush cache
    dscacheutil -flushcache

    sudo killall -HUP mDNSResponder
    #ensure it works
    scutil --dns
    ```
  6. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 1 addition and 7 deletions.
    8 changes: 1 addition & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -259,7 +259,7 @@ curl -L https://get.rvm.io | bash -s stable --rails

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


    @@ -423,12 +423,6 @@ sudo pear install --alldeps phpunit/PHPUnit &&
    pear install phpunit/phpunit_selenium
    ```

    ####Guard


    ```bash
    gem install growl guard guard-phpunit
    ```



  7. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -250,7 +250,7 @@ git clone git@github.com:bytestudios/sublime-snippets.git ~/Library/Application\

    ---

    #### RVM
    #### Ruby version manager

    ```bash
    curl -L https://get.rvm.io | bash -s stable --rails
  8. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 14 additions and 7 deletions.
    21 changes: 14 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -246,34 +246,41 @@ git clone git@github.com:bytestudios/sublime-snippets.git ~/Library/Application\



    ### Ruby

    ---

    ###RVM
    #### RVM

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


    ###Ruby Gems
    #### Gems
    ```
    gem install pygmentize
    ```

    ###Node Packages


    ### Node

    ---

    #### Packages

    ```
    npm install -g coffeescript
    ```





    ###Local Webserver
    ### Local Webserver

    ---

    ####Install dnsmasq, Add DNS Domains, Enable dnsmasq daemon
    #### Install dnsmasq, 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

  9. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -258,7 +258,6 @@ curl -L https://get.rvm.io | bash -s stable --rails
    ###Ruby Gems
    ```
    gem install pygmentize
    ```

    ###Node Packages
  10. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -251,7 +251,7 @@ git clone git@github.com:bytestudios/sublime-snippets.git ~/Library/Application\
    ###RVM

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


  11. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -270,7 +270,7 @@ npm install -g coffeescript



    ###Server
    ###Local Webserver

    ---

  12. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -8,6 +8,7 @@
    [Sublime Text](http://www.sublimetext.com/dev),
    [Sequel Pro](http://nightly.sequelpro.com),
    [Codekit](http://incident57.com/codekit/),
    [ImageOptim](http://imageoptim.com),
    [XQuartz](http://xquartz.macosforge.org/trac/wiki)

    ### OS X Preferences
  13. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -159,7 +159,8 @@ git config --global user.name "Joel Glovacki" &&
    git config --global user.email "saetia@gmail.com" &&
    git config --global github.user saetia &&
    git config --global core.editor "subl -w" &&
    git config --global color.ui true
    git config --global color.ui true &&
    git config --global push.default simple

    #token
    git config --global github.token your_token_here
  14. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -7,7 +7,6 @@
    [iTerm](http://iterm2.com),
    [Sublime Text](http://www.sublimetext.com/dev),
    [Sequel Pro](http://nightly.sequelpro.com),
    [1Password](https://agilebits.com/onepassword/mac),
    [Codekit](http://incident57.com/codekit/),
    [XQuartz](http://xquartz.macosforge.org/trac/wiki)

  15. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -5,13 +5,10 @@
    [Firefox](http://firefox.com),
    [Kaleidoscope](http://www.kaleidoscopeapp.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),
    [Codekit](http://incident57.com/codekit/),
    [XQuartz](http://xquartz.macosforge.org/trac/wiki)

    ### OS X Preferences
  16. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -311,7 +311,8 @@ This will allow you to serve folders under ~/Sites/ as websites.
    to access this site, visit http://example.com.build

    ```bash
    sudo touch "/etc/apache2/users/$USER.conf" && subl "/etc/apache2/users/$USER.conf"
    sudo touch "/etc/apache2/users/$USER.conf"
    sudo subl "/etc/apache2/users/$USER.conf"
    ```

    ```bash
    @@ -335,7 +336,7 @@ NameVirtualHost *:80


    ```bash
    wget https://gist.github.com/saetia/6096745/raw/8a4b8a752f26e3841fa2d91586e70723006e2f12/httpd.conf -O /etc/apache2/httpd.conf
    sudo wget https://gist.github.com/saetia/6096745/raw/8a4b8a752f26e3841fa2d91586e70723006e2f12/httpd.conf -O /etc/apache2/httpd.conf
    ```

    ####Enable centOS style /var/www/vhosts for local dev
  17. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -159,12 +159,14 @@ cat ~/.ssh/id_rsa.pub
    ssh -T git@github.com

    #set git config values
    git config --global user.name "Joel Glovacki"
    git config --global user.email "saetia@gmail.com"
    git config --global github.user saetia
    git config --global github.token your_token_here
    git config --global core.editor "subl -w"
    git config --global user.name "Joel Glovacki" &&
    git config --global user.email "saetia@gmail.com" &&
    git config --global github.user saetia &&
    git config --global core.editor "subl -w" &&
    git config --global color.ui true

    #token
    git config --global github.token your_token_here
    ```

    ###Coda
  18. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -153,7 +153,7 @@ git clone git://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/cu
    ssh-keygen -t rsa -C "saetia@gmail.com"

    #copy ssh key to github.com
    subl ~/.ssh/id_rsa.pub
    cat ~/.ssh/id_rsa.pub

    #test connection
    ssh -T git@github.com
  19. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -25,6 +25,9 @@ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
    #Enable repeat on keydown
    defaults write -g ApplePressAndHoldEnabled -bool false

    # Expand save panel by default
    defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

    #Disable ext change warning
    defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

  20. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 6 additions and 18 deletions.
    24 changes: 6 additions & 18 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -53,9 +53,9 @@ defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
    defaults write NSGlobalDomain KeyRepeat -int 0

    # Show icons for hard drives, servers, and removable media on the desktop
    defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
    defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
    defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
    defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true &&
    defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true &&
    defaults write com.apple.finder ShowMountedServersOnDesktop -bool true &&
    defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

    # Avoid creating .DS_Store files on network volumes
    @@ -82,32 +82,20 @@ defaults write com.apple.messageshelper.MessageController SOInputLineSettings -d


    # 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 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 IncludeDevelopMenu -bool true &&
    defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true &&
    defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true &&
    defaults write NSGlobalDomain WebKitDeveloperExtras -bool true


    #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

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

    #Show absolute path in finder's title bar.
    defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES

  21. @saetia saetia revised this gist Nov 20, 2013. 1 changed file with 34 additions and 1 deletion.
    35 changes: 34 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,9 @@ defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
    #Disable webkit homepage
    defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true

    # Check for software updates daily, not just once per week
    defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

    #Use current directory as default search scope in Finder
    defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"

    @@ -47,7 +50,17 @@ defaults write com.apple.finder ShowStatusBar -bool true
    defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true

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

    # Show icons for hard drives, servers, and removable media on the desktop
    defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
    defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
    defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
    defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true

    # Avoid creating .DS_Store files on network volumes
    defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true


    #Set a shorter Delay until key repeat
    defaults write NSGlobalDomain InitialKeyRepeat -int 12
    @@ -63,6 +76,26 @@ defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
    #Enable Safari’s debug menu
    defaults write com.apple.Safari IncludeInternalDebugMenu -bool true


    # Disable smart quotes as it’s annoying for messages that contain code
    defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false


    # 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 IncludeDevelopMenu -bool true &&
    defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true &&
    defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled -bool true &&
    defaults write NSGlobalDomain WebKitDeveloperExtras -bool true


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

  22. @saetia saetia revised this gist Nov 20, 2013. 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
    @@ -25,6 +25,9 @@ defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
    #Enable repeat on keydown
    defaults write -g ApplePressAndHoldEnabled -bool false

    #Disable ext change warning
    defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false

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

  23. @saetia saetia revised this gist Nov 17, 2013. 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
    @@ -249,6 +249,8 @@ npm install -g coffeescript

    ####Install dnsmasq, 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
    brew install dnsmasq &&
    mkdir -pv $(brew --prefix)/etc/ &&
    @@ -273,11 +275,11 @@ scutil --dns
    This will allow you to serve folders under ~/Sites/ as websites.

    * ~/Sites
    * hello.com
    * example.com
    * httpdocs
    * index.html

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

    ```bash
    sudo touch "/etc/apache2/users/$USER.conf" && subl "/etc/apache2/users/$USER.conf"
  24. @saetia saetia revised this gist Nov 17, 2013. 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
    @@ -272,7 +272,7 @@ scutil --dns

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

    * Sites
    * ~/Sites
    * hello.com
    * httpdocs
    * index.html
  25. @saetia saetia revised this gist Nov 17, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -273,9 +273,9 @@ scutil --dns
    This will allow you to serve folders under ~/Sites/ as websites.

    * Sites
    * hello.com
    * httpdocs
    * index.html
    * hello.com
    * httpdocs
    * index.html

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

  26. @saetia saetia revised this gist Nov 17, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -273,9 +273,9 @@ scutil --dns
    This will allow you to serve folders under ~/Sites/ as websites.

    * Sites
    ** hello.com
    *** httpdocs
    **** index.html
    * hello.com
    * httpdocs
    * index.html

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

  27. @saetia saetia revised this gist Nov 17, 2013. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -270,6 +270,15 @@ scutil --dns

    ####Enable virtual hosts

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

    * Sites
    ** hello.com
    *** httpdocs
    **** index.html

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

    ```bash
    sudo touch "/etc/apache2/users/$USER.conf" && subl "/etc/apache2/users/$USER.conf"
    ```
  28. @saetia saetia revised this gist Nov 17, 2013. 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
    @@ -271,7 +271,7 @@ scutil --dns
    ####Enable virtual hosts

    ```bash
    subl "/etc/apache2/users/$USER.conf"
    sudo touch "/etc/apache2/users/$USER.conf" && subl "/etc/apache2/users/$USER.conf"
    ```

    ```bash
  29. @saetia saetia revised this gist Nov 17, 2013. No changes.
  30. @saetia saetia revised this gist Nov 17, 2013. 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
    @@ -96,7 +96,7 @@ ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
    ```

    ```bash
    brew install ack wget redis memcached libmemcached colordiff imagemagick icoutils
    brew install jpegoptim pngcrush ack wget redis memcached libmemcached colordiff imagemagick icoutils
    ```