Skip to content

Instantly share code, notes, and snippets.

View arkku's full-sized avatar

Kimmo Kulovesi arkku

View GitHub Profile
@arkku
arkku / Makefile
Last active December 15, 2024 16:19
Makefile for Advent of Code
# Makefile for Advent of Code (or similar daily programming puzzles).
# Kimmo Kulovesi, https://github.com/arkku
#
# This allows you to type `make 3` to compile and run all of your
# solutions for the puzzles of day 3 against both the simple test
# case and the real input. It will time each run, and it will show
# the correct answer under each run (from the file `answers.txt`,
# which you must fill in).
#
# NOTE: This does _not_ fetch anything from the Advent of Code servers
@arkku
arkku / Makefile
Last active December 28, 2025 18:35
DKMS makefile for E810 driver intel/ethernet-linux-ice
# Makefile to add the Intel ice driver (E810) as a DKMS module to Debian
#
# Check out the repository https://github.com/intel/ethernet-linux-ice
# into a directory. Put this Makefile into the root of that directory.
# Run `make` as root, which should add the module to DKMS and build it.
# Use `make install` to install, or just `dkms install ice/2.4.5` directly.
# `make clean` to restore the initial state.
#
# When the driver is updated, `git pull` and then just `make` again. It
# should automatically update the version number, as long as the format
@arkku
arkku / unifi-network-config.mongo
Last active January 9, 2026 23:40
Edit subnet in UniFi without a gateway
# mongodump --port 27117 --db ace --out "/srv/mongodb-backup-$(date +%Y%m%d)"
# mongo --port 27117
use ace
# Find network by name
db.networkconf.find({name: "Default"})
# Some of these settings can't be set in the UI without a UniFi gateway,
# but manually setting the `"purpose": "corporate"` makes the subnet
# visible (for reference).