Skip to content

Instantly share code, notes, and snippets.

@CodeAdminDe
CodeAdminDe / docker-compose.yaml
Created June 23, 2025 18:06
Talos PXE boot from factory with netboot.xyz
---
services:
netbootxyz:
image: ghcr.io/netbootxyz/netbootxyz
container_name: netbootxyz
environment:
- MENU_VERSION=2.0.84 # optional
- NGINX_PORT=80 # optional
- WEB_APP_PORT=3000 # optional
- TFTPD_OPTS='--tftp-single-port'
@adultalldabloons
adultalldabloons / GameMaster.sh
Last active February 21, 2026 15:07
Myrient downloader for ArkOS
#!/bin/bash
# Licensed under the MIT License – https://opensource.org/licenses/MIT
DOWNLOAD_LOCATION="/roms"
if mountpoint -q /roms2; then
DOWNLOAD_LOCATION="/roms2"
fi
declare -A system_to_url
# a general "room" yaml file.
# all of the other rooms are essentially the same
# the only differences are the parameters for the `glanece` card and the `room` template
title: Foyer
icon: mdi:door
type: custom:vertical-stack-in-card
cards:
- type: glance
show_header_toggle: false
columns: 3
@slok
slok / pprof.md
Last active February 23, 2026 11:09
Go pprof cheat sheet

Enable profiling

Default http server

import (
    _ "net/http/pprof"
    "net/http"
)
@robinsmidsrod
robinsmidsrod / _INSTALL.md
Last active February 8, 2026 02:47
Bootstrapping full iPXE native menu with customizable default option with timeout (also includes working Ubuntu 12.04 preseed install)

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup