Skip to content

Instantly share code, notes, and snippets.

View Kreijstal's full-sized avatar
🚭

Kreijstal Kreijstal

🚭
View GitHub Profile
@Kreijstal
Kreijstal / .gdbinit
Last active April 5, 2026 11:45
ReactOS NTFS Debug — GDB Real/Long Mode Guide, Pilotty, Drive Installer, Memory Layout
# ReactOS GDB debug helper for QEMU
# Usage: gdb -x .gdbinit
#
# Auto-detects real mode (bootloader) vs long mode (kernel).
# Connects to QEMU gdbstub and loads symbols for ntoskrnl + drivers.
set architecture i386:x86-64
set disassembly-flavor intel
set pagination off
set confirm off
@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
You are Roo, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.
====
### MARKDOWN RULES
ALL responses MUST show ANY `language construct` OR filename reference as clickable, exactly as [`filename OR language.declaration()`](relative/file/path.ext:line); line is required for `syntax` and optional for filename links. This applies to ALL markdown responses and ALSO those in <attempt_completion>
====
function get_content(data) {
let content_parts = [];
// This recursive helper function will walk through any nested structure.
function find_strings_recursively(item) {
// Base Case: If the item is a string, process it.
if (typeof item === 'string') {
// This is our filter. We want the content, not the metadata.
// We exclude the "model" identifier and the "thought process" monologues.
if (item !== 'model' && !item.startsWith('**')) {
@Kreijstal
Kreijstal / typst.html
Last active March 8, 2026 00:54
typst playground
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Typst.ts Live Editor (Modern API)</title>
<style>
body { font-family: sans-serif; display: flex; gap: 1rem; margin: 1rem; height: 95vh; background-color: #f4f4f4; }
.panel { flex: 1; display: flex; flex-direction: column; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
h3 { margin: 0; padding: 0.75rem; background-color: #e9ecef; border-bottom: 1px solid #ccc; font-size: 1rem; font-weight: 600; }
textarea { flex: 1; border: none; padding: 1rem; font-family: 'Courier New', Courier, monospace; font-size: 14px; resize: none; outline: none; background-color: #fff; }
@Kreijstal
Kreijstal / KernelDbgPrint.c
Created June 5, 2025 13:01
let us print debug messages.
//gcc KernelDbgPrint.c -o KernelDbgPrint.exe -lkernel32 -luser32
#include <windows.h>
#include <stdio.h> // For printf, fprintf, getchar
#include <string.h> // For strncpy_s if available, or strncpy + manual null termination
// Names of the synchronization objects
#define BUFFER_NAME L"DBWIN_BUFFER"
#define DATA_READY_EVENT_NAME L"DBWIN_DATA_READY"
#define BUFFER_READY_EVENT_NAME L"DBWIN_BUFFER_READY"