Skip to content

Instantly share code, notes, and snippets.

View lukeramsden's full-sized avatar

Luke Ramsden lukeramsden

View GitHub Profile
@lukeramsden
lukeramsden / renew-gpgkey.md
Created September 24, 2023 17:13 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@lukeramsden
lukeramsden / README.md
Last active August 2, 2018 13:04 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
curl https://gist.githubusercontent.com/lukeramsden/81e029be19a686261dda4204c8002873/raw/bff6973325b159254a3ba13c5cb9ac8fda8e382b/prepare-commit-msg.sh > ~/.git-hooks/prepare-commit-msg
chmod u+x ~/.git-hooks/prepare-commit-msg
git config --global core.hooksPath ~/.git-hooks