Skip to content

Instantly share code, notes, and snippets.

View kvberge's full-sized avatar

Kevin Vanden Berge kvberge

  • Michigan
View GitHub Profile
@kvberge
kvberge / tmux-cheatsheet.markdown
Created January 11, 2017 19:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kvberge
kvberge / gpg-import-and-export-instructions.md
Created May 10, 2016 19:10 — 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...