Skip to content

Instantly share code, notes, and snippets.

View pkirkovsky's full-sized avatar

Pavel Kirkovsky pkirkovsky

View GitHub Profile
@pkirkovsky
pkirkovsky / yubikey-reset.sh
Last active September 9, 2024 12:25
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
# Adapted from https://developers.yubico.com/ykneo-openpgp/ResetApplet.html
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40

Keybase proof

I hereby claim:

  • I am pkirkovsky on github.
  • I am pkirkovsky (https://keybase.io/pkirkovsky) on keybase.
  • I have a public key whose fingerprint is 4328 CFD6 7B46 A8FB 3227 0F4F 0CE4 A0B8 3F3F C81F

To claim this, I am signing this object:

@pkirkovsky
pkirkovsky / launch-vscodium-vscode-marketplace-links.md
Last active July 22, 2021 06:52
Launch VSCodium from browser VSCode Marketplace links (Mac OS X)
@pkirkovsky
pkirkovsky / svg-color-extract.sh
Created February 11, 2024 22:50
quickly extract hex color codes from an SVG (combine with curl for remote files!)
# example
curl -s https://www.kirkovsky.com/img/background.svg | grep -oE '#[a-f0-9]{6,}'