Skip to content

Instantly share code, notes, and snippets.

View CyJimmy264's full-sized avatar
💚

Maksim Veynberg CyJimmy264

💚
View GitHub Profile
@CyJimmy264
CyJimmy264 / gpg-import-and-export-instructions.md
Created June 14, 2018 08:32 — 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...

@CyJimmy264
CyJimmy264 / v8js.sh
Created January 18, 2018 11:48 — forked from igez/v8js.sh
Install V8js php extension on ubuntu
#!/bin/bash
sudo apt-get update -o Acquire::ForceIPv4=true
sudo apt-get install -y build-essential chrpath git -o Acquire::ForceIPv4=true
cd /tmp
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"