Skip to content

Instantly share code, notes, and snippets.

Debug information for team /bin/sh /boot/home/haiku/generated.x86_64/cross-tools-x86_64-bu (118200):
CPU(s): 4x Intel Core™ i3-9100F
Memory: 15.94 GiB total, 840.72 MiB used
Haiku revision: hrev59395+1 Jan 1 1980 00:00:0 (x86_64)
Active Threads:
thread 118201: team 118200 debug task
thread 118200: sh (main)
state: Exception (General protection fault)
@SED4906
SED4906 / wscreensaver
Last active October 14, 2025 15:51
WScreenSaver helper script
#!/usr/bin/env python
import argparse
from pathlib import Path
import os
import random
import subprocess
import sys
def screensavers(args):
@SED4906
SED4906 / iridescent.gdshader
Created July 12, 2024 21:00
Iridescent Godot Shader, based on work by Alan Zucconi
shader_type spatial;
float saturate(float x)
{
return clamp(x,0.0,1.0);
}
vec3 saturate3(vec3 x)
{
return clamp(x, vec3(0), vec3(1));
}
@SED4906
SED4906 / build.sh
Created September 11, 2023 02:37
A shell script to build a small ISO with just Linux and Busybox.
#!/bin/sh
set -ex
## Specific versions of packages
KERNEL_VERSION="6.1.52"
BUSYBOX_VERSION="1.36.1"
SYSLINUX_VERSION="6.03"
#LIMINE_VERSION="5.20230909.0"
## Download packages
if [ ! -d "packages" ]; then
mkdir packages
@SED4906
SED4906 / add.yaml
Created April 20, 2019 14:29
turingmachine.io
# Adds two binary numbers.
input: '0111 1100'
blank: ' '
start state: end
table:
# scan to the right
end:
[1,0]: R
' ' : {R: right}
# scan to the rightmost digit