Go find something better to do, creep.
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 characters
| # thereisnotime v1 | |
| # Secrets and credentials | |
| *.env | |
| .env.* | |
| secrets.* | |
| credentials.* | |
| *.key | |
| *.pem | |
| *.crt |
If you get the error "The workbench failed to connect to the server (Error: Connection error: Unauthorized client refused: auth mismatch)" when trying to connect from one VS Code instance to VS Code tunnel on another machine do the following workaround:
- Open the remote URL in the browser.
- Close the tab few times before "Yes I Trust" popup appears, press it.
- Done. Now you can again use the desktop version to connect to a tunnel.
Thanks Microsoft...
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 characters
| - name: Prepare | Secrets | |
| id: prep_secret | |
| run: echo "::set-output name=LAMBDA_SECRET_NAME::LAMBDA_$(echo '${{ github.event.inputs.lambda_name }}' | tr '[:lower:]' '[:upper:]')_ENV" | |
| - name: Setup | Serverless Secret Config | |
| # Write a big ENV secret to a .env file | |
| run: | | |
| echo "${{ secrets[steps.prep_secret.outputs.LAMBDA_SECRET_NAME] }}" >> .env | |
| - name: Deploy | Update Lambda Secrets |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
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 characters
| cd /tmp | |
| sudo wget https://download.anydesk.com/linux/anydesk_6.1.0-1_amd64.deb | |
| sudo dpkg -i anydesk_6.1.0-1_amd64.deb | |
| sudo apt install -f | |
| sudo apt update | |
| anydesk |
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 characters
| function Set-PrivateKeyPermissions { | |
| param ( | |
| [string]$KeyLocation | |
| ) | |
| if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
| Write-Error "Must run as administrator. Exiting..." | |
| Return | |
| } | |
| $acl = Get-Acl "$KeyLocation" | |
| $currentUser = New-Object System.Security.Principal.Ntaccount($acl.owner) |