Skip to content

Instantly share code, notes, and snippets.

View dervoeti's full-sized avatar

Lukas Voetmand dervoeti

View GitHub Profile
@dervoeti
dervoeti / keepass-secret-tool.md
Last active May 12, 2020 12:09
KeepassXC secret as cli parameter

KeepassXC secret as cli parameter

I didnt want DigitalOcean's doctl to store my accesstoken in its config.yaml file, since i have all secrets regarding technical infrastructure in a seperate KeepassXC database. So even though my harddrive is encrypted, i didnt want an accesstoken gaining full access to my DigitalOcean account laying around in some .yaml file.

doctl has a -t option to pass in the accesstoken as a parameter. So as a first step, i had to get the accesstoken from my unlocked KeepassXC database.

Reading secrets with secret-tool

  • Unlock your KeepassXC database
  • (optional) Create a new group for secrets you want to expose to secret-tool and add the secrets to this group
@dervoeti
dervoeti / xfce-no-brackets.sh
Created August 13, 2019 09:04
Disable brackets on minimized windows in Xfce 4.14
xfconf-query -c xfce4-panel -t bool -s false -n -p $(xfconf-query -l -c xfce4-panel -v | grep -P "^/plugins/plugin-\d+\s+tasklist$" | awk '{print $1"/label-decorations"}')