Skip to content

Instantly share code, notes, and snippets.

View willfarrell's full-sized avatar

will Farrell willfarrell

View GitHub Profile
@willfarrell
willfarrell / localhost
Last active August 14, 2019 04:01
A localhost with gzip, http/2, TLS
# localhost.py
#
# brew install mkcert python3
# mkcert -install
# > Add cert to trusted keychain
# mkcert localhost 127.0.0.1 ::1
#
# pip3 install service_identity pyopenssl twisted[http2]
#
# DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
@willfarrell
willfarrell / gpg-keygen.sh
Last active February 28, 2018 05:35 — forked from seamustuohy/trampgpg.sh
temporary travel GPG key generation script
#!/bin/bash
#==========================
# For writing to help file.
#==========================
write_help_header()
{
echo "## $1" >> $TMPDIR/README.md
}
@willfarrell
willfarrell / ssh-keygen.sh
Last active June 17, 2018 22:14
Generate all SSH key pairs
#! /bin/bash
# Use Examples
# ./ssh-keygen Additional comments
# ./ssh-keygen "(Work)"
ROUNDS=100
if hash networksetup 2>/dev/null; then
# Mac only: Computer Name
COMMENT="$(networksetup -getcomputername) $@"