Last active
September 9, 2024 19:21
-
-
Save dzuluaga/bc15dced36a2011efb523f7bb8f96bfb to your computer and use it in GitHub Desktop.
Revisions
-
Diego Zuluaga revised this gist
Feb 21, 2019 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
Diego Zuluaga revised this gist
Feb 21, 2019 . 1 changed file with 17 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ```bash $ curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o ngrok-stable-linux-amd64.zip ``` ### 2. Unzip ngrok ```bash $ unzip ngrok-stable-linux-amd64.zip ``` ### 3. Start ngrok ```bash $ ./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** ## 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.** -
Diego Zuluaga revised this gist
Feb 21, 2019 . 1 changed file with 10 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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** -
Diego Zuluaga revised this gist
Feb 21, 2019 . 1 changed file with 11 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. 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** -
Diego Zuluaga revised this gist
Feb 21, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. -
Diego Zuluaga renamed this gist
Feb 21, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Diego Zuluaga renamed this gist
Feb 21, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Diego Zuluaga created this gist
Feb 21, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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**