Skip to content

Instantly share code, notes, and snippets.

View Scorcerer's full-sized avatar

Adam Scorcerer

  • Transporeon Sp. z o.o.
  • Kraków, Poland
View GitHub Profile
@Scorcerer
Scorcerer / remove-gpg-user.sh
Created November 15, 2022 16:44 — forked from glogiotatidis/remove-gpg-user.sh
Git-crypt remove user.
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
#
# Print all possible candidates for virtualenv relative to the directory $1.
# Used in venv_find() for every directory starting from the current and up to the root.
#
function venv_candidates () {
echo $1
echo $1/.venv
echo $1/VENV
echo $1/ENV
echo $1.venv