Skip to content

Instantly share code, notes, and snippets.

View fullofcaffeine's full-sized avatar

Marcelo Serpa fullofcaffeine

View GitHub Profile
@fullofcaffeine
fullofcaffeine / gpg-import-and-export-instructions.md
Created June 13, 2017 03:09 — 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...

@fullofcaffeine
fullofcaffeine / encrypted-git-repo.md
Created June 12, 2017 01:56
Transparent Git Encryption

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 October 16, 2016 22:02 — forked from rehno-lindeque/NixSetup.md
NixOS Setup (Virtualized + Haskell + Gnome3 + XMonad)
@fullofcaffeine
fullofcaffeine / application.controller.js
Last active September 23, 2015 02:06
routing issue
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
#!/usr/bin/ruby
require 'rubygems'
require 'ruby-debug'
if $0 =~ /superman\z/
init_filter = ARGV[0]
if init_filter
ARGV.replace(["--init-filter=#{init_filter}",
File.expand_path("~/.supermegadoc/man.cdb")])
else