Skip to content

Instantly share code, notes, and snippets.

@maksimhn
Forked from GA-MEB/gist:bd37be900a84855d236f
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save maksimhn/0e87946cd7b430a7458e to your computer and use it in GitHub Desktop.

Select an option

Save maksimhn/0e87946cd7b430a7458e to your computer and use it in GitHub Desktop.

Revisions

  1. @GA-MEB GA-MEB revised this gist Jul 6, 2015. 1 changed file with 2 additions and 6 deletions.
    8 changes: 2 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -299,13 +299,9 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    `rbenv install ruby-build`
    5. Install two versions of Ruby, 2.2.0 and 2.2.2, using the command
    5. Install version 2.2.0 of Ruby and make it the system-wide default using the command
    `rbenv install 2.2.0 && rbenv install 2.2.2`
    Make 2.2.0 the system-wide default using the command
    `rbenv global 2.2.0`
    `rbenv install 2.2.0 && rbenv global 2.2.0`
    You can see what versions of Ruby rbenv has downloaded by running `rbenv versions`; to see which version you are currently using, type either `rbenv version` or `ruby -v`.
  2. @GA-MEB GA-MEB revised this gist Jun 22, 2015. 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
    @@ -79,7 +79,8 @@ We're going to be installing Node next; Node (and its various packages) will be
    ##### Linux
    ```bash
    # NVM

    export NVM_DIR="/home/your_username/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads NVM.
    ```

    3. Use NVM to install the latest stable version of Node
  3. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -53,7 +53,7 @@ In order for Homebrew to work, we'll need to rely on a number of programs that c

    # NVM and Node/NPM

    We're going to be installing Node next; Node (and its various packages) will be the foundation of a large part of the course. First, though, we're going to download a tool that allows us to maintain multiple different versions of Node, in case we want to switch between them for different projects. Then we'll download Node, and use its associated package manager, NPM, to download and install the following Node modules:
    We're going to be installing Node next; Node (and its various packages) will be the foundation of a large part of the course. First, though, we're going to download a tool called [NVM](https://github.com/creationix/nvm) that allows us to maintain multiple different versions of Node, in case we want to switch between them for different projects. Then we'll download Node, and use its associated package manager, NPM, to download and install the following Node modules:
    * JShint, a tool for testing JavaScript code quality. (`jshint`)
    * Grunt, a tool for automating background tasks. (`grunt-cli`)
    * Bower, a tool for managing front-end assets and libraries, such as jQuery. (`bower`)
  4. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -70,14 +70,14 @@ We're going to be installing Node next; Node (and its various packages) will be
    2. Add the following snippets to your bash configuration files (`.bash_profile` on OS X, `.bashrc` on Linux).

    ##### OS X
    ```
    ```bash
    # NVM
    export NVM_DIR=~/.nvm
    source $(brew --prefix nvm)/nvm.sh
    ```

    ##### Linux
    ```
    ```bash
    # NVM

    ```
  5. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -86,8 +86,7 @@ We're going to be installing Node next; Node (and its various packages) will be

    `nvm install stable`

    4. Finally, use NPM to install some other Node modules that we'll be using across multiple projects. Enter the following command into the terminal to install all four of the packages mentioned earlier.

    4. Finally, use NPM to install the Node modules mentioned earlier and make them available across all of our projects.
    `npm install -g jshint grunt-cli bower yo`

    #Sublime Text 3
  6. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -59,7 +59,6 @@ We're going to be installing Node next; Node (and its various packages) will be
    * Bower, a tool for managing front-end assets and libraries, such as jQuery. (`bower`)
    * Yeoman, a scaffolding tool to make building projects easier. (`yo`)

    ##Installing NVM and Node/NPM
    1. Run one of the following commands to install NVM.

    ##### OS X
  7. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 1 changed file with 5 additions and 6 deletions.
    11 changes: 5 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -54,10 +54,10 @@ In order for Homebrew to work, we'll need to rely on a number of programs that c
    # NVM and Node/NPM

    We're going to be installing Node next; Node (and its various packages) will be the foundation of a large part of the course. First, though, we're going to download a tool that allows us to maintain multiple different versions of Node, in case we want to switch between them for different projects. Then we'll download Node, and use its associated package manager, NPM, to download and install the following Node modules:
    * JShint, a tool for testing JavaScript code quality.
    * Grunt, a tool for automating background tasks.
    * Bower, a tool for managing front-end assets and libraries, such as jQuery.
    * Yeoman, a scaffolding tool to make building projects easier.
    * JShint, a tool for testing JavaScript code quality. (`jshint`)
    * Grunt, a tool for automating background tasks. (`grunt-cli`)
    * Bower, a tool for managing front-end assets and libraries, such as jQuery. (`bower`)
    * Yeoman, a scaffolding tool to make building projects easier. (`yo`)

    ##Installing NVM and Node/NPM
    1. Run one of the following commands to install NVM.
    @@ -87,8 +87,7 @@ We're going to be installing Node next; Node (and its various packages) will be

    `nvm install stable`

    4. Finally, use NPM to install other Node modules that we'll be using across multiple projects.
    Enter the following command into the terminal to install all four of the packages mentioned earlier.
    4. Finally, use NPM to install some other Node modules that we'll be using across multiple projects. Enter the following command into the terminal to install all four of the packages mentioned earlier.

    `npm install -g jshint grunt-cli bower yo`

  8. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 1 changed file with 21 additions and 7 deletions.
    28 changes: 21 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -61,22 +61,36 @@ We're going to be installing Node next; Node (and its various packages) will be

    ##Installing NVM and Node/NPM
    1. Run one of the following commands to install NVM.

    ##### OS X
    `brew install nvm`

    ##### Linux
    `sudo apt-get install npm`
    2. Install the latest version of Node (as of
    ## Installing Other JS-Related Tools
    Just enter the following commands into the terminal.

    `npm install -g jshint`
    2. Add the following snippets to your bash configuration files (`.bash_profile` on OS X, `.bashrc` on Linux).

    `npm install -g grunt-cli`
    ##### OS X
    ```
    # NVM
    export NVM_DIR=~/.nvm
    source $(brew --prefix nvm)/nvm.sh
    ```

    ##### Linux
    ```
    # NVM
    ```

    3. Use NVM to install the latest stable version of Node

    `nvm install stable`

    `npm install -g bower`
    4. Finally, use NPM to install other Node modules that we'll be using across multiple projects.
    Enter the following command into the terminal to install all four of the packages mentioned earlier.

    `npm install -g yo`
    `npm install -g jshint grunt-cli bower yo`

    #Sublime Text 3

  9. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -1,3 +1,10 @@
    <!--
    # Instructor Notes
    Ruby Version : 2.2.0 (with 2.2.2 as a backup)
    Node Version : 0.12.4
    Postgres Version : 9.4.3 (9.4.2 server)
    -->

    # Before you come in...
    **OS X**

    @@ -350,8 +357,3 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    #CONGRATULATIONS! YOU'RE READY TO ROLL!
    ##### Instructor Notes
    Ruby Version : 2.2.0 (with 2.2.2 as a backup)
    Node Version : 0.12.4
    Postgres Version : 9.4.3 (9.4.2 server)
  10. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 1 changed file with 16 additions and 14 deletions.
    30 changes: 16 additions & 14 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,3 @@
    <!--
    Last Updated : 2015-04-16
    Ruby Version : 2.2.2
    Postgres Version : 9.4.x
    -->

    # Before you come in...
    **OS X**

    @@ -50,20 +44,22 @@ In order for Homebrew to work, we'll need to rely on a number of programs that c

    4. Once Homebrew says `Your system is ready to brew`, run `brew update` to update Homebrew's directory of packages.

    # Node/NPM
    # NVM and Node/NPM

    We're going to be installing Node next; Node (and its various packages) will be the foundation of a large part of the course. These packages get managed through a tool called NPM. Right now, we'll use NPM to install the following tools:
    We're going to be installing Node next; Node (and its various packages) will be the foundation of a large part of the course. First, though, we're going to download a tool that allows us to maintain multiple different versions of Node, in case we want to switch between them for different projects. Then we'll download Node, and use its associated package manager, NPM, to download and install the following Node modules:
    * JShint, a tool for testing JavaScript code quality.
    * Grunt, a tool for automating background tasks.
    * Bower, a tool for managing front-end assets and libraries, such as jQuery.
    * Yeoman, a scaffolding tool to make building projects easier.

    ##Installing Node/NPM
    Run one of the following commands.
    ##### OS X
    `brew install node`
    ##### Linux
    `sudo apt-get install npm`
    ##Installing NVM and Node/NPM
    1. Run one of the following commands to install NVM.
    ##### OS X
    `brew install nvm`

    ##### Linux
    `sudo apt-get install npm`
    2. Install the latest version of Node (as of
    ## Installing Other JS-Related Tools
    Just enter the following commands into the terminal.

    @@ -353,3 +349,9 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    [Download and install Evernote](https://evernote.com/evernote/)
    #CONGRATULATIONS! YOU'RE READY TO ROLL!
    ##### Instructor Notes
    Ruby Version : 2.2.0 (with 2.2.2 as a backup)
    Node Version : 0.12.4
    Postgres Version : 9.4.3 (9.4.2 server)
  11. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -340,7 +340,7 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    #####OS X
    Let's create a new terminal shortcut, just like we did with Sublime Text.
    Create a new terminal shortcut, just like we did with Sublime Text.
    `ln -s /Applications/Postgres.app/Contents/Versions/9.4/bin/psql /usr/local/bin/psql`
    #####Linux
  12. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -336,7 +336,7 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    See [https://help.ubuntu.com/community/PostgreSQL](https://help.ubuntu.com/community/PostgreSQL) if you run into any issues with the installation.
    3. Terminal Shortcut Time!
    3. It's terminal shortcut time! Let's configure a `psql` shortcut so that we can run Postgres from the command line.
    #####OS X
  13. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -284,13 +284,13 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    `rbenv install ruby-build`
    5. Install the latest version of Ruby (2.2.2, as of 2015-04-16) using the command
    5. Install two versions of Ruby, 2.2.0 and 2.2.2, using the command
    `rbenv install 2.2.2`
    `rbenv install 2.2.0 && rbenv install 2.2.2`
    and make it the system-wide default using the command
    Make 2.2.0 the system-wide default using the command
    `rbenv global 2.2.2`
    `rbenv global 2.2.0`
    You can see what versions of Ruby rbenv has downloaded by running `rbenv versions`; to see which version you are currently using, type either `rbenv version` or `ruby -v`.
  14. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 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
    @@ -340,12 +340,12 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    #####OS X
    (OS X Only) Let's create a terminal shortcut, just like we did with Sublime Text.
    Let's create a new terminal shortcut, just like we did with Sublime Text.
    `ln -s /Applications/Postgres.app/Contents/Versions/9.4/bin/psql /usr/local/bin/psql`
    #####Linux
    Add the existing shortcut to the environmental PATH variable.
    Linux already has a shortcut set up for us; just add the existing shortcut to the environmental PATH variable.
    `echo "export PATH=/usr/local/psql/bin:$PATH" >> ~/.bashrc`
    # Evernote
  15. @GA-MEB GA-MEB revised this gist Jun 19, 2015. 1 changed file with 13 additions and 3 deletions.
    16 changes: 13 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -324,19 +324,29 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    2. Once you've installed Postgres, install the postgres gem from the command line so that Ruby can access it.
    #####OS X
    `gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config`
    #####Linux
    `gem install pg`
    Linux folks must also specify a default database user, using the following command:
    `sudo -u postgres createuser *<ubuntu_username>* -s`
    See [https://help.ubuntu.com/community/PostgreSQL](https://help.ubuntu.com/community/PostgreSQL) if you run into any issues with the installation.
    3. (OS X Only) Let's create a terminal shortcut, just like we did with Sublime Text.
    3. Terminal Shortcut Time!
    #####OS X
    (OS X Only) Let's create a terminal shortcut, just like we did with Sublime Text.
    `ln -s /Applications/Postgres.app/Contents/Versions/9.4/bin/psql /usr/local/bin/psql`
    4. (Linux Only) Add the existing shortcut to the environmental PATH variable.
    `echo "export PATH=/usr/local/psql/bin:$PATH" >> ~/.bash_profile`
    #####Linux
    Add the existing shortcut to the environmental PATH variable.
    `echo "export PATH=/usr/local/psql/bin:$PATH" >> ~/.bashrc`
    # Evernote
  16. @GA-MEB GA-MEB revised this gist May 6, 2015. 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
    @@ -258,6 +258,8 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    fi
    ```
    Once you've done this, run `source ~/.bash_profile` (or `.bashrc` on Linux) to reload the terminal's settings.
    3. (OS X only) Install a tool to re-hash gems after each installation (Linux users, unfortunately must do this manually).
    `brew install rbenv-gem-rehash`
  17. @GA-MEB GA-MEB revised this gist Apr 24, 2015. 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
    @@ -60,9 +60,9 @@ We're going to be installing Node next; Node (and its various packages) will be

    ##Installing Node/NPM
    Run one of the following commands.
    ####OS X
    ##### OS X
    `brew install node`
    ####Linux
    ##### Linux
    `sudo apt-get install npm`
    ## Installing Other JS-Related Tools
    Just enter the following commands into the terminal.
  18. @GA-MEB GA-MEB revised this gist Apr 24, 2015. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -77,15 +77,15 @@ Just enter the following commands into the terminal.

    #Sublime Text 3

    #### OS X
    ##### OS X

    * Download the latest Sublime Text build from [http://www.sublimetext.com/3](http://www.sublimetext.com/3).
    * Double-click the .dmg file to open it, and drag the icon into your 'Applications' folder.
    * Next, enter the following into your terminal - it will create a 'symlink', a shortcut that we can use to open Sublime from the command line.

    `ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl`

    #### Linux
    ##### Linux

    * Add the PPA (personal package archive) for SublimeText 3 to `apt` and update your package directory.

    @@ -172,7 +172,7 @@ Now let's take care of some settings.
    export PS1="\w \$(parse_git_branch)\$ "
    ```

    #####Linux
    ##### Linux
    Follow the instructions given for OS X, but replace `.bash_profile` with `.bashrc`

    - Tweak Git's EDITOR variable so that commit message pop-ups open in Sublime.
    @@ -223,11 +223,11 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    1. Install Rbenv
    ####OS X
    #####OS X
    Run `brew install rbenv`.
    ####Linux
    #####Linux
    Copy and paste this entire line into your terminal and run it.
    @@ -312,11 +312,11 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    1. First, download and install Postgres.
    ####OS X
    #####OS X
    Download and install the Postgress App : http://postgresapp.com/
    ####Linux
    #####Linux
    Run `sudo apt-get install postgresql libpq-dev` to install Postgres and its dependencies.
  19. @GA-MEB GA-MEB revised this gist Apr 24, 2015. 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
    @@ -173,7 +173,7 @@ Now let's take care of some settings.
    ```

    #####Linux
    Follow the instructions given for OS X, but replace `.bash_profile` with `.bashrc`.
    Follow the instructions given for OS X, but replace `.bash_profile` with `.bashrc`

    - Tweak Git's EDITOR variable so that commit message pop-ups open in Sublime.
  20. @GA-MEB GA-MEB revised this gist Apr 24, 2015. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -160,7 +160,7 @@ Now let's take care of some settings.

    - Show the current Git branch in the terminal prompt

    #### OS X
    ##### OS X
    Run the command `subl ~/.bash_profile` to open up .bash_profile, a hidden settings file for the terminal. Paste the following code into the bottom of the file.

    ```bash
    @@ -172,7 +172,7 @@ Now let's take care of some settings.
    export PS1="\w \$(parse_git_branch)\$ "
    ```

    ####Linux
    #####Linux
    Follow the instructions given for OS X, but replace `.bash_profile` with `.bashrc`.

    - Tweak Git's EDITOR variable so that commit message pop-ups open in Sublime.
    @@ -235,7 +235,7 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    2. Tell Rbenv to use homebrew's directories instead of rbenv's
    ####OS X
    #####OS X
    Open ~/.bash_profile and paste in the following code BEFORE the stuff you pasted in about Git.
    ```bash
    @@ -245,7 +245,7 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    eval "$(rbenv init -)"
    ```
    ####Linux
    #####Linux
    Open ~/.bashrc and paste in the following code BEFORE the stuff you pasted in about Git.
    @@ -272,11 +272,11 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    5. Install `ruby-build`, a plugin for rbenv.
    ####OS X
    #####OS X
    `brew install ruby-build`
    ####Linux
    #####Linux
    `git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build`
  21. @GA-MEB GA-MEB revised this gist Apr 24, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -160,6 +160,7 @@ Now let's take care of some settings.

    - Show the current Git branch in the terminal prompt

    #### OS X
    Run the command `subl ~/.bash_profile` to open up .bash_profile, a hidden settings file for the terminal. Paste the following code into the bottom of the file.

    ```bash
    @@ -171,6 +172,9 @@ Now let's take care of some settings.
    export PS1="\w \$(parse_git_branch)\$ "
    ```

    ####Linux
    Follow the instructions given for OS X, but replace `.bash_profile` with `.bashrc`.

    - Tweak Git's EDITOR variable so that commit message pop-ups open in Sublime.
    `echo "export EDITOR='subl -w'" >> ~/.bash_profile`
    @@ -232,7 +236,6 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    2. Tell Rbenv to use homebrew's directories instead of rbenv's
    ####OS X
    Open ~/.bash_profile and paste in the following code BEFORE the stuff you pasted in about Git.
    ```bash
  22. @GA-MEB GA-MEB revised this gist Apr 22, 2015. 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
    @@ -73,7 +73,7 @@ Just enter the following commands into the terminal.

    `npm install -g bower`

    `npm install -g yeoman`
    `npm install -g yo`

    #Sublime Text 3

  23. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 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
    @@ -54,9 +54,9 @@ In order for Homebrew to work, we'll need to rely on a number of programs that c

    We're going to be installing Node next; Node (and its various packages) will be the foundation of a large part of the course. These packages get managed through a tool called NPM. Right now, we'll use NPM to install the following tools:
    * JShint, a tool for testing JavaScript code quality.
    * Yeoman, a scaffolding tool to make building projects easier.
    * Grunt, a tool for automating background tasks.
    * Bower, a tool for managing front-end assets and libraries, such as jQuery.
    * Yeoman, a scaffolding tool to make building projects easier.

    ##Installing Node/NPM
    Run one of the following commands.
    @@ -69,12 +69,12 @@ Just enter the following commands into the terminal.

    `npm install -g jshint`

    `npm install -g yeoman`

    `npm install -g grunt-cli`

    `npm install -g bower`

    `npm install -g yeoman`

    #Sublime Text 3

    #### OS X
  24. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -66,9 +66,13 @@ Run one of the following commands.
    `sudo apt-get install npm`
    ## Installing Other JS-Related Tools
    Just enter the following commands into the terminal.

    `npm install -g jshint`

    `npm install -g yeoman`

    `npm install -g grunt-cli`

    `npm install -g bower`

    #Sublime Text 3
  25. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 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
    @@ -323,9 +323,11 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    See [https://help.ubuntu.com/community/PostgreSQL](https://help.ubuntu.com/community/PostgreSQL) if you run into any issues with the installation.
    3. (Linux-Only) Let's create a terminal shortcut, just like we did with Sublime Text.
    3. (OS X Only) Let's create a terminal shortcut, just like we did with Sublime Text.
    `ln -s /Applications/Postgres.app/Contents/Versions/9.4/bin/psql /usr/local/bin/psql`
    `echo "export PATH=$PATH:/usr/local/psql/bin:$PATH" >> ~/.bash_profile`
    4. (Linux Only) Add the existing shortcut to the environmental PATH variable.
    `echo "export PATH=/usr/local/psql/bin:$PATH" >> ~/.bash_profile`
    # Evernote
  26. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 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
    @@ -1,6 +1,7 @@
    <!--
    Last Updated : 2015-04-16
    Ruby Version : 2.2.2
    Postgres Version : 9.4.x
    -->

    # Before you come in...
  27. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 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
    @@ -314,7 +314,7 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    2. Once you've installed Postgres, install the postgres gem from the command line so that Ruby can access it.
    `ggem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config`
    `gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config`
    Linux folks must also specify a default database user, using the following command:
  28. @GA-MEB GA-MEB revised this gist Apr 16, 2015. No changes.
  29. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 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
    @@ -314,7 +314,7 @@ Next, we'll download Postgres, the database program we'll be using for most of t
    2. Once you've installed Postgres, install the postgres gem from the command line so that Ruby can access it.
    `gem install pg`
    `ggem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config`
    Linux folks must also specify a default database user, using the following command:
  30. @GA-MEB GA-MEB revised this gist Apr 16, 2015. 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
    @@ -158,6 +158,7 @@ Now let's take care of some settings.
    Run the command `subl ~/.bash_profile` to open up .bash_profile, a hidden settings file for the terminal. Paste the following code into the bottom of the file.

    ```bash
    # Git
    function parse_git_branch {
    ref=$(git symbolic-ref HEAD 2> /dev/null) || return
    echo "("${ref#refs/heads/}")"
    @@ -227,19 +228,21 @@ Rbenv is a tool that we can use to manage multiple versions of Ruby and determin
    ####OS X
    Open ~/.bash_profile and paste in the following code at the bottom.
    Open ~/.bash_profile and paste in the following code BEFORE the stuff you pasted in about Git.
    ```bash
    # Rbenv
    export RBENV_ROOT=/usr/local/var/rbenv
    export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"
    ```
    ####Linux
    Open ~/.bashrc and paste in the following code:
    Open ~/.bashrc and paste in the following code BEFORE the stuff you pasted in about Git.
    ```bash
    # Rbenv
    export RBENV_ROOT="${HOME}/.rbenv"
    if [ -d "${RBENV_ROOT}" ]; then
    export PATH="${RBENV_ROOT}/bin:${PATH}"