Skip to content

Instantly share code, notes, and snippets.

@adultalldabloons
adultalldabloons / GameMaster.sh
Last active December 10, 2025 15:34
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 November 23, 2025 09:06
Go pprof cheat sheet

Enable profiling

Default http server

import (
    _ "net/http/pprof"
    "net/http"
)
@robinsmidsrod
robinsmidsrod / _INSTALL.md
Last active December 20, 2025 20:58
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