Skip to content

Instantly share code, notes, and snippets.

@goodell
goodell / README.md
Created August 4, 2026 21:23
Repro scripts for duplicate React keys in gloomhaven-card-browser (/fh/items Item ID filter)

Repro scripts — duplicate React keys in gloomhaven-card-browser

Supporting scripts for a fix to cmlenius/gloomhaven-card-browser.

The bug: entering a list of IDs in the Item ID box on /fh/items leaves stale cards on screen — copies of item 245 (Ancient Coin) at wrong positions, for an item that was never requested. Frosthaven item 245 is four records sharing one image path, so CardList renders four siblings with the same React key. React gathers the children it may unmount into a Map keyed by key, so the duplicates overwrite one another there and the shadowed nodes are never marked for deletion.

@goodell
goodell / Lezyne-Firmware-Programmer_2017-08-04-085611_DGOODELL-M-J06E.crash
Created August 4, 2017 14:03
CRASH: Lezyne Firmware Programmer 4.123, Release date 21-July-17 - Mac
Process: Lezyne-Firmware-Programmer [24973]
Path: /Applications/Lezyne-Firmware-Programmer.app/Contents/MacOS/Lezyne-Firmware-Programmer
Identifier: Lezyne.GpsProgrammer
Version: 1.0 (2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Lezyne-Firmware-Programmer [24973]
User ID: 501
Date/Time: 2017-08-04 08:56:11.527 -0500
@goodell
goodell / karabiner.json
Last active September 6, 2017 15:00
tap-caps is escape, hold-caps is ctrl, native escape is disabled
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
diff --git a/prov/usnic/src/usdf_cq.c b/prov/usnic/src/usdf_cq.c
index ba4cef4..a2ad994 100644
--- a/prov/usnic/src/usdf_cq.c
+++ b/prov/usnic/src/usdf_cq.c
@@ -455,8 +455,10 @@ usdf_cq_post_soft(struct usdf_cq_hard *hcq, void *context, size_t len,
* for.
*/
if ((entry == cq->c.soft.cq_tail) &&
- (cq->c.soft.cq_last_op == USDF_SOFT_CQ_WRITE))
+ (cq->c.soft.cq_last_op == USDF_SOFT_CQ_WRITE)) {
#!/bin/zsh
# see this output:
# $ svn diff --diff-cmd showargs sa/src/palo/include/sereno/sereno_defs.h
# Index: sa/src/palo/include/sereno/sereno_defs.h
# ===================================================================
# $#=7
# $1=|-u|
# $2=|-L|
# $3=|sa/src/palo/include/sereno/sereno_defs.h (revision 258787)|
Input from: Standard input
Output to: Standard output
Output format: PCAP
Wrote packet of 8944 bytes.
Read 1 potential packet, wrote 1 packet (8984 bytes).
Capturing on 'Standard input'
Frame 1: 8944 bytes on wire (71552 bits), 8944 bytes captured (71552 bits) on interface 0
Interface id: 0 (-)
Encapsulation type: Ethernet (1)
Arrival Time: Jul 14, 2015 15:46:03.000000000 PDT
define pktdump
dump binary memory /tmp/dgoodell-pktdump.bin (char*)$arg0 (((char*)$arg0)+$arg1)
!od -Ax -tx1 -v /tmp/dgoodell-pktdump.bin | text2pcap - - | tshark -V -x -i -
end
document pktdump
Dump a network packet in memory with tshark.
Example usage: pktdump ADDRESS LENGTH
end
- name: fi_msg_pingpong -f usnic
result: Pass
time: 5.205723372
- name: fi_msg_rma -o write -f usnic
result: Notrun
time: 2.189552288
server_stdout: |
fi_getinfo(): 393, -61 (No data available)
client_stdout: |
fi_getinfo(): 525, -61 (No data available)
### Keybase proof
I hereby claim:
* I am goodell on github.
* I am goodell (https://keybase.io/goodell) on keybase.
* I have a public key whose fingerprint is B6DF 779C 9609 BAC3 4D66 5A2E B367 4375 0172 8814
To claim this, I am signing this object:
@goodell
goodell / gist:6b1391b70ac60f2b93f2
Last active October 3, 2022 15:30
OMPI Git Dos and Don'ts