Skip to content

Instantly share code, notes, and snippets.

View FairlySadPanda's full-sized avatar
🏠
Back in the office!

Hannah Giovanna Dawson FairlySadPanda

🏠
Back in the office!
View GitHub Profile
@FairlySadPanda
FairlySadPanda / gist:e5d4c5227994f4353d007604ef5f25cd
Created June 9, 2026 15:44
Boot loop on testing-44.20260608.1
Jun 09 16:36:26 kernel: Linux version 7.0.9-ogc3.2.fc44.x86_64 (root@abbc366d7bc0) (gcc (GCC) 16.1.1 20260501 (Red Hat 16.1.1-1), GNU ld version 2.46-3.fc44) #1 SMP PREEMPT_DYNAMIC Wed May 20 01:34:43 UTC 2026
Jun 09 16:36:26 kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/ostree/default-ec910bcc5b7820889d78ca2c865646f364c95f81c75cd26b550b8cb99f5f9fc8/vmlinuz-7.0.9-ogc3.2.fc44.x86_64 ostree=/ostree/boot.0/default/ec910bcc5b7820889d78ca2c865646f364c95f81c75cd26b550b8cb99f5f9fc8/0 rhgb quiet root=UUID=521e69fa-43fc-40de-81db-b2118fb6b3f3 vconsole.keymap=gb rootflags=subvol=root rw bluetooth.disable_ertm=1 amdgpu.ppfeaturemask=0xFFF7FFFF rtsx_pci.disable_aspm=y rtsx_pci.aspm=0 modprobe.blacklist=hid_uclogic modprobe.blacklist=wacom iomem=relaxed
Jun 09 16:36:26 kernel: x86/split lock detection: #DB: warning on user-space bus_locks
Jun 09 16:36:26 kernel: BIOS-provided physical RAM map:
Jun 09 16:36:26 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] System RAM
Jun 09 16:36:26 kernel: BIOS-e820: [mem 0
@FairlySadPanda
FairlySadPanda / gist:186b3e57da579ce20e385f9c7f312c10
Created June 3, 2026 22:35
udevadm test /sys/class/hidraw/hidraw0
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
Loading builtins...
Failed to read $container of PID 1, ignoring: Permission denied
Found container virtualization none.
Trying to open "/etc/systemd/hwdb/hwdb.bin"...
Trying to open "/etc/udev/hwdb.bin"...
=== trie on-disk ===
P: /devices/virtual/dmi/id
M: id
J: +dmi:id
U: dmi
E: DEVPATH=/devices/virtual/dmi/id
E: MODALIAS=dmi:bvnAmericanMegatrendsInternational,LLC.:bvrE1T8KAMS.106:bd01/05/2026:br1.6:svnMicro-StarInternationalCo.,Ltd.:pnClawA8BZ2EM:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-1T8K:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct30:cvrN/A:sku1T8K.1:pfaClawA:
E: SUBSYSTEM=dmi
E: USEC_INITIALIZED=8346652
E: USE_INPUTPLUMBER=1
E: ID_VENDOR=Micro-Star International Co., Ltd.
@FairlySadPanda
FairlySadPanda / gist:829bc32f3793869e850dc705183af399
Created June 3, 2026 21:53
udevadm info --attribute-walk /sys/class/dmi/id
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/virtual/dmi/id':
KERNEL=="id"
SUBSYSTEM=="dmi"
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:08.3/0000:c6:00.0/usb3/3-3/3-3:1.0/0003:0DB0:1902.0001/leds/msi_claw:rgb:joystick_rings':
KERNEL=="msi_claw:rgb:joystick_rings"
SUBSYSTEM=="leds"
@FairlySadPanda
FairlySadPanda / gist:67c8d7c2dbc6c9cf018ecab58666cfd5
Last active April 24, 2026 15:17
Output of golangci-lint run on tinyemu-go
cmd/temu/main.go:199:12: Error return value of `bd.Close` is not checked (errcheck)
bd.Close()
^
cmd/temu/main.go:228:15: Error return value of `p9Dev.Close` is not checked (errcheck)
p9Dev.Close()
^
cmd/temu/main.go:627:10: Error return value of `cpu.Run` is not checked (errcheck)
cpu.Run(maxExecCycle)
^
cmd/temu/main_test.go:32:16: Error return value of `bd.Close` is not checked (errcheck)
@FairlySadPanda
FairlySadPanda / advice.txt
Created December 10, 2025 14:44
DNA performance advice
After getting a Legion Go S (Zen 2 Go, 16GB one) at a Black Friday sale, I decided to try and get DNA running on it and ended up spiralling into madness.
I leave my advice here for other internet explorers.
This applies to the **1.0 Fina patch**.
###
# Installation (of the game)
@FairlySadPanda
FairlySadPanda / Engine.ini
Last active December 11, 2025 19:57
Engine.ini for DNA (for Reddit)
# Credits to DragonPhase for the base file for this. Comments below starting with ; are theirs.
# No link here to the original to avoid breaking TOS (I sourced it from a mod-hosting site).
# My main changes were some auditing of changes to make sure they
# actually decreased (or did not increase) frametime.
# I also did a sweep to remove changes that changed visual quality for the worse;
# you can absolutely make DNA look worse than this.
# Warning: this version may cause nasty blurriness when FSR is enabled.
# This was made using the 1.0 Fina patch, 11th Dec 2025.
# Important: the devs can and will change optimization over time!
@FairlySadPanda
FairlySadPanda / Scalability.ini
Last active December 11, 2025 19:56
Scalability.ini for DNA (for Reddit)
# Credits to DragonPhase for the base file for this. Comments below starting with ; are theirs.
# No link here to the original to avoid breaking TOS (I sourced it from a mod-hosting site).
# My main changes were some auditing of changes to make sure they
# actually decreased (or did not increase) frametime.
# I also did a sweep to remove changes that changed visual quality for the worse;
# you can absolutely make DNA look worse than this.
# Warning: this version may cause nasty blurriness when FSR is enabled.
# HOW THIS WORKS
# Unreal Engine has internal settings for performance levels.
@FairlySadPanda
FairlySadPanda / main.go
Last active December 5, 2024 02:09
Advent Of Code 2025 - Day 1 - Clean Golang
package main
import (
"encoding/json"
"flag"
"fmt"
"os"
"path/filepath"
"slices"
"strconv"