Skip to content

Instantly share code, notes, and snippets.

Jeremy L. Gaddis jlgaddis

Block or report user

Report or block jlgaddis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jlgaddis
jlgaddis / yubikey_gpg-agent_fedora27.md
Last active May 7, 2018
Yubikey + gpg-agent on Fedora 27 (XFCE)
View yubikey_gpg-agent_fedora27.md

Yubikey + gpg-agent (w/ SSH support) on Fedora 27

Note: This assumes that you have already generated your GPG keys (i.e., offline master key + subkeys) and have them in your Yubikey.

Recently, I switched from Arch Linux to Fedora 27 on the hosts that I use daily (my workstation, my "primary" laptop, and a "secondary" laptop). As best as I can recall, here are all of the steps I had to do in order to get things working in addition to some notes ("quoted") that I made at the time.

FWIW, this is greatly "summarized" but I think I've included most of the important bits. It's very possible that I've left out some pieces, though, so feel free to let me know if I've missed something.


@jlgaddis
jlgaddis / bootstrap_openbsd_ansible.sh
Created Aug 2, 2016
Bootstrap OpenBSD so it can be managed by Ansible
View bootstrap_openbsd_ansible.sh
#!/usr/bin/env sh
#
# This script can be executed to bootstrap a clean OpenBSD installation
# so that it can be managed via Ansible.
#
# Enter the root password when prompted (twice)
#
# NB: Assumes $TARGET_HOST has already been added to inventory and
# appropriate groups, and that variables are set as necessary
# (e.g. ansible_become_method, ansible_python_interpreter, etc.)
@jlgaddis
jlgaddis / xenial_zfs_install.txt
Last active Jul 31, 2016
Ubuntu 16.04.1 ("Xenial") Installation with ZFS on Root
View xenial_zfs_install.txt
#
# WFM. YMMV. No purchase necessary. Void where prohibited.
#
# dd if=/dev/zero of=/dev/sda bs=512 count=2048 seek=210996000
# dd if=/dev/zero of=/dev/sda bs=512 count=4096
sgdisk --zap-all /dev/sda
wipefs --all /dev/sda
@jlgaddis
jlgaddis / wipe_zfs_metadata.sh
Last active Jul 24, 2016
Wipe (old) ZFS metadata
View wipe_zfs_metadata.sh
# sysctl kern.disks
kern.disks: da0 ada1 ada0
# zpool import
pool: zroot
id: 15136818735282810090
state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:
You can’t perform that action at this time.