Skip to content

Instantly share code, notes, and snippets.

View haraldsk's full-sized avatar

Harald Skoglund haraldsk

View GitHub Profile
@haraldsk
haraldsk / gist:1e7ba014dc8317c3f4e5f4f1de637598
Created June 15, 2023 12:51
Patch to return debug info from from crossplane-xfn to crossplane container
diff --git a/cmd/xfn/run/run.go b/cmd/xfn/run/run.go
index c2699bf5..a06bc334 100644
--- a/cmd/xfn/run/run.go
+++ b/cmd/xfn/run/run.go
@@ -141,4 +141,4 @@ func networkPolicy(p string) v1alpha1.NetworkPolicy {
default:
return v1alpha1.NetworkPolicy_NETWORK_POLICY_ISOLATED
}
-}
+}
@haraldsk
haraldsk / helm-diff.sh
Created October 28, 2021 12:39
Safely diff helm charts between two cluster contexts
#!/usr/bin/env bash
set -o errexit
set -o nounset
# ./diff-helm $chart $namespace
CHART=${1}
NAMESPACE=${2}
CTX_ONE="coronita"
CTX_TWO="corona"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.autosshtunnel</string>
<key>Program</key>
<string>/Users/harald/bin/autossh.tunnel.sh</string>
<key>RunAtLoad</key>
<true/>
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Array of hosts:port Port is the local port to be forwarded as Socks5
SOCKS5_HOSTS=('bastion-1.something.com:1080' 'bastion2-something.com:1081' )
SSH_MONITOR_PORT_BASE=20000
AUTOSSH_PATH='/usr/local/bin'
PATH="${PATH}:${AUTOSSH_PATH}"

Keybase proof

I hereby claim:

  • I am haraldsk on github.
  • I am skoglund (https://keybase.io/skoglund) on keybase.
  • I have a public key whose fingerprint is 0D45 F875 4286 2434 A6E0 A26D 11BA 1AB4 AAA8 6B94

To claim this, I am signing this object: