Skip to content

Instantly share code, notes, and snippets.

View svinther's full-sized avatar

Steffen Vinther Sørensen svinther

  • Denmark
View GitHub Profile
@svinther
svinther / gpg.md
Last active March 17, 2024 05:27
Linux commands

Pack and Encrypt - this creates vault.tar and vault.tar.asc from vault directory

tar cf vault.tar vault
gpg --armor --symmetric --cipher-algo AES256 vault.tar

Decrypt and unpack - creates vault.tar and vault directory

gpg -o vault.tar --decrypt vault.tar.asc
#!/bin/bash
HOST=$1
FAIL=0
fail_hook() {
echo $(date) FAIL
}
@svinther
svinther / run-with-pvc.sh
Last active February 4, 2019 14:43 — forked from yuanying/kubectl-run-with-pvc.sh
kubectl run with PVCs
#!/bin/bash
###
### https://gist.github.com/svinther/101d563e8adb14d096326f55e240a55d
###
IMAGE="svinther/docker-armyknife"
COMMAND="/bin/bash"
NAMESPACE=default
SERVICEACCOUNT=