Skip to content

Instantly share code, notes, and snippets.

View bhcleek's full-sized avatar

Billie Cleek bhcleek

View GitHub Profile
@bhcleek
bhcleek / YubiKey-GPG-SSH-guide.md
Created September 27, 2018 03:11 — forked from ageis/YubiKey-GPG-SSH-guide.md
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate).

@echo off
set SERVER_VERSION=2.32.0
set IESERVER_VERSION=2.32.3
:REM This will update the Selenium Server Windows Service with the most recent Version
:REM of Selenium Server.
:REM
:REM Prerequisits:
:REM * Download Selenium Server to Downloads Folder
:REM * Download IE-Server to Downloads Folder and Unzip to Downloads Folder (using suggested name)
#cloud-config
hostname: core0
ssh_authorized _keys:
- ssh-rsa AAAAB3NzaC1yc2...
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
name: core0
discovery: https://discovery.etcd.io/dead0b52c8704ad95ac9681b4550247e
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@bhcleek
bhcleek / sync.sh
Created January 8, 2013 05:43 — forked from anonymous/sync.sh
Create a directory of hardlinks to files referenced in an m3u playlist.
#/bin/sh
ROOTDIR=/media/storage/sounds
pushd "${ROOTDIR}"
grep -v '^#' music/Checked.m3u | sed -e 's./Volumes/storage/sounds/..' | \
while read TRACK
do
if [ -e "${TRACK}" ]
then