- Do
sudo su - Copy-paste the script (it will reboot the machine)
NOTE: I am using with with Vagrat's shell provisioner as it is easier (with privileged execution).
| # 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:
Thanks Microsoft...
| - 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| 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 |
| 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) |