Skip to content

Instantly share code, notes, and snippets.

View robfrawley's full-sized avatar
:octocat:
Insert clever GitHub status entry here...

Rob Frawley 2nd robfrawley

:octocat:
Insert clever GitHub status entry here...
View GitHub Profile

Do not use apt-key add.

apt-key add [filename]

Note: Instead of using this command a keyring should be placed directly in the /etc/apt/trusted.gpg.d/ directory with a descriptive name and either "gpg" or "asc" as file extension.
    — apt-key(8) manpage

@ryanramage
ryanramage / twitter-links.user.js
Created October 7, 2013 16:33
A chrome/greasemonkey script to replace twitter t.co links with the actual links.
@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...