Skip to content

Instantly share code, notes, and snippets.

View pkirkovsky's full-sized avatar

Pavel Kirkovsky pkirkovsky

View GitHub Profile
@pkirkovsky
pkirkovsky / AOOSTAR_WTR_PRO_AMD_5825U_iommu.txt
Last active March 23, 2025 15:29
AOOSTAR WTR PRO AMD 5825U IOMMU groups
Group 0: [1022:1632] 00:01.0 Host bridge Renoir PCIe Dummy Host Bridge
Group 1: [1022:1633] [R] 00:01.1 PCI bridge Renoir PCIe GPP Bridge
Group 2: [1022:1634] [R] 00:01.3 PCI bridge Renoir/Cezanne PCIe GPP Bridge
Group 3: [1022:1632] 00:02.0 Host bridge Renoir PCIe Dummy Host Bridge
Group 4: [1022:1634] [R] 00:02.1 PCI bridge Renoir/Cezanne PCIe GPP Bridge
Group 5: [1022:1634] [R] 00:02.2 PCI bridge Renoir/Cezanne PCIe GPP Bridge
Group 6: [1022:1633] [R] 00:02.4 PCI bridge Renoir PCIe GPP Bridge
Group 7: [1022:1632] 00:08.0 Host bridge Renoir PCIe Dummy Host Bridge
Group 8: [1022:1635] [R] 00:08.1 PCI bridge Renoir Internal PCIe GPP Bridge to Bus
Group 9: [1022:1635] [R] 00:08.2 PCI bridge Renoir
@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,}'
@pkirkovsky
pkirkovsky / launch-vscodium-vscode-marketplace-links.md
Last active December 31, 2024 09:14
Launch VSCodium from browser VSCode Marketplace links (Mac OS X)

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 / yubikey-reset.sh
Last active February 28, 2025 10:02
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