Skip to content

Instantly share code, notes, and snippets.

@kjbrum
Last active July 9, 2019 21:56
Show Gist options
  • Save kjbrum/2c44d39325fad624c4773a09dd8c6a5c to your computer and use it in GitHub Desktop.
Save kjbrum/2c44d39325fad624c4773a09dd8c6a5c to your computer and use it in GitHub Desktop.

Revisions

  1. kjbrum revised this gist Jul 9, 2019. 2 changed files with 21 additions and 22 deletions.
    19 changes: 0 additions & 19 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -1,19 +0,0 @@
    # Update the PATH variable
    export PATH="$(composer config -g home)/vendor/bin:$PATH"
    export PATH="/usr/local/bin:$PATH"
    export PATH="/usr/local/sbin:$PATH"

    # Go
    export GOPATH="$HOME/go"
    export GOROOT="$(brew --prefix golang)/libexec"
    export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"

    # Set our Homebrew Cask application directory
    export HOMEBREW_CASK_OPTS="--appdir=/Applications"

    # Add SSH keys to the ssh-agent
    # https://developer.github.com/v3/guides/using-ssh-agent-forwarding/
    # https://confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html
    if [ ! $(ssh-add -l | grep -o -e id_rsa) ]; then
    ssh-add "$HOME/.ssh/id_rsa" > /dev/null 2>&1
    fi
    24 changes: 21 additions & 3 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -44,9 +44,27 @@ Navigate to https://github.com/settings/keys and add your new SSH key.

    ## .bash_profile

    Add the contents of the `.bash_profile` file to your local `.bash_profile`:
    ```sh
    curl https://gist.github.com/kjbrum/2c44d39325fad624c4773a09dd8c6a5c/raw/.bash_profile >> ~/.bash_profile
    Add the following to your local `.bash_profile`:
    ```
    # Update the PATH variable
    export PATH="$(composer config -g home)/vendor/bin:$PATH"
    export PATH="/usr/local/bin:$PATH"
    export PATH="/usr/local/sbin:$PATH"
    # Go
    export GOPATH="$HOME/go"
    export GOROOT="$(brew --prefix golang)/libexec"
    export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"
    # Set our Homebrew Cask application directory
    export HOMEBREW_CASK_OPTS="--appdir=/Applications"
    # Add SSH keys to the ssh-agent
    # https://developer.github.com/v3/guides/using-ssh-agent-forwarding/
    # https://confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html
    if [ ! $(ssh-add -l | grep -o -e id_rsa) ]; then
    ssh-add "$HOME/.ssh/id_rsa" > /dev/null 2>&1
    fi
    ```

    Be sure to open a new terminal window after making this update.
  2. kjbrum revised this gist Apr 16, 2019. No changes.
  3. kjbrum revised this gist Apr 16, 2019. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -114,4 +114,9 @@ go get github.com/astockwell/serfix

    - VS Code: `brew cask install visual-studio-code`
    - Sequel Pro: `brew cask install sequel-pro`
    - iTerm2: `brew cask install iterm2`
    - iTerm2: `brew cask install iterm2`


    ## TODO

    - Add steps for WordPress deployer
  4. kjbrum revised this gist Apr 16, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,8 @@
    # Dev Environment Setup

    > Be sure to follow these steps in order, or you might run into unexpected issues.

    ## Xcode

    ```sh
  5. kjbrum revised this gist Apr 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -70,7 +70,7 @@ sudo n lts

    ## Composer Global Require (CGR)

    Once this is installed, anytime you need to install something using `composer global require ...`, replace it with `cgr ...`.
    Once this is installed, anytime you need to install something using `composer global require`, replace it with `cgr`.

    Example: `composer global require weprovide/valet-plus` becomes `cgr weprovide/valet-plus`.

  6. kjbrum revised this gist Apr 16, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -71,6 +71,7 @@ sudo n lts
    ## Composer Global Require (CGR)

    Once this is installed, anytime you need to install something using `composer global require ...`, replace it with `cgr ...`.

    Example: `composer global require weprovide/valet-plus` becomes `cgr weprovide/valet-plus`.

    ```sh
  7. kjbrum revised this gist Apr 16, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -102,4 +102,10 @@ brew install go

    # Install Serfix
    go get github.com/astockwell/serfix
    ```
    ```

    ## Tools/Apps

    - VS Code: `brew cask install visual-studio-code`
    - Sequel Pro: `brew cask install sequel-pro`
    - iTerm2: `brew cask install iterm2`
  8. kjbrum revised this gist Apr 16, 2019. 2 changed files with 53 additions and 16 deletions.
    2 changes: 1 addition & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Update the PATH variable
    export PATH="$HOME/.composer/vendor/bin:$PATH"
    export PATH="$(composer config -g home)/vendor/bin:$PATH"
    export PATH="/usr/local/bin:$PATH"
    export PATH="/usr/local/sbin:$PATH"

    67 changes: 52 additions & 15 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,18 @@
    ## Xcode

    ```sh
    # When asked about the command line tools, hit install.
    xcode-select --install
    ```


    ## Homebrew

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


    ## SSH Key

    Make sure you have an SSH key setup and added to your Github account.
    @@ -25,44 +40,66 @@ Navigate to https://github.com/settings/keys and add your new SSH key.
    ## .bash_profile

    Add the contents of the `.bash_profile` file to your local `.bash_profile`:

    ```sh
    curl https://gist.github.com/kjbrum/2c44d39325fad624c4773a09dd8c6a5c/raw/.bash_profile >> ~/.bash_profile
    ```

    Be sure to open a new terminal window after making this update.

    ## Xcode

    ## Git

    ```sh
    # When asked about the command line tools, hit install.
    xcode-select --install
    brew install git
    ```


    ## Homebrew
    ## Node/npm

    ```sh
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    # Install n (https://github.com/tj/n)
    brew install n

    # Install Node/npm
    n lts

    # You might get an error about sudo, if so, run the following
    sudo n lts
    ```


    ## Git
    ## Composer Global Require (CGR)

    Once this is installed, anytime you need to install something using `composer global require ...`, replace it with `cgr ...`.
    Example: `composer global require weprovide/valet-plus` becomes `cgr weprovide/valet-plus`.

    ```sh
    brew install git
    composer global require consolidation/cgr
    ```

    ## Valet+

    ## Node/npm
    Follow these instructions: https://github.com/weprovide/valet-plus#installation


    ## Link MySQL

    ```sh
    brew install n
    n lts
    # You might get an error about sudo, if so, run the following
    sudo n lts
    brew link [email protected] --force
    ```

    ## Envoy

    ## Valet+
    ```sh
    cgr laravel/envoy
    ```

    ## Go & Serfix

    ```sh
    # Install Go
    brew install go

    Follow these instructions: https://github.com/weprovide/valet-plus#installation
    # Install Serfix
    go get github.com/astockwell/serfix
    ```
  9. kjbrum revised this gist Apr 16, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -27,7 +27,7 @@ Navigate to https://github.com/settings/keys and add your new SSH key.
    Add the contents of the `.bash_profile` file to your local `.bash_profile`:

    ```sh
    curl https://gist.github.com/kjbrum/2c44d39325fad624c4773a09dd8c6a5c/raw/ce9d27ac970b80cd44de3470d7f9bf4608f584ee/.bash_profile >> ~/.bash_profile
    curl https://gist.github.com/kjbrum/2c44d39325fad624c4773a09dd8c6a5c/raw/.bash_profile >> ~/.bash_profile
    ```


  10. kjbrum revised this gist Apr 16, 2019. 2 changed files with 7 additions and 4 deletions.
    2 changes: 1 addition & 1 deletion .bash_profile
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Update the PATH variable
    export PATH="$HOME/.composer/vendor/bin:$PATH"
    export PATH="/usr/local/bin:$PATH"
    export PATH="/usr/local/sbin:$PATH"```
    export PATH="/usr/local/sbin:$PATH"

    # Go
    export GOPATH="$HOME/go"
    9 changes: 6 additions & 3 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -24,14 +24,17 @@ Navigate to https://github.com/settings/keys and add your new SSH key.

    ## .bash_profile

    Add the contents of the `.bash_profile` file to your local `.bash_profile`
    Add the contents of the `.bash_profile` file to your local `.bash_profile`:

    ```sh
    curl https://gist.github.com/kjbrum/2c44d39325fad624c4773a09dd8c6a5c/raw/ce9d27ac970b80cd44de3470d7f9bf4608f584ee/.bash_profile >> ~/.bash_profile
    ```

    ## Xcode

    > When asked about the command line tools, hit install.
    ## Xcode

    ```sh
    # When asked about the command line tools, hit install.
    xcode-select --install
    ```

  11. kjbrum revised this gist Apr 16, 2019. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #### SSH Key
    ## SSH Key

    Make sure you have an SSH key setup and added to your Github account.

    @@ -22,12 +22,12 @@ pbcopy < ~/.ssh/id_rsa.pub
    Navigate to https://github.com/settings/keys and add your new SSH key.


    #### .bash_profile
    ## .bash_profile

    Add the contents of the `.bash_profile` file to your local `.bash_profile`


    #### Xcode
    ## Xcode

    > When asked about the command line tools, hit install.
    @@ -36,21 +36,21 @@ xcode-select --install
    ```


    #### Homebrew
    ## Homebrew

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


    #### Git
    ## Git

    ```sh
    brew install git
    ```


    #### Node/npm
    ## Node/npm

    ```sh
    brew install n
    @@ -60,6 +60,6 @@ sudo n lts
    ```


    #### Valet+
    ## Valet+

    Follow these instructions: https://github.com/weprovide/valet-plus#installation
  12. kjbrum created this gist Apr 16, 2019.
    19 changes: 19 additions & 0 deletions .bash_profile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Update the PATH variable
    export PATH="$HOME/.composer/vendor/bin:$PATH"
    export PATH="/usr/local/bin:$PATH"
    export PATH="/usr/local/sbin:$PATH"```
    # Go
    export GOPATH="$HOME/go"
    export GOROOT="$(brew --prefix golang)/libexec"
    export PATH="$GOPATH/bin:$GOROOT/bin:$PATH"
    # Set our Homebrew Cask application directory
    export HOMEBREW_CASK_OPTS="--appdir=/Applications"
    # Add SSH keys to the ssh-agent
    # https://developer.github.com/v3/guides/using-ssh-agent-forwarding/
    # https://confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html
    if [ ! $(ssh-add -l | grep -o -e id_rsa) ]; then
    ssh-add "$HOME/.ssh/id_rsa" > /dev/null 2>&1
    fi
    65 changes: 65 additions & 0 deletions dev-environment-setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,65 @@
    #### SSH Key

    Make sure you have an SSH key setup and added to your Github account.

    To check if you have a key:
    ```sh
    cat ~/.ssh/id_rsa.pub
    ```

    If nothing is printed to the console, that means you don't have a key.
    Generate a key with the following:
    ```sh
    # Just hit enter for all the prompts
    ssh-keygen -t rsa -C "<[email protected]>"
    ```

    Copy your SSH key to your clipboard:
    ```sh
    pbcopy < ~/.ssh/id_rsa.pub
    ```

    Navigate to https://github.com/settings/keys and add your new SSH key.


    #### .bash_profile

    Add the contents of the `.bash_profile` file to your local `.bash_profile`


    #### Xcode

    > When asked about the command line tools, hit install.
    ```sh
    xcode-select --install
    ```


    #### Homebrew

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


    #### Git

    ```sh
    brew install git
    ```


    #### Node/npm

    ```sh
    brew install n
    n lts
    # You might get an error about sudo, if so, run the following
    sudo n lts
    ```


    #### Valet+

    Follow these instructions: https://github.com/weprovide/valet-plus#installation