Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄
Engineering something

Chris Suszynski cardil

🦄
Engineering something
View GitHub Profile
@cardil
cardil / JEP.md
Last active Jul 9, 2020
[Draft] JEP - Change name of imported type (aliasing)
View JEP.md

Summary

Change name of imported type (aliasing)

Goals

The goal is to make code more productive and clean in cases where multiple classes with same name must be used in code. It should relief a developers frustration in that

@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created Sep 9, 2011
Instructions for exporting/importing (backup/restore) GPG keys
View gpg-import-and-export-instructions.md

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...
You can’t perform that action at this time.