Skip to content

Instantly share code, notes, and snippets.

@buhman
buhman / uefisetup.sh
Last active October 13, 2015 08:07 — forked from Apsu/uefisetup.sh
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:
# https://wiki.archlinux.org/index.php/UEFI#Archiso
#
# If you're using an actual CD burned from the official Arch ISO, just make sure you've booted it in UEFI mode
[Unit]
Description=Wireless Static IP Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-eth0.device
After=sys-subsystem-net-devices-eth0.device
[Service]
Type=oneshot
RemainAfterExit=yes
@buhman
buhman / 00 wpa_cli passphrase network
Last active July 18, 2024 07:46
all wpa_cli ommands can be tab-completed
localhost ~ # cat <<EOF> /etc/wpa_supplicant.conf
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
update_config=1
EOF
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 <[email protected]> and contributors
#empty
[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.540558]
[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
buhman / howto.md
Last active May 21, 2019 01:00
Warcraft 3 Classic Linux Howto
@buhman
buhman / build.sh
Last active June 26, 2024 23:09
minimal valid gameboy advance cartridge
arm-none-eabi-as game.s -o game.o
arm-none-eabi-ld -T game.lds game.o -o game.elf
arm-none-eabi-objcopy -O binary game.elf game.gba
m68k-none-elf-as -g main.s -o main.o
m68k-none-elf-ld -T main.lds main.o -o main.elf
m68k-none-elf-objcopy -O binary main.elf main.bin