Skip to content

Instantly share code, notes, and snippets.

View Kreijstal's full-sized avatar
🚭

Kreijstal Kreijstal

🚭
View GitHub Profile
@Kreijstal
Kreijstal / WINE_MACOS_DISPLAY_WIP_README.md
Created July 18, 2026 21:03
Salvaged Wine macOS virtual display-mode WIP from an inactive Codex task

Salvaged Wine macOS display-mode experiment

This gist preserves the only unpublished source change left by the inactive Codex task "Investigate QEMU slowdown". The original worktree no longer exists.

The patch is based on Wine fork commit ba1088155ce8cb332d2f04a703cc8df36d060423 (macos: enable ARM64 GDI text build) from Kreijstal/wine-kreijstal, branch kreijstal-fixes.

It experiments with:

@Kreijstal
Kreijstal / 0001-build-recognize-the-AArch64-MSYS-target.patch
Last active July 18, 2026 21:15
Windows 11 ARM64 QEMU/HVF setup and experimental native MSYS2 runtime/Bash port
From 9890fe6ae79b81bde8ec7a990c6ca5e89fc627c3 Mon Sep 17 00:00:00 2001
From: Kreijstal <kreijstal@users.noreply.github.com>
Date: Sat, 18 Jul 2026 05:07:06 +0200
Subject: [PATCH 1/7] build: recognize the AArch64 MSYS target
Teach the top-level, newlib, and winsup build logic to configure aarch64-pc-msys. Select the ARM64 runtime sources and direct linker path while retaining the existing x86_64 link rule.
Assisted-by: OpenAI Codex: GPT-5
---
configure.ac | 2 +-
@Kreijstal
Kreijstal / APIC_0.dsl
Created May 18, 2026 06:02
rainb ACPI tables — ASUS X550DP / AMD Trinity, for ReactOS Kreijstal/reactos#47
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20251212 (64-bit version)
* Copyright (c) 2000 - 2025 Intel Corporation
*
* Disassembly of APIC_0.aml
*
* ACPI Data Table [APIC]
*
* Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue (in hex)
@Kreijstal
Kreijstal / msys-cross-build-log.md
Last active April 28, 2026 03:21
MSYS2-on-ReactOS cross-toolchain build log: patches, flags, rationale per stage

MSYS2-on-ReactOS cross-toolchain build log

Linux-hosted cross toolchain targeting x86_64-pc-cygwin (validation phase) before morphing to x86_64-pc-msys. Goal is bringing the full MSYS2 environment up on ReactOS; ReactOS will gain whatever Win32/NT API surface MSYS2 needs (we do not fork the runtime to paper over ReactOS gaps).

Recipe transcribed from NixOS/nixpkgs PR #444470 (pkgsCross.x86_64-cygwin, head e098bea39d) into plain shell scripts (no nix on host).

Workspace: ~/git/msys-cross/{src,build,prefix,patches,scripts,logs}.

Source pinning

@Kreijstal
Kreijstal / README.md
Last active April 26, 2026 22:47
Paper.io 3D deobfuscation pipeline — reproducible reverse-engineering with OXC bug catalog

Paper.io 3D — Deobfuscation & Local Build

Reverse-engineering the Paper.io 3D browser game engine for local execution.

Project Structure

paperio/
├── deobfuscate.js          # Main pipeline: paper3d.js → paper3d_deob.js
├── unvendor.js             # Strips vendored deps from app.js → app_unvendored.js
@Kreijstal
Kreijstal / r2-reentrant-gist.md
Last active April 29, 2026 11:13
Reentrant radare2: auto-resume your project per binary (no -p, no wrapper)

Reentrant radare2: auto-resume your project per binary (no -p, no wrapper)

Reentrant radare2: never lose your renames again

By default, radare2 forgets everything the moment you q. Every rename, comment, and flag evaporates. This is the 5-minute setup that makes r2 remember per-binary: you just run r2 /path/to/binary and your previous session comes back automatically — no -p projectname to remember, no wrapper function to type.

  • Open r2 ./foo.exe → previous analysis, renames, comments, flags all restored.
  • Quit with q → prompt "save project?" so you can't lose work by accident.
@Kreijstal
Kreijstal / compare_nt52_exports.py
Last active April 20, 2026 05:10
Machine-generated NT 5.2 x64 export comparison report from source specs for ReactOS vs Windows Server 2003 SP2 baseline
#!/usr/bin/env python3
"""
Compare built PE exports against a Windows Server 2003 SP2 JSON baseline.
"""
from __future__ import annotations
import argparse
import hashlib
import json
@Kreijstal
Kreijstal / .gdbinit
Last active May 26, 2026 04:11
ReactOS NTFS Debug — GDB Real/Long Mode Guide, Pilotty, Drive Installer, Memory Layout
# ReactOS GDB debug helper for QEMU
# Usage: gdb -x .gdbinit
# Then: ros-connect (connects to :1234, loads symbols)
# Or: ros-connect :5678 (custom port)
#
# Non-aggressive: does NOT auto-connect or auto-load.
# All commands are registered immediately and work once connected.
set architecture i386:x86-64
set disassembly-flavor intel
@Kreijstal
Kreijstal / get_all_studiengaenge.py
Last active April 3, 2026 10:44
Moses browsing findings and Studiengänge extraction script
#!/usr/bin/env python3
"""Fetch or resolve publicly listed Studiengänge from TU Berlin Moses.
Requirements:
pip install beautifulsoup4
Examples:
python3 get_all_studiengaenge.py
python3 get_all_studiengaenge.py --format csv > studiengaenge.csv
python3 get_all_studiengaenge.py --pretty > studiengaenge.json
@Kreijstal
Kreijstal / README.md
Last active April 3, 2026 10:58
Parse GitHub Copilot Agent Actions logs into a complete AST. Indentation-based scoping, nothing discarded — filter at render time, not parse time.

Copilot Agent Log Parser

Parse GitHub Copilot Agent CI log output into a structured AST. Every line in the log becomes a node — nothing is discarded. Filtering happens at render time.

Architecture

  • AST-based parsing — no regex keyword matching on content for block boundaries. Indentation defines scope. Result lines are never misinterpreted as tokens even if they contain copilot: or function: strings.