Skip to content

Instantly share code, notes, and snippets.

View Fuxy22's full-sized avatar

Norbert Fuksz Fuxy22

View GitHub Profile
@krisleech
krisleech / renew-gpgkey.md
Last active April 22, 2024 20:13
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:

@EspadaV8
EspadaV8 / overrides.css
Last active May 19, 2020 06:58
Dark Laravel Docs theme
body {
color: #ccc;
background: #525252 url("/assets/img/cloud-bar.png") repeat-x;
}
.docs article code[class*="language-"],
.docs article pre[class*="language-"] {
font-size: 14px;
}
@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...