Skip to content

Instantly share code, notes, and snippets.

@hpurmann
hpurmann / secret.template.yaml
Last active June 10, 2019 15:22
Update all sealed secrets by manually converting the `data` value to base64 before running `kubeseal`
apiVersion: v1
kind: Secret
metadata:
name: mysecret
namespace: production
type: Opaque
data:
config.yml: |
database:
username: {{ vault "secret/database" "username" }}
@hpurmann
hpurmann / install
Last active October 8, 2016 05:47
Backup and symlink dotfiles
#!/bin/bash
dir=~/dotfiles
olddir=~/dotfiles_old
files="tmux.conf tmux zshrc zlogin gitconfig oh-my-zsh tern-config tmuxinator"
files_xdg="nvim"
function create_backup_dir {
echo "Creating backup dir"
mkdir -p $olddir
@hpurmann
hpurmann / tex2png
Created April 6, 2015 19:01
Convert tex to png, per folder or per file. http://hpurmann.com/2015/04/12/gitdags-my-workflow/
#!/bin/bash
texPath="_graphs"
outPath="graphimages"
tmpPath="tmp"
png_density="300"; # convert -density
png_quality="90"; # convert -quality
function convert_file {
f=${1}
@hpurmann
hpurmann / keybase.md
Created March 30, 2015 21:35
My keybase proof.

Keybase proof

I hereby claim:

  • I am hpurmann on github.
  • I am hpurmann (https://keybase.io/hpurmann) on keybase.
  • I have a public key whose fingerprint is 6A01 07D1 092D CEDB 1D86 CD29 1DEA E150 28C7 B5AE

To claim this, I am signing this object: