Skip to content

Instantly share code, notes, and snippets.

View chuckntaylor's full-sized avatar

Charles Taylor chuckntaylor

View GitHub Profile
chuckntaylor / swiftyUtilityFunctions.swift
Last active June 14, 2019 16:00
Swift utility functions
View swiftyUtilityFunctions.swift
// Degrees to Radians
func degreesToRadians(_ number: Double) -> Double {
return number * .pi / 180
// Radians to Degrees
func radiansToDegrees(_ number: Double) -> Double {
return number / Double.pi * 180
chuckntaylor /
Last active November 16, 2021 02:39
Remove GPG Yubikey, and enable another one

[OPTIONAL] list the keygrip IDs using

gpg --list-secret-keys --with-keygrip

If ALL your private keys are on external cards like the Yubikey, you can delete them all using:

rm -r ~/.gnupg/private-keys-v1.d