Skip to content

Instantly share code, notes, and snippets.

@charmparticle
charmparticle / fido2_u2p_fingerprint_setup_in_linux.md
Last active April 8, 2026 01:36
setting up the atkey.pro usb fingerprint reader in linux -- this should also work for any fido2 u2p usb fingerprint reader; maybe even those $20 ones.

First, check that the device can be seen by your OS:

lsusb
dmesg

if it appears in dmesg but not lsusb, you might need to plug it directly into a usb port rather than in a usb hub. For some reason when I did this, and then switched it back to the usb hub, lsusb could see it again. I don't understand why, but this might work for you also.

@charmparticle
charmparticle / xidel -> xpe behavior
Created May 11, 2025 23:42
xidel is faster than xpe, so I use this instead
#!/bin/bash
show_help(){
echo "invocation:
$0 <file> <xpath>
or
cat <file> | $0 <xpath>
examples:
cat file.html | $0 '//a/@href'
$0 '//a/@href' file.html
$0 file.html '//a/@href'