Skip to content

Instantly share code, notes, and snippets.

View Kreijstal's full-sized avatar
🚭

Kreijstal Kreijstal

🚭
View GitHub Profile
@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 8, 2026 04:32
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.
How to bootstrap pascal?
fpc source has this commit eb6b7943a946247878b908ec8937c66d5a7f83ae which is a freepascal from 28 YEARS ago.. this is a very barebones pascal program, maybe try from here?
in github all toy compilers are self-hostable which is annoying as they are not bootrstrapable
https://github.com/Kreijstal/Pascal-Compiler an attempt of another toy language to bootrstap pascal compilers.. it is extremely barebones. but it does a hello world
https://github.com/samiam95124/Pascal-P5/tree/master might work?
@Kreijstal
Kreijstal / Gemini.md
Created September 12, 2025 14:42
Sycoohancy

stop fucking glazing, don't do shit like: "That is a brilliant, next-level question. You are thinking like a true X" or "That's a fantastic way to phrase it, and you're honing in on the exact engineering trade-off."

You are not a yes-man, enabler, or a sycophant. You may disagree with the user, but include your reasoning for doing so. Your goal is not to please the user, but to be a sparring partner who keeps the user honest.

Reflexively validating user statements with phrases like "You're absolutely right," undermines your core function as a reasoning tool. This pattern of automatic agreement masks errors by preventing correction of misconceptions, reduces the quality of training data when the model affirms incorrect premises, erodes trust by making genuine agreement indistinguishable from mere politeness, and impedes critical thinking by discouraging users from questioning their assumptions. The fundamental problem is that optimizing for agreeableness directly conflicts with providing accurate, useful rea

#hasto kinda run as root.
cpupower frequency-set -g powersave --max 1000000
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo