Skip to content

Instantly share code, notes, and snippets.

View Azkali's full-sized avatar

The Great Wizard Azkali Azkali

View GitHub Profile
@Azkali
Azkali / haos_fedora_switch.sh
Created July 17, 2025 15:35
HomeAssistant OS on L4T Fedora Nintendo Switch
#!/bin/bash
HAOS_VERSION=${HAOS_VERSION:-"16.0"}
if ! command -v qemu-system-aarch64 >/dev/null 2>&1
then
dnf in -y edk2-ovmf qemu-system-aarch64 seavgabios-bin
fi
if [[ ! -e haos_generic-aarch64-${HAOS_VERSION}.qcow2 ]]; then
@Azkali
Azkali / wsl-chroot
Last active December 20, 2023 23:29
wsl-chroot
#!/bin/bash
[ $(id -u) != 0 ] && exit
[ ! -d $1 ] && exit
daemonize /usr/bin/unshare -fp --mount-proc /lib/systemd/systemd --system-unit=basic.target
cat /usr/lib/binfmt.d/qemu-aarch64-static.conf | tee /proc/sys/fs/binfmt_misc/register > /dev/null
cp /usr/bin/qemu-aarch64-static $1/usr/bin/
mount -o bind /proc $1/proc
mount -o bind /dev $1/dev
@Azkali
Azkali / BoardInit.txt
Last active May 4, 2025 18:30
Board was not initialzied properly. Hang prevented
WARNING: Be very very careful when following those steps, you **could** cause permanent and unexpected damages to your console if
You don't follow the exact steps of this guide OR perform extra steps not specified in this guide AND followed when not STRICTLY NEEDED
WARNING 2: DO NOT FLASH FIRMWARE.BIN
If you get the message "Board was not initialized properly. Hang prevented." while booting Linux or Android on Mariko:
1. Get this https://github.com/hwfly-nx/hwfly-toolbox/releases/download/1.1.1/hwfly_toolbox.bin
2. Put it in `sdcard:/bootloader/payloads`
3. Get this https://github.com/hwfly-nx/firmware/releases/download/0.7.1/release_071.zip
@Azkali
Azkali / gist:4e43d38b53b228f6917ed8f34549acb8
Created December 24, 2021 15:39
m4-1.4.18-glibc-sigstksz.patch
diff --git a/lib/c-stack.c b/lib/c-stack.c
index 5353c08..863f764 100644
--- a/lib/c-stack.c
+++ b/lib/c-stack.c
@@ -51,13 +51,14 @@
typedef struct sigaltstack stack_t;
#endif
#ifndef SIGSTKSZ
-# define SIGSTKSZ 16384
-#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384