Skip to content

Instantly share code, notes, and snippets.

@codedipper
codedipper / install.sh
Created November 15, 2024 12:20
GUI Arch Linux in QEMU; PulseAudio, TPM 2.0 and secure boot
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
VHDD=archlinux-vm.qcow2
VCD=archlinux-2024.10.12-x86_64.iso
CDLINE=
clean(){
echo "Do you really want to remove everything?"
read -r l
@codedipper
codedipper / install.sh
Last active November 15, 2024 12:16
Terminal-only Alpine Linux in QEMU; output directed to stdio
#!/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
VHDD=alpinelinux-vm.qcow2
VCD=alpine-virt-3.20.3-x86_64.iso
CDLINE=
clean(){
echo "Do you really want to remove everything?"
read -r l
@codedipper
codedipper / stk-code-1.4-patch.diff
Last active October 19, 2024 02:30
When compiling Vulkan components for SuperTuxKart 1.4 on newer versions of GCC (last tested with 14.2.1), you may see missing headers. This patch includes them.
diff --git a/lib/graphics_engine/include/vk_mem_alloc.h b/lib/graphics_engine/include/vk_mem_alloc.h
index bdb4ff576..df1f5d98f 100644
--- a/lib/graphics_engine/include/vk_mem_alloc.h
+++ b/lib/graphics_engine/include/vk_mem_alloc.h
@@ -2645,6 +2645,7 @@ remove them if not needed.
#include <cassert> // for assert
#include <algorithm> // for min, max
#include <mutex>
+ #include <cstdio>
#else