Skip to content

Instantly share code, notes, and snippets.

View OliPelz's full-sized avatar

Oliver Pelz OliPelz

View GitHub Profile
@OliPelz
OliPelz / setup-passhole.sh
Created March 22, 2023 07:58
prepare vanilla zsh system for passhole
#!/bin/bash
mkdir ~/.venv
python3 -m venv ~/.venv
source ~/.venv/bin/activate
echo 'source ~/.venv/bin/activate' >> ~/.zshrc
pip3 install --upgrade pip
pip3 install passhole
@OliPelz
OliPelz / extract-ssh-keys.sh
Last active March 22, 2023 12:49
load all ssh keys from keepass/passhole and store in local ssh keys
#!/bin/bash
set -e
mkdir -p ~/.ssh
chmod 700 ~/.ssh
echo -n Enter password to decrypt keepass file:
read -s keepass_password
# load keepass db for the first time so we can set a password