Needs git and gh.
Add to .bashrc
github() {
#!/bin/bash | |
subscriptionId=$(az account show --query id --output tsv) | |
read -r -d '' policyRule <<'EOF' | |
{ | |
"if": { | |
"allOf": [ | |
{ | |
"field": "type", |
" Vim color file | |
" Maintainer: Richard Cheney (from delek.vim) | |
" Last Change: 2018 Apr 09 | |
hi clear | |
let g:colors_name = "cloudshell" | |
" Normal should come first | |
hi Normal guifg=Black guibg=White |
#!/bin/bash | |
################################################################################################### | |
## Loop through stdin of ARM resource compliant policy files | |
## Example format is | |
## https://github.com/richeney/azure-blueprints/blob/master/policies/auditemptytag.json | |
## Requires az and jq | |
## Can use unpathed URIs if you have exported URIBASE | |
################################################################################################### | |
error() |
#/bin/bash | |
error() | |
{ | |
[[ -n "$@" ]] && echo "ERROR: $@" >&2 | |
exit 1 | |
} | |
urlencode() { | |
# urlencode <string> |
#!/bin/bash | |
###################################################### | |
# Utility script to download latest Hashicorp | |
# binaries and move into /usr/local/bin. Uses their | |
# releases APIs. | |
# | |
# Requires sudo password unless sudoers is configured. | |
# | |
# Can be renamed to installLatestTerraform.sh or | |
# installLatestPacker.sh. If not then specify |
https://www.azurecitadel.com/arc/servers/access_vms/#code-tunnels
wget https://code.visualstudio.com/sha/download?build=stable\&os=cli-alpine-x64 -O /tmp/code.tar.gz
sudo tar -zxvf /tmp/code.tar.gz -C /usr/local/bin && rm /tmp/code.tar.gz
code tunnel --name $(hostname) --accept-server-license-terms
Settings | Network & Internet | Ethernet/WiFi | DNS server assignment | Edit
Add automatic templates:
netsh dns add encryption server=1.1.1.3 dohtemplate=https://cloudflare-dns.com/dns-query
netsh dns add encryption server=1.0.0.3 dohtemplate=https://cloudflare-dns.com/dns-query
netsh dns add encryption server=2606:4700:4700::1113 dohtemplate=https://cloudflare-dns.com/dns-query