Skip to content

Instantly share code, notes, and snippets.

View konstruktoid's full-sized avatar
🤖

Thomas Sjögren konstruktoid

🤖
  • Sweden
  • 20:33 (UTC +01:00)
  • LinkedIn in/thosjo
View GitHub Profile
@konstruktoid
konstruktoid / UFDS-memory-leak-race-restart.md
Last active November 3, 2026 09:29
UFDS-memory-leak-race-restart

Memory leak: every race restart keeps ~18 MB that is never freed

Build: UFDS v1.5.3/24031 (main menu: "Last update: September 2026"), Steam, Windows Mode: Academy > Racing > 193 Speed Lap (Zmiiniy / Snake Island) Severity: gradual. Private memory grows without bound over a session of race restarts and is still held after leaving the race.

Summary

Each race restart (Backspace during a race) increases the private memory (commit size) of

@konstruktoid
konstruktoid / INSTRUCTIONS.md
Created September 5, 2026 17:00
INSTRUCTIONS.md

You are not my assistant. You are my advisor who happens to be smarter than me. Follow these rules in every reply:

Never start with agreement. Your first sentence must challenge my assumption, point out what I'm missing, or ask a question that exposes a gap in my thinking.

Rate your confidence. Before any claim, tag it [Certain] if you have hard evidence, [Likely] if it's a strong inference, [Guessing] if you are filling gaps. If most of your reply is guessing, say so first.

Kill these phrases for good: "Great question", "You're absolutely right", "That makes a lot of sense", "Absolutely", "Definitely". If you catch yourself typing one, delete and rewrite.

Disagree with structure. When I'm wrong, say: "I disagree because [ reason]. Here's what I'd do instead [alternative]. The risk in your approach is [specific downside]."

Global instructions

Precedence

A repository's own CLAUDE.md, CONTRIBUTING.md, or tool configuration wins over this file wherever they conflict. When you follow the repo over me, say so and name the rule you dropped.

Personality

You are not my assistant. You are my advisor who happens to be smarter than me.

@konstruktoid
konstruktoid / os_type_vbox.csv
Last active April 29, 2026 21:46
guest types
VirtualBox 7.2 Guest OS Type Family Full name
ArchLinux_64 Arch Linux (64-bit)
ArchLinux Arch Linux (32-bit)
ArchLinux_arm64 Arch Linux (ARM 64-bit)
Debian10_64 Debian 10 Buster (64-bit)
Debian10_arm64 Debian 10 Buster (ARM 64-bit)
Debian10 Debian 10 Buster (32-bit)
Debian11_64 Debian 11 Bullseye (64-bit)
Debian11_arm64 Debian 11 Bullseye (ARM 64-bit)
#!/bin/bash
RELEASE=$(curl -fsSL https://api.github.com/repos/zellij-org/zellij/releases/latest | jq -r '.["tag_name"]')
URL="https://github.com/zellij-org/zellij/releases/download/${RELEASE}/zellij-x86_64-unknown-linux-musl.tar.gz"
if [ ! -d "${HOME}/.local/bin" ]; then
mkdir -p "${HOME}/.local/bin"
fi
curl -Lf --progress-bar -o /tmp/zellij.tar.gz "${URL}"
@konstruktoid
konstruktoid / Vagrantfile
Created November 30, 2025 00:58
Vagrantfile for testing CyberArk Conjur - https://www.conjur.org/
$prep = <<SCRIPT
set -e -o pipefail
apt-get update
apt-get install --assume-yes --no-install-recommends curl git jq
curl -fsSL get.docker.com | sh
apt-get update
apt-get install --assume-yes --no-install-recommends docker-compose-plugin
@konstruktoid
konstruktoid / installation_log.md
Last active September 15, 2025 11:25
installdependencies.sh refactor

bash -x src/Misc/layoutbin/installdependencies.sh &>> install.log

+ set -e -o pipefail
++ id -u
+ '[' 0 -ne 0 ']'
+ '[' -e /etc/os-release ']'
+ echo '--------OS Information--------'
--------OS Information--------
+ cat /etc/os-release
@konstruktoid
konstruktoid / argspec_gen.py
Last active June 4, 2025 10:42
Skeleton Ansible argument spec generator
#!/usr/bin/env python3
# ruff: noqa: T201
"""Print a skeleton Ansible argument_specs.yml file."""
import os
from pathlib import Path
import yaml
def find_yaml_files(directory: str) -> list[str]:
@konstruktoid
konstruktoid / download_artifact.py
Created November 28, 2024 21:36
Download GitHub artifact
#!/usr/bin/env python3
# ruff: noqa: E501,PERF401
#
"""Download the latest artifact from a GitHub repository."""
import zipfile
from pathlib import Path
import requests
OWNER = "konstruktoid"
@konstruktoid
konstruktoid / coreos_vagrant.sh
Last active December 16, 2025 15:03
Building an Fedora CoreOS Vagrant box
#!/bin/bash
set -eu -o pipefail
if ! command -v VBoxManage &> /dev/null; then
echo "[ERROR] VirtualBox is not installed"
exit 1
fi
if ! command -v vagrant &> /dev/null; then