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
@lucamignatti
lucamignatti / mc.md
Last active April 8, 2026 03:26
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 April 11, 2026 17:28
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
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 13, 2026 02:49
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@aamiaa
aamiaa / RevertNewLayout.md
Last active April 9, 2026 10:16
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@andyfriesen
andyfriesen / BUCK
Created July 30, 2023 17:20
Trying to work out how to get a single mega-compilation-database out of Buck. This is a pretty naive approach, but I think it works?
# compdb/BUCK
python_bootstrap_binary(
name = "combine_compdbs",
main = "combine_compdbs.py",
visibility = ["PUBLIC"]
)