Skip to content

Instantly share code, notes, and snippets.

View gangefors's full-sized avatar

Stefan Gangefors gangefors

  • Gangefors Programmering AB
  • Lund, Sweden
View GitHub Profile
@gangefors
gangefors / youtube-playlist-sort-by-runtime.user.js
Last active July 4, 2026 16:18
YouTube Playlist UserScripts
// ==UserScript==
// @name YouTube Playlist Sort by Runtime
// @namespace https://tampermonkey.net/
// @version 1.0.0
// @description Permanently sorts a playlist you own by video runtime, via YouTube's internal edit_playlist API. Includes Undo.
// @author Claude Fable 5
// @match https://youtube.com/*
// @match https://www.youtube.com/*
// @run-at document-idle
// @grant none
@gangefors
gangefors / Install FreeNAS SCALE on a partition and create a mirror.md
Last active June 18, 2026 11:16
How to install TrueNAS SCALE on a partition instead of the full disk

Install TrueNAS SCALE on a partition instead of the full disk

The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.

The easiest way to solve this is to modify the installer script before starting the installation process.

@gangefors
gangefors / adlchecker.py
Last active January 18, 2022 20:29
ADL Checker for AirDC++w
# Script moved to <https://github.com/gangefors/docker-airdcpp-adlchecker>