Skip to content

Instantly share code, notes, and snippets.

View mw866's full-sized avatar

Chris Wang mw866

View GitHub Profile
@mw866
mw866 / mcp.sh
Created August 27, 2025 13:08
mcp
mcp dev mcp_server.py
We couldn’t find that file to show.
@mw866
mw866 / psql.sh
Last active August 6, 2024 04:44
#postgres
psql -v sslmode=true --host=xxxx.database.azure.com --port=5432 [email protected] --password
@mw866
mw866 / #launch
Last active November 20, 2023 10:05
multipass
# https://multipass.run/install
multipass launch
multipass start
multipass stop
multipass list
multipass shell
@mw866
mw866 / terraform.sh
Last active September 4, 2024 01:26
#terraform
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
@mw866
mw866 / docs.md
Last active April 10, 2023 08:12
VMware vSphere and Kubernetes
@mw866
mw866 / az.sh
Last active July 8, 2025 12:36
#az #azure
# 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"
# log out of current account
az account logout
@mw866
mw866 / bootstrap.sh
Last active October 21, 2022 09:29
#raspberrypi
#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
@mw866
mw866 / helm.sh
Last active July 10, 2024 06:10
#k8s #kubernetes
# 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