Skip to content

Instantly share code, notes, and snippets.

View silvernode's full-sized avatar

Mollusk silvernode

  • USA
View GitHub Profile
@silvernode
silvernode / build_wire_rpm.sh
Created September 4, 2017 10:51 — forked from soamaven/build_wire_rpm.sh
Bash script to create the rpm for the Wire Desktop app for fc26
# Make a temporary dir to hold downloaded files
mkdir ~/tempwire
cd ~/tempwire
# Get Wire Version
WIRE_VER=$(curl -s -N "https://github.com/wireapp/wire-desktop/releases.atom" | grep -o -m1 ".*Linux.*" | grep -Po "[0-9.]{9}");
# Get latest files from Connor Anderson's Git repo
git clone "https://gitlab.com/ConorIA/wire-builds/repository/archive.tar.gz?ref=master" ~/tempwire
# Get and sort the sources
sed -i "s/<VERSION>/${WIRE_VER}/" wire-desktop.spec
require "proxy"
# get the name of the manager
# let's say it's pacman in our case
pacman = PkgManagerProxy.new("pacman")
pacman.install("tmux")
@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
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...