Skip to content

Instantly share code, notes, and snippets.

View theoparis's full-sized avatar

Theo Paris theoparis

View GitHub Profile
@jeremytregunna
jeremytregunna / revert-systemd-userdb-birthdate.patch
Created March 19, 2026 19:14
Patch to revert systemd's userdb birthDate record bits. Valid as of 2026-03-19
diff --git a/docs/USER_RECORD.md b/docs/USER_RECORD.md
index 5335e145b5..9d6d8c1d03 100644
--- a/docs/USER_RECORD.md
+++ b/docs/USER_RECORD.md
@@ -273,9 +273,6 @@ This must be a string, and should follow the semantics defined in the
It's probably wise to use a location string processable by geo-location subsystems, but this is not enforced nor required.
Example: `Berlin, Germany` or `Basement, Room 3a`.
-`birthDate` → A string in ISO 8601 calendar date format (`YYYY-MM-DD`) indicating the user's date
-of birth. The earliest representable year is 1900. This field is optional.
from __future__ import annotations
import math
import random
import subprocess
import wave
from dataclasses import dataclass
from pathlib import Path
import imageio_ffmpeg
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@lucamignatti
lucamignatti / mc.md
Last active May 13, 2026 00:09
Running Minecraft on macOS with Zink + KosmicKrisp

Running Minecraft on macOS with Zink + KosmicKrisp

Screenshot 2025-12-31 at 11 15 00 AM

TL;DR: I got OpenGL 4.6 apps (Minecraft) running on macOS by translating OpenGL → Vulkan → Metal using Mesa's Zink driver and the KosmicKrisp Vulkan implementation.

Minecraft (OpenGL 4.6) → Zink → Vulkan → KosmicKrisp → Metal → GPU
@tejainece
tejainece / vscode_marketplace
Last active May 9, 2026 13:04
Marketplace for VS code to be used in Antigravity
https://marketplace.visualstudio.com/items
https://marketplace.visualstudio.com/_apis/public/gallery

Are we XLibre yet?

X11 has been, and still is, a vital piece of technology at the core of professional Unix-like workstations since decades. It has a proven track record of supporting enterprise-grade applications with long-term protocol stability and platform compatibility. It has matured over decades. XLibre is an actively developed fork of the X.Org X11 server, initiated by the most active X.Org developer and supported by the open source community.

An incompatible alternative, Wayland, is being aggressively pushed by IBM = Red Hat = Gnome = Fedora = freedesktop.org. However, it is not ready to succeed X11 as it its governance model leads to never-ending discussions and prevents even the most essential functionality from existing. Think twice before abandoning Xorg. Wayland breaks everything!

It is time that the open source community reclaims what was ours to begin with. This page lists distrib

@thenhnn
thenhnn / opencl.patch
Created March 8, 2025 19:35
mesa-asahi-edge on latest nixpkgs
diff --git a/meson.build b/meson.build
index c150bff74ff..37fa7f0531b 100644
--- a/meson.build
+++ b/meson.build
@@ -1850,7 +1850,7 @@ endif
dep_clang = null_dep
if with_clc or with_gallium_clover
- llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')
+ llvm_libdir = get_option('clang-libdir')
@SasLuca
SasLuca / app.cpp
Created December 26, 2024 17:15
How to use ANGLE with SDL3 on iOS
#define SDL_MAIN_USE_CALLBACKS 1
#include <SDL3/SDL_main.h>
#include <SDL3/SDL.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <GLES2/gl2.h>
#include <GLES3/gl3.h>
struct AppState
@asheroto
asheroto / README.md
Last active May 10, 2026 01:13
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does