- Emulation (Not virtualization)
- Hardware: x86_64
- Directoruy Share Mode: VirtFS (https://docs.getutm.app/guest-support/linux/#virtfs)
- Network Mode: Emulated VLAN
- Port Fowarding: TCP 22:22
- CD/DVD: Download the ISO of Ubuntu Server x64 (https://ubuntu.com/download/server)
This file contains 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
psql -v sslmode=true --host=xxxx.database.azure.com --port=5432 [email protected] --password |
This file contains 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
# https://multipass.run/install | |
multipass launch | |
multipass start | |
multipass stop | |
multipass list | |
multipass shell |
This file contains 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
terraform graph | dot -Tsvg > graph.svg | |
terraform plan -out=FILENAME | |
terraform init -upgrade | |
terraform get -update | |
# all state | |
terraform show | |
# specific state | |
terraform state show | |
terraform state list |
Overview
- Kubernetes on vSphere With Tanzu: https://www.wwt.com/article/primer-series-kubernetes-on-vsphere-with-tanzu
vSphere
ESXi
- ESXi Arm Edition: https://flings.vmware.com/esxi-arm-edition
vCenter
This file contains 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
# https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli | |
az login | |
#https://learn.microsoft.com/en-us/cli/azure/manage-azure-subscriptions-azure-cli#change-the-active-subscription | |
az account show | |
az account list | |
az account tenant list | |
az account set --subscription "My Demos" | |
# https://learn.microsoft.com/en-us/cli/azure/interactive-azure-cli |
This file contains 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
#on client | |
sudo vim cat .ssh/id_ed25519.pub | |
#on pi paste the public key | |
sudo vim .ssh/authorized_keys | |
# (optional) rename the hostname | |
sudo vim /etc/hostname | |
sudo vim /etc/hosts |
This file contains 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
# https://helm.sh/docs/intro/using_helm/ | |
helm list | |
helm list -Aa # all NS all filter | |
helm get values <releasename> -n <namespace> | |
helm repo update | |
helm version --short | |
helm repo add wiz.io https://xxxx | |
helm pull xxxx | |
helm install test xxx --values xxx.yaml |
This file contains 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
show dbs | |
use testdb | |
db.dropDatabase() | |
db.test.find( {} ) | |
db.test.remove({ "_id" : ObjectId("622fe6b767d3cd1a9e5d5eec") }) |
This file contains 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
window.location.href = 'https://www.example.com'; | |
location.href; | |
document.body.innerHTML; |
NewerOlder