Skip to content

Instantly share code, notes, and snippets.

@synkarius
synkarius / gpg-import-and-export-instructions.md
Created July 7, 2020 01:16 — forked from chrisroos/gpg-import-and-export-instructions.md
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...

@synkarius
synkarius / Examples.md
Created July 17, 2016 03:02 — forked from chilimangoes/Examples.md
Caster example(s)

In the following examples, a comma separates commands that can be strung together into a single utterance, while a semicolon separates commands that must be said as separate utterances (because either the previous or next phrase is not a CCR command).

Example 1:

Dictate the following JavaScript function.

@synkarius
synkarius / . symbol matching algorithm comparison
Last active November 6, 2015 01:03
symbol matching algorithm comparison
ACTUAL COMMON ABBREVIATED SYMBOLS TEST
========================================
ALGO RANKS TARGET AS:
========================================
caster 1st (tied 2-way)
difflib/Levenshtein 1st
sift4 3rd (tied 4-way)
========================================
Caster/Dragonfly Grammar Complexity Report v2
===============================
cycles: 1 | ccrm: 18 | specs: 2 | choice-500s: 2 | elements: 4786 | broke: False
cycles: 2 | ccrm: 18 | specs: 2 | choice-500s: 4 | elements: 8750 | broke: False
cycles: 3 | ccrm: 18 | specs: 2 | choice-500s: 6 | elements: 12714 | broke: False