Skip to content

Instantly share code, notes, and snippets.

View exequiel09's full-sized avatar
πŸ‡΅πŸ‡­

Exequiel Ceasar Navarrete exequiel09

πŸ‡΅πŸ‡­
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@exequiel09
exequiel09 / gpg-import-and-export-instructions.md
Created November 1, 2016 23:38 — 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...

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@exequiel09
exequiel09 / gist:9058f979bdf71c6691be
Created October 19, 2014 05:35
Output of brew doctor
exequiel@LkExi-MBP:~
> brew doctor
Your system is ready to brew.
@exequiel09
exequiel09 / gist:5702150c4f334d0db0d6
Created October 19, 2014 05:33
Output of brew install -v /usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56.rb
exequiel@LkExi-MBP:~
> brew install -v /usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56.rb --with-homebrew-openssl --with-homebrew-libxslt --with-phpdbg --with-apache --without-snmp
==> Downloading http://www.php.net/get/php-5.6.2.tar.bz2/from/this/mirror
/usr/bin/curl -fLA Homebrew 0.9.5 (Ruby 2.0.0-481; Mac OS X 10.10) http://www.php.net/get/php-5.6.2.tar.bz2/from/this/mirror -C 0 -o /Library/Caches/Homebrew/php56-5.6.2.incomplete
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0 0 271 0 --:--:-- --:--:-- --:--:-- 271
0 0 0 1 0 0 0 0 --:--:-- 0:00:01 --:--:-- 4
100 12.8M 100 12.8M 0 0 224k 0 0:00:58 0:00:58 --:--:-- 235k
==> Verifying php56-5.6.2 checksum
<?php
phpinfo();