Skip to content

Instantly share code, notes, and snippets.

View rgregg's full-sized avatar

Ryan Gregg rgregg

  • Microsoft
  • Seattle, WA
View GitHub Profile
#!/bin/bash
# Changes exmaple.com to use nip, which is DNS magic for any IP address
export EXTERNAL_IP=$(kubectl get svc istio-ingressgateway -n istio-system -o jsonpath='{.status.loadBalancer.ingress.*.ip}')
kubectl patch cm config-domain -n knative-serving -p "{\"data\": { \"${EXTERNAL_IP}.nip.io\": \"\" }}"
@rgregg
rgregg / update-version.sh
Created August 3, 2021 05:17
Update Minecraft FTB/ATM6 docker containers to the latest version
#!/bin/bash
if [ $# -eq 0 ]
then
echo "No arguments supplied. Must specify the version for the upgrade."
exit 1
fi
new_version=$1