Skip to content

Instantly share code, notes, and snippets.

View theoparis's full-sized avatar

Theo Paris theoparis

View GitHub Profile
@theoparis
theoparis / wine-llvm-libunwind.patch
Created March 30, 2026 21:41
wine patches for building with llvm
diff --git a/dlls/ntdll/unix/dwarf.h b/dlls/ntdll/unix/dwarf.h
index eafb232..30725b4 100644
--- a/dlls/ntdll/unix/dwarf.h
+++ b/dlls/ntdll/unix/dwarf.h
@@ -255,7 +255,9 @@ struct dwarf_fde
unsigned int cie_offset;
};
+#if defined(_LIBUNWIND_VERSION) || defined(____LIBUNWIND_CONFIG_H__) || !defined(__clang__)
extern const struct dwarf_fde *_Unwind_Find_FDE (void *, struct dwarf_eh_bases *);
use bytemuck::{Pod, Zeroable};
use std::time::Instant;
use wgpu::{
ColorTargetState, FragmentState, MultisampleState, PipelineCompilationOptions,
PipelineLayoutDescriptor, PrimitiveState, RenderPipeline, RenderPipelineDescriptor,
ShaderModuleDescriptor, ShaderSource, TextureFormat, TextureSampleType, TextureViewDescriptor,
TextureViewDimension, VertexAttribute, VertexBufferLayout, VertexFormat, VertexState,
VertexStepMode,
};
@theoparis
theoparis / kosmickrisp.txt
Last active November 19, 2025 23:03
KosmicKrisp vulkaninfo output
==========
VULKANINFO
==========
Vulkan Instance Version: 1.4.328
Instance Extensions: count = 15
===============================
VK_EXT_debug_report : extension revision 10
@theoparis
theoparis / BUCK
Created September 26, 2025 23:59
buck2 build for bionic libc
cxx_library(
name = "bionic",
preferred_linkage = "static",
srcs = [
"libc/arch-common/bionic/crtbegin.c",
"libc/async_safe/async_safe_log.cpp",
"libc/bionic/NetdClient.cpp",
"libc/bionic/NetdClientDispatch.cpp",
"libc/bionic/__bionic_get_shell_path.cpp",
"libc/bionic/__cmsg_nxthdr.cpp",
@theoparis
theoparis / readme.md
Last active July 13, 2025 01:20
Why Java Build Systems Suck

Gradle

  • Slow af
  • Causes issues with java functionality such as shutdown hooks
  • Tries to fetch a java runtime every time you open a project (which may not even run, e.g. on NixOS)
  • Can't build java code from source or patch existing software (causes JVM class loading errors with dependencies such as asm)

Maven

  • Slow af
  • Can't build java code from source or patch existing software (causes JVM class loading errors with dependencies such as asm)
@theoparis
theoparis / main.rs
Created July 10, 2025 08:57
Rust program that runs ffmpeg and generates a cursed video from the specified binary file
use std::fs::metadata;
use std::process::Command;
use std::f64;
fn main() {
let program_path = std::env::args().nth(1).unwrap_or_else(|| {
"/Applications/Ghostty.app/Contents/MacOS/ghostty".to_string()
});
let file_size = metadata(&program_path)
@theoparis
theoparis / log.txt
Created July 2, 2025 08:25
JJThunder To The Max errors on 1.21.5
[01:22:41] [Render thread/ERROR]: Carver: Failed to parse either. First: Not a string: {"air":["minecraft:cave","minecraft:cave_extra_underground","minecraft:canyon"]}; Second: Failed to parse either. First: Not a json array: {"air":["minecraft:cave","minecraft:cave_extra_underground","minecraft:canyon"]}; Second: Input does not contain a key [type]: MapLike[{"air":["minecraft:cave","minecraft:cave_extra_underground","minecraft:canyon"]}]
[01:22:41] [Render thread/ERROR]: Carver: Failed to parse either. First: Not a string: {"air":["minecraft:cave","minecraft:cave_extra_underground","minecraft:canyon"]}; Second: Failed to parse either. First: Not a json array: {"air":["minecraft:cave","minecraft:cave_extra_underground","minecraft:canyon"]}; Second: Input does not contain a key [type]: MapLike[{"air":["minecraft:cave","minecraft:cave_extra_underground","minecraft:canyon"]}]
[01:22:41] [Render thread/ERROR]: Carver: Failed to parse either. First: Not a string: {"air":["minecraft:cave","minecraft:cave_extra_unde
@theoparis
theoparis / bionic-cmake.patch
Last active March 29, 2025 02:40
Android bionic cmake build patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..de6f6c9
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,33 @@
+cmake_minimum_required(VERSION 4.0)
+
+set(CMAKE_DISABLE_SOURCE_CHANGES ON)
+set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
@theoparis
theoparis / luau.scm
Created November 24, 2024 08:38
ugh
(define-module (luau-package))
(use-modules
(guix packages)
(guix download)
(guix build-system cmake)
(guix licenses)
(gnu packages cmake)
(gnu packages pkg-config)
(gnu packages ninja)
@theoparis
theoparis / configure.nu
Created November 16, 2024 05:56
llvm configuration script
(
cmake
-B build
-G Ninja
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-S llvm
-DHAVE_CXX_ATOMICS_WITHOUT_LIB=ON
-DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON
-DLLVM_USE_SPLIT_DWARF=ON
-DLLVM_CCACHE_BUILD=ON