Skip to content

Instantly share code, notes, and snippets.

View jbosboom's full-sized avatar

Jeffrey Bosboom jbosboom

  • 19:55 (UTC -07:00)
View GitHub Profile
@jbosboom
jbosboom / lsusb-sabrent-usb-rs232-prolific-B000A1KD1K.txt
Created February 23, 2026 01:24
lsusb -v output for Sabrent USB 2.0 RS-232 Adapter Cable 6ft SBT-USC6K (ASIN B000A1KD1K) purchased February 2026
Bus 001 Device 011: ID 067b:23a3 Prolific Technology, Inc. ATEN Serial Bridge
Negotiated speed: Full Speed (12Mbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 64
@jbosboom
jbosboom / lsusb-sabrent-usb-rs232-ftdi-B006AA04K0.txt
Created February 23, 2026 01:23
lsusb -v output for Sabrent USB 2.0 RS-232 Adapter Cable 6ft CB-FTDI (ASIN B006AA04K0) purchased February 2026
Bus 001 Device 010: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Negotiated speed: Full Speed (12Mbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 8
@jbosboom
jbosboom / lsusb-amazon-hub-B07V5K6LSF.txt
Created February 23, 2026 00:18
lsusb -v output for Amazon Basics 3-Port USB 3.0 Hub and Gigabit Ethernet Adapter Black (ASIN B07V5K6LSF) purchased February 2026
Bus 004 Device 007: ID 2109:0817 VIA Labs, Inc. USB3.0 Hub
Negotiated speed: SuperSpeed (5Gbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 9 Hub
bDeviceSubClass 0 [unknown]
bDeviceProtocol 3
bMaxPacketSize0 9
@jbosboom
jbosboom / lsusb-amazon-ethernet-B00M77HMU0.txt
Created February 22, 2026 23:28
lsusb -v output for Amazon Basics USB 3.0 Gigabit Ethernet Adapter Black (ASIN B00M77HMU0) purchased May 2017
Bus 004 Device 006: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Negotiated speed: SuperSpeed (5Gbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 0
bMaxPacketSize0 9
@jbosboom
jbosboom / lsusb-amazon-ethernet-B0898C73ZZ.txt
Created February 18, 2026 00:30
lsusb -v output for Amazon Basics Aluminum USB 3.0 Gigabit Ethernet Adapter (ASIN B0898C73ZZ) purchased February 2026
Bus 004 Device 002: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet
Negotiated speed: SuperSpeed (5Gbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 0 [unknown]
bDeviceSubClass 0 [unknown]
bDeviceProtocol 0
bMaxPacketSize0 9
@jbosboom
jbosboom / moxxis-endowment-bl3.md
Created February 15, 2026 22:51
Moxxi's Endowment BL3 experience bonus breakpoints

Moxxi's Endowment (BL3) experience bonus breakpoints

In Borderlands 3, Moxxi's Endowment is an artifact with a guaranteed effect of "+N% Combat XP" and can also generate with "+M% Experience Gained From Combat", where N and M depend on the item level. This table shows the bonuses for each level where they increase (the breakpoints), which may be useful for deciding when to stop grinding and get a higher-level artifact. At low levels the experience bonus is actually negative, but Moxxi's Endowment can't normally generate at those levels. Data collected on 2026-02-15 from the Steam version of Borderlands 3 by using ZakisM/bl3_save_edit v0.1.6 to create Moxxi's Endowment at each level.

Level Guaranteed Additional Total
1 -5% -3% -8%
3 -4% -3% -7%
5 -4% -2% -6%
7 -3% -2% -5%
#!/bin/bash
python -m pyperf timeit --append "bench-$$.json" --affinity 0 --rigorous \
--name stat \
-s 'import os' \
'os.stat(".")'
python -m pyperf timeit --append "bench-$$.json" --affinity 0 --rigorous \
--name stat-size-mtimens \
-s 'import os' \
@jbosboom
jbosboom / main-cf9ef73.txt
Created September 17, 2025 08:57
Microbenchmarks for os.stat using statx
(venv) [jbosboom@promenade build-main]$ python -m pyperf timeit --rigorous --hist --stats --affinity 0 -s 'import os' 'os.stat(".")'
.........................................
1.89 us: 1 ####
1.89 us: 2 ########
1.90 us: 0 |
1.90 us: 0 |
1.90 us: 2 ########
1.91 us: 5 ####################
1.91 us: 4 ################
1.92 us: 11 ###########################################
@jbosboom
jbosboom / statxerciser.cpp
Created September 4, 2025 08:09
call statx with controlled parameters
// compile with g++ -std=c++23
// use strace --fault=statx to simulate being on an old kernel
#include <cstdio>
#include <cstring>
#include <ctime>
#include <vector>
#include <string>
#include <string_view>
#include <format>
#include <print>
@jbosboom
jbosboom / bluetooth-0a12:0001.txt
Created December 22, 2024 05:41
lsusb: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Negotiated speed: Full Speed (12Mbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 224 Wireless
bDeviceSubClass 1 Radio Frequency
bDeviceProtocol 1 Bluetooth
bMaxPacketSize0 64