Skip to content

Instantly share code, notes, and snippets.

@dzuluaga
Last active September 9, 2024 19:21
Show Gist options
  • Save dzuluaga/bc15dced36a2011efb523f7bb8f96bfb to your computer and use it in GitHub Desktop.
Save dzuluaga/bc15dced36a2011efb523f7bb8f96bfb to your computer and use it in GitHub Desktop.

Revisions

  1. Diego Zuluaga revised this gist Feb 21, 2019. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions install-ngrok-on-google-cloud-shell.md
    Original file line number Diff line number Diff line change
    @@ -30,6 +30,14 @@ Connections ttl opn rt1 rt5 p50 p90
    0 1 0.00 0.00 0.00 0.00
    ```

    #### 4. You're good to go
    You can start making http requests to an API running in Google Cloud Shell.
    ```bash
    $ curl https://d0045428.ngrok.io/api/events

    [{"id":"AoG","title":"Actions on Google","description":null,"details":null,"date":null,"startTime":null,"endTime":null,"categories":["free","outdoor","family-friendly"],"icon":null,"image":null,"website":null,"active":true},{"id":"I9hy6idIeBr9M9ajRYrW","title":"KubeCon","description":null,"details":null,"date":null,"startTime":null,"endTime":null,"categories":["technical","external"],"icon":null,"image":null,"website":null,"active":false},{"id":"Y9FCCW4knkm93EIXqrYZ","title":"DevRel Conference","description":null,"details":null,"date":null,"startTime":null,"endTime":null,"categories":["free"],"icon":null,"image":null,"website":null,"active":false},{"id":"next2019","title":"Google Next 2019","description":"All customers, partners, and Google in a single location.","details":null,"date":null,"startTime":null,"endTime":null,"categories":null,"icon":null,"image":null,"website":null,"active":false}]%
    ```

    **For other versions of ngrok visit https://ngrok.com/download**

    ## Optional steps
  2. Diego Zuluaga revised this gist Feb 21, 2019. 1 changed file with 17 additions and 5 deletions.
    22 changes: 17 additions & 5 deletions install-ngrok-on-google-cloud-shell.md
    Original file line number Diff line number Diff line change
    @@ -2,22 +2,22 @@

    These steps will surface a public endpoint through ngrok with no authentication.

    1. Download ngrok
    ### 1. Download ngrok

    ```bash
    $ curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip
    ```

    2. Unzip ngrok
    ### 2. Unzip ngrok

    ```bash
    $ unzip ngrok-stable-linux-amd64.zip
    ```

    3. Start ngrok
    ### 3. Start ngrok

    ```bash
    $ ./ngrok http 80
    $ ./ngrok http 8080

    Session Status online
    Session Expires 7 hours, 58 minutes
    @@ -30,4 +30,16 @@ Connections ttl opn rt1 rt5 p50 p90
    0 1 0.00 0.00 0.00 0.00
    ```

    **For other versions of ngrok visit https://ngrok.com/download**
    **For other versions of ngrok visit https://ngrok.com/download**

    ## Optional steps

    ### 4. Use ngrok token
    As oper ngrok site. `Running this command will add your account's authtoken to your ngrok.yml file. This will give you more features and all open tunnels will be listed here in the dashboard.`

    ```bash
    $ ./ngrok authtoken My_Token_from_ngrok.com
    ```

    ## Disclaimer
    **My personal recommendation is to use this tool for experimental and personal projects. Therefore, I use Google Cloud Shell Project from GMail personal account that has no connectivity with any production environment, therefore it's not prone to any security issues.**
  3. Diego Zuluaga revised this gist Feb 21, 2019. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions install-ngrok-on-google-cloud-shell.md
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,16 @@ $ unzip ngrok-stable-linux-amd64.zip

    ```bash
    $ ./ngrok http 80

    Session Status online
    Session Expires 7 hours, 58 minutes
    Version 2.2.8
    Region United States (us)
    Web Interface http://127.0.0.1:4040
    Forwarding http://42daf0b7.ngrok.io -> localhost:8080
    Forwarding https://42daf0b7.ngrok.io -> localhost:8080
    Connections ttl opn rt1 rt5 p50 p90
    0 1 0.00 0.00 0.00 0.00
    ```

    **For other versions of ngrok visit https://ngrok.com/download**
  4. Diego Zuluaga revised this gist Feb 21, 2019. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion install-ngrok-on-google-cloud-shell.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,16 @@ These steps will surface a public endpoint through ngrok with no authentication.
    $ curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip
    ```

    2.
    2. Unzip ngrok

    ```bash
    $ unzip ngrok-stable-linux-amd64.zip
    ```

    3. Start ngrok

    ```bash
    $ ./ngrok http 80
    ```

    **For other versions of ngrok visit https://ngrok.com/download**
  5. Diego Zuluaga revised this gist Feb 21, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions install-ngrok-on-google-cloud-shell.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,9 @@ These steps will surface a public endpoint through ngrok with no authentication.

    1. Download ngrok

    ```bash
    $ curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip
    ```

    2.

  6. Diego Zuluaga renamed this gist Feb 21, 2019. 1 changed file with 0 additions and 0 deletions.
  7. Diego Zuluaga renamed this gist Feb 21, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. Diego Zuluaga created this gist Feb 21, 2019.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # How to install ngrok in Google Cloud Shell

    These steps will surface a public endpoint through ngrok with no authentication.

    1. Download ngrok

    $ curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip

    2.

    **For other versions of ngrok visit https://ngrok.com/download**