Skip to content

Instantly share code, notes, and snippets.

Avatar

Marcelo Serpa fullofcaffeine

View GitHub Profile
@fullofcaffeine
fullofcaffeine / gpg-import-and-export-instructions.md
Created Jun 13, 2017 — forked from chrisroos/gpg-import-and-export-instructions.md
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...
@fullofcaffeine
fullofcaffeine / encrypted-git-repo.md
Created Jun 12, 2017
Transparent Git Encryption
View encrypted-git-repo.md

Transparent Git Encryption

This document has been modified from its [original format][m1], which was written by Ning Shang (geek@cerias.net). It has been updated and reformatted into a [Markdown][m2] document by [Woody Gilk][m3] and [republished][m4].

Description

When working with a remote git repository which is hosted on a third-party storage server, data confidentiality sometimes becomes

@fullofcaffeine
fullofcaffeine / NixSetup.md
Created Oct 16, 2016 — forked from rehno-lindeque/NixSetup.md
NixOS Setup (Virtualized + Haskell + Gnome3 + XMonad)
View NixSetup.md
You can’t perform that action at this time.