Skip to content

Instantly share code, notes, and snippets.

View Shinzu's full-sized avatar

Markus Shinzu

  • Zalando SE
  • Berlin
View GitHub Profile
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# fork from https://gist.github.com/sindresorhus/7996717
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && echo " * changes detected in $1" && echo " * running $2" && eval "$2"
}
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` or `git checkout` if a specified file was changed
# Run `chmod +x post-checkout` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id HEAD@{1} HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && echo " * changes detected in $1" && echo " * running $2" && eval "$2"
#!/usr/bin/env bash
RECIPIENTS=""
PWD=$( pwd )
for FILE in $( find $PWD -type f -name '*gpg-id*' ); do
RECIPIENTS+=$( cat $FILE | tr '\r\n' ' ' )
done
gpg -a --export $RECIPIENTS > .recipients.asc

Keybase proof

I hereby claim:

  • I am Shinzu on github.
  • I am shinzu (https://keybase.io/shinzu) on keybase.
  • I have a public key whose fingerprint is F6E4 7782 0236 C670 51EA 2A4D 60FA 9FD3 B2E3 6B26

To claim this, I am signing this object:

---
apiVersion: v1
kind: ConfigMap
metadata:
name: cilium-config
namespace: kube-system
data:
# This etcd-config contains the etcd endpoints of your cluster. If you use
# TLS please make sure you uncomment the ca-file line and add the respective
# certificate has a k8s secret, see explanation below in the comment labeled