Skip to content

Instantly share code, notes, and snippets.

View davispuh's full-sized avatar

Dāvis davispuh

  • Latvia
View GitHub Profile
@ENEexe
ENEexe / README.md
Last active November 23, 2026 20:26
Fix the blank Wuthering Waves Steam launcher on Linux/Proton

Blank Wuthering Waves launcher fix (Linux/Proton)

  1. Exit Wuthering Waves in Steam.
  2. Right-click the game in your Steam library → Manage → Browse local files.
  3. Open the current numbered version folder containing launcher_main.dll (beside launcher_main.exe).
  4. Put patch_wuthering_waves_launcher.py in that folder.
  5. Open a terminal there and run:
    python3 patch_wuthering_waves_launcher.py ./launcher_main.dll
@hoshinolina
hoshinolina / arkit.md
Last active November 25, 2026 15:36
ARKit/FaceKit notes

Introduction

ARKit face tracking is shrouded in a ton of myth and mystique.

I reverse engineered the internal face tracking API, and this is how it actually works.

Disclaimer

This is based on reverse engineering the API of Apple's face detection framework and testing it with my own code. Some of it is educated guesswork based on names and strings. I did not reverse engineer the details of how ARKit/FaceKit works, but given what I've seen, I'm quite confident in the overall big picture.

@syntaxhacker
syntaxhacker / opencode-custom-provider-guide.md
Created April 23, 2026 06:09
Step-by-step guide to add any OpenAI-compatible provider (e.g. NVIDIA NIM) to OpenCode with auth.json key separation

Adding a Custom Provider to OpenCode

OpenCode supports any OpenAI-compatible API via custom providers.
Your API keys are stored separately from config to prevent accidental leaks.


Architecture

| File | Purpose |

@evilJazz
evilJazz / MI50_32GB_VBIOS.md
Last active December 3, 2026 03:25
MI50 32GB VBIOS
@NohTow
NohTow / train_reason_moderncolbert.py
Created May 22, 2025 12:43
Boilerplate to reproduce the training of Reason-ModernColBERT
from datasets import load_dataset
from sentence_transformers import (
SentenceTransformerTrainer,
SentenceTransformerTrainingArguments,
)
from pylate import losses, models, utils
def main():
# As ReasonIR do not re-upload the BRIGHT data, we need to load it from the original source

Manually fixing bit flips in BTRFS

Somehow my BTRFS file system became corrupted by what appears to be a single bit flip in a metadata field. Rather than copying all the data and reformatting the file system, which would have required another disk at least as large as the original, I decided to try to fix this manually, which appears to have worked. I've documented the procedure I've used here, in case I need it again or someone else runs into a similar issue and finds it useful.

The first thing you should do is run btrfs check. For me this produced the following output:

Opening filesystem to check...
Checking filesystem on /dev/nvme0n1p1
UUID: ec7afe1c-8478-450a-82fc-d17b32d8ca3d
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active November 24, 2026 06:49
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@sergeyklay
sergeyklay / journalctl-cheatsheet.md
Last active November 2, 2026 06:33
Journalctl Cheat Sheet

Journalctl Cheat Sheet

Configuration

Permissions

To see messages from other users and the system as well as performing various log operations from a regular user add it to the group:

sudo usermod -aG systemd-journal $USER
@davispuh
davispuh / channels.sql
Created August 26, 2014 00:08
Most active channels
SELECT count(messageid) as count, buffername as channel
FROM backlog
LEFT JOIN buffer ON buffer.bufferid = backlog.bufferid
WHERE buffername != ''
GROUP BY buffername ORDER BY count DESC
LIMIT 30;
@davispuh
davispuh / steam_console_params.txt
Last active October 29, 2026 05:53
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load