Skip to content

Instantly share code, notes, and snippets.

View Dominaezzz's full-sized avatar

Dominic Fischer Dominaezzz

View GitHub Profile
@theodric
theodric / zyxel_nr7101_setup_hacks_tips_and_tweaks.txt
Last active December 7, 2025 12:19
Zyxel NR7101 setup/hacks/tips and tweaks
0. Don't have a SIM card in when you're updating radio firmware or it will bomb out partway through as it changes from internal IP to IP passthrough
1. Disable external IP passthrough mode: Network Setting -> Broadband -> Cellular APN -> #1 -> Modify icon -> "IP Passthrough" slider to off
2. Use "management" Wi-Fi AP as general Wi-Fi AP (with limitations) -> Network Setting -> Bridge1 -> Modify icon -> Move the Wi-Fi AP interface to the pane on the right alongside LAN1
NOTE: by default, once you do the above, the router will happily pass traffic from devices on the Wi-Fi AP to other devices on the LAN1 subnet, but will block traffic originating from the Wi-Fi AP from exiting to the Internet via the LTE side of the device. You can clumsily hack around this by setting another device, e.g. another Wi-Fi AP or Raspberry Pi or Cray supercomputer, as the default gateway for the LAN1 subnet in your DHCP server config, and pointing *that* device at the Zyxel as *its* default GW. This adds additional hops, but enabl
@fatihkaan22
fatihkaan22 / spotify-kill-pulse-client.sh
Last active May 23, 2024 11:45
Kills unused spotify pulseaudio instances
#! /bin/bash
spotifyInstances=()
while read LINE1; read LINE2; do
IFS=':-='
read -ra L1 <<< $LINE1
read -ra L2 <<< $LINE2
@kiler129
kiler129 / prevent-host-driver-in-pci-pass.md
Last active October 20, 2025 16:55
Definitely prevent stubborn devices from being bound by the host driver in PCI passthrough scenario

Deprecated

The method described in this gist has been deprecated/superceeded by kiler129/early-vfio-pci-isolate tool.
It is more robust, configurable, and doesn't hack around scripts that are sometimes overwritten by system updates. The tool uses similar methods to the ones described below, but extends the capabilities by e.g. easy NVMe passthrough by S/N.

The description below has been preserved for historical context. At the time of writing, the tool above has been tested for ~6 months across multiple systems.




@kaiwan
kaiwan / errno_codes.txt
Last active August 11, 2025 06:13
Linux errno values
errno.h - C Error Codes in Linux
All the Linux/C error codes are listed below.
I occasionally google C error codes, but always end up grepping through /usr/include to find the answer.
<<
UPDATE : 07July2025
There's a utility named `errno`, part of the `moreutils` package; once installed, you can simply run
`errno -l`
to see all possible errno's and their English error message!