Skip to content

Instantly share code, notes, and snippets.

@hpurmann
hpurmann / secret.template.yaml
Last active Jun 10, 2019
Update all sealed secrets by manually converting the `data` value to base64 before running `kubeseal`
View secret.template.yaml
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 Oct 8, 2016
Backup and symlink dotfiles
View install
#!/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
View tex2png
#!/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 Mar 30, 2015
My keybase proof.
View keybase.md

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:

You can’t perform that action at this time.