Skip to content

Instantly share code, notes, and snippets.

View jcmendez's full-sized avatar

Juan Carlos Mendez jcmendez

View GitHub Profile
@jcmendez
jcmendez / keybase.md
Last active December 24, 2021 20:14 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

enum Suit {}
enum Rank: Int {}
// In the example, let's say the Card is CustomStringConvertible so I can leverage all the external code
// that prints stuff, and depends on using the var description
struct Card : CustomStringConvertible {
var rank: Rank
var suit: Suit
var description : String {