Skip to content

Instantly share code, notes, and snippets.

@DasSkelett
DasSkelett / etc_kea_ipv6-routes.sh
Last active September 21, 2024 22:48
Unicast DHCPv6 Prefix Delegation over WireGuard
#!/bin/sh 23:47:56 [33/1865]
# https://glindhart.dk/2022/10/15/ipv6-prefixdelegation-routing.html
# https://kea.readthedocs.io/en/latest/arm/hooks.html#libdhcp-run-script-so-run-script-support-for-external-hook-scripts
# This script adds/removes IPv6 routes and updates WireGuard AllowedIPs on prefix-delegation from KEA/DHCP server
wg_add() {
local prefix="$1"
@DasSkelett
DasSkelett / migrate.lua
Created March 3, 2024 15:05
FFULM Migration Script
#!/usr/bin/lua
-- Install at /lib/setup-mode/rc.d/S14-migrate (chmod +x)
local site = require 'gluon.site'
local uci = require('simple-uci').cursor()
local util = require 'gluon.util'
local pretty_hostname = require 'pretty_hostname'
@DasSkelett
DasSkelett / dotnet-publish.md
Last active July 1, 2021 14:50
Building & publishing .NET 5 applications for Linux

Building & publishing .NET 5 applications for Linux

In contrast to Mono with .NET Framework .exes, you can't run .NET 5 .exe files on Linux even with the runtime installed.

So while for the .NET Framework you only needed to compile a single .exe which could run on all platforms thanks to Mono, with .NET 5 you need to build one executable/binary for each platform...

~~On the plus side, this binary is basically just a small starter binary (if you don't compile in single file mode), which then loads all the real application and all its endencies as DLLs, which should be the same for all platforms.