Skip to content

Instantly share code, notes, and snippets.

View davosian's full-sized avatar

Dennis Staiger davosian

  • Ennovations.net
View GitHub Profile
@davosian
davosian / remove-gpg-user.sh
Created February 18, 2021 22:13 — 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.
@davosian
davosian / fix_onedrive.sh
Created December 1, 2020 09:14 — forked from drblue/fix_onedrive.sh
Fix OneDrive for Mac CPU usage
#!/bin/bash
## Fix OneDrive for Mac CPU usage
##
## Seems this is still a problem 5 years later after I created this little gist.
## I have long since stopped using OneDrive (luckily), but according to
## comments below, I have added the new path for OfficeFileCache for macOS
## Mojave (10.14) and Catalina (10.15).
## Run this on macOS Mojave (10.14) and Catalina (10.15)
find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} +
@davosian
davosian / cert.yml
Created October 23, 2020 12:21 — forked from Johannestegner/cert.yml
CertManagerExample
apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: eu.jite.wildcard.crt
namespace: default
spec:
secretName: eu.jite.wildcard.tls
dnsNames:
- "jite.eu"
- "*.jite.eu"
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'