Run HTTP Server on Port 8080
python3 -m http.server 8080
Kubectl Show Specific Columns
kubectl get sts -o custom-columns=NAME:.metadata.name
Base64 Disable Line Wrapping
echo "some long string" | base64 -w 0
jq select / concat multiple field
kubectl get deploy -o json | jq -r '.items[].metadata.labels | .label1 +" " + .label2'
Debugging pod using ephemeral container
kubectl debug -it <pod_name> --target=<target_container> --image=<image>
(cont.) Debugging pod using ephemeral container: accessing the target container's environ
cat /proc/1/environ | tr '\0' '\n'
Add trusted cert arch
sudo trust anchor --store <path-to-cert>
GH Action Manually modify status
gh api repos/<owner>/<repo>/statuses/<head_sha> -f state=success -f context="SonarQube Code Analysis" -f description="Quality gate passed" -f target_url="https://sonarqube.deliverect.com/dashboard?id=marketplace-optimization&pullRequest=1950"