Skip to content

Instantly share code, notes, and snippets.

View maxfield-allison's full-sized avatar

Maxfield Allison maxfield-allison

View GitHub Profile
@si458
si458 / virt-customize-ubuntu24
Last active May 24, 2025 14:37
virt-customize ubuntu22
#!/bin/sh
# install tools
apt update -y && apt install nano wget curl libguestfs-tools -y
# remove old image
rm -rfv current/noble-server-cloudimg-amd64.img
# remove old template container - WILL DESTROY COMPLETELY
qm destroy 9000 --destroy-unreferenced-disks 1 --purge 1
# download new image
wget https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img
# add agent to image
@coltonbh
coltonbh / docker-swarm-gpu.md
Last active June 13, 2025 01:50
Docker Swarm GPU Support

GPU Support For Docker Swarm

Docker compose has nice support for GPUs, K8s has moved their cluster-wide GPU scheduler from experimental to stable status. Docker swarm has yet to support the device option used in docker compose so the mechanisms for supporting GPUs on swarm are a bit more open-ended.

Basic documentation

@ixs
ixs / intel_x520_patcher.py
Last active July 7, 2025 10:14
Intel x520 EEPROM Patcher allows to unlock the x520 network card to work with non-intel branded SFP modules.
#!/usr/bin/env python3
#
# Simple Intel x520 EEPROM patcher
# Modifies the EEPROM to unlock the card for non-intel branded SFP modules.
#
# Copyright 2020,2021,2022 Andreas Thienemann <[email protected]>
#
# Licensed under the GPLv3
#
# Based on research described at https://forums.servethehome.com/index.php?threads/patching-intel-x520-eeprom-to-unlock-all-sfp-transceivers.24634/