Skip to content

Instantly share code, notes, and snippets.

m68k-none-elf-as -g main.s -o main.o
m68k-none-elf-ld -T main.o -o main.elf
m68k-none-elf-objcopy -O binary main.elf main.bin
buhman /
Last active January 1, 2023 23:15
minimal valid gameboy advance cartridge
arm-none-eabi-as game.s -o game.o
arm-none-eabi-ld -T game.o -o game.elf
arm-none-eabi-objcopy -O binary game.elf game.gba
buhman /
Last active May 21, 2019 01:00
Warcraft 3 Classic Linux Howto
[626279.540555] XFS: Internal error XFS_WANT_CORRUPTED_GOTO at line 988 of file /build/buildd/linux-3.2.0/fs/xfs/xfs_ialloc.c. Caller 0xffffffffa01a8cc1
[626279.540675] Pid: 43087, comm: rsync Not tainted 3.2.0-75-generic #110-Ubuntu
[626279.540678] Call Trace:
[626279.540709] [<ffffffffa01666bf>] xfs_error_report+0x3f/0x50 [xfs]
[626279.540732] [<ffffffffa01a8cc1>] ? xfs_ialloc+0x61/0x650 [xfs]
[626279.540752] [<ffffffffa01a7777>] xfs_dialloc+0x867/0x910 [xfs]
[626279.540772] [<ffffffffa01a8cc1>] xfs_ialloc+0x61/0x650 [xfs]
[626279.540790] [<ffffffffa017a837>] ? kmem_zone_alloc+0x67/0xe0 [xfs]
[626279.540812] [<ffffffffa01b9328>] ? xlog_grant_log_space+0x168/0x1c0 [xfs]
buhman / 00 wpa_cli passphrase network
Last active March 8, 2023 21:51
all wpa_cli ommands can be tab-completed
localhost ~ # cat <<EOF> /etc/wpa_supplicant.conf
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
localhost ~ # wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
localhost ~ # wpa_cli
wpa_cli v2.0
Copyright (c) 2004-2012, Jouni Malinen <> and contributors
Description=Wireless Static IP Connectivity
buhman /
Last active October 13, 2015 08:07 — forked from Apsu/
Arch Linux UEFI Setup
# Gist is stupid and doesn't seem to allow manual selection of syntax highlighting; .sh extension is used for increased readability.
# This is only a guide to show the required steps for successful UEFI + GRUB2 installation
# Many of the choices are examples or assumptions; don't blindly type shit into your machine
# until/unless you at least read the comments around each command
# These steps assume you've booted in UEFI mode by preparing your USB stick per these instructions:
# If you're using an actual CD burned from the official Arch ISO, just make sure you've booted it in UEFI mode