Skip to content

Instantly share code, notes, and snippets.

@nei
Last active July 16, 2019 16:04
Show Gist options
  • Select an option

  • Save nei/d111ea7172ab134ee4ce5f7055d5927d to your computer and use it in GitHub Desktop.

Select an option

Save nei/d111ea7172ab134ee4ce5f7055d5927d to your computer and use it in GitHub Desktop.

Revisions

  1. nei revised this gist Jul 16, 2019. 1 changed file with 10 additions and 12 deletions.
    22 changes: 10 additions & 12 deletions src-external-case-sensitive
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,13 @@
    ## Steps used to setup the ~/src

    These are how I setup my src folder as case-sensitive on an external drive due to my shitty 128Gb macbook.

    ## Create a virtual disk on my external hard drive
    1. Create a virtual disk on my external hard drive

    Install the script https://gist.github.com/scottsb/479bebe8b4b86bf17e2d

    mkdir /Volumes/SAMSUNG/disks/
    ```
    /usr/local/bin/casesafe.sh config
    /usr/local/bin/casesafe.sh create
    /usr/local/bin/casesafe.sh mount
    ```
    ## Setup ~/src as a case-sentive on the external drive
    ```

    1.1. Review config

    ➜ src /usr/local/bin/casesafe.sh config
    The behavior of the script may be modified by seting the following environment variables.
    If not set the script will use sane defaults.
    @@ -33,7 +27,11 @@ CASE_SAFE_VOLUME_NAME
    CASE_SAFE_VOLUME_SIZE
    Maximum size of volume (will auto-grow up to this)
    Current effective value: 100g
    ```
    ## Run Strap
    ----

    /usr/local/bin/casesafe.sh create
    /usr/local/bin/casesafe.sh mount

    2. Run Strap

    STRAP_GIT_NAME="Nei Santos" STRAP_GIT_EMAIL="xxxx" STRAP_GITHUB_USER="nei" STRAP_GITHUB_TOKEN="xxxx" ~/src/strap/bin/strap.sh
  2. nei revised this gist Jul 16, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion src-external-case-sensitive
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    These are how I setup my src folder as case-sensitive on an external drive due to my shitty 128Gb macbook.
    ## Steps used to setup the ~/src

    These are how I setup my src folder as case-sensitive on an external drive due to my shitty 128Gb macbook.

    ## Create a virtual disk on my external hard drive

  3. nei renamed this gist Jul 16, 2019. 1 changed file with 0 additions and 0 deletions.
  4. nei created this gist Jul 16, 2019.
    38 changes: 38 additions & 0 deletions Instructions on how I setup dev space
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    These are how I setup my src folder as case-sensitive on an external drive due to my shitty 128Gb macbook.


    ## Create a virtual disk on my external hard drive

    Install the script https://gist.github.com/scottsb/479bebe8b4b86bf17e2d

    mkdir /Volumes/SAMSUNG/disks/
    ```
    /usr/local/bin/casesafe.sh config
    /usr/local/bin/casesafe.sh create
    /usr/local/bin/casesafe.sh mount
    ```
    ## Setup ~/src as a case-sentive on the external drive
    ```
    ➜ src /usr/local/bin/casesafe.sh config
    The behavior of the script may be modified by seting the following environment variables.
    If not set the script will use sane defaults.

    CASE_SAFE_MOUNT_POINT
    Location where case-sensitive volume will be mounted
    Current effective value: //Users/neisantos/src

    CASE_SAFE_VOLUME_PATH
    Location where image file should be stored
    Current effective value: /Volumes/SAMSUNG/disks/.casesafe.dmg.sparseimage

    CASE_SAFE_VOLUME_NAME
    Name of case-sensitive workspace as visible in macOS Finder app
    Current effective value: src

    CASE_SAFE_VOLUME_SIZE
    Maximum size of volume (will auto-grow up to this)
    Current effective value: 100g
    ```
    ## Run Strap

    STRAP_GIT_NAME="Nei Santos" STRAP_GIT_EMAIL="xxxx" STRAP_GITHUB_USER="nei" STRAP_GITHUB_TOKEN="xxxx" ~/src/strap/bin/strap.sh