Skip to content

Instantly share code, notes, and snippets.

View hedgehog1029's full-sized avatar
🔮
functional witchery

Henry hedgehog1029

🔮
functional witchery
View GitHub Profile
@maurice-w
maurice-w / RouterOS PPPoE Offloader.md
Last active May 12, 2026 18:23
MikroTik RouterOS PPPoE Offloader

MikroTik RouterOS PPPoE Offloading

This example setup for RouterOS 7.22 configures a MikroTik router as a PPPoE offloader. The router establishes a connection to a PPPoE server (e. g. over GPON or DSL), acquires an IPv4 address and an IPv6 prefix and delegates these to a downstream firewall via DHCP. The MikroTik device acts purely as a router, it has no firewall / NAT rules.

This is motivated by wanting a basic IP over Ethernet connection for the WAN interface of the main firewall (e. g. OPNsense). Specific hardware and protocols required for the WAN uplink are handled by the MikroTik device. RouterOS is known to have a robust PPPoE implementation.

It is assumed that the router has no default configuration like bridges, firewall rules etc.:

@twilight-sparkle-irl
twilight-sparkle-irl / main.cpp
Last active January 26, 2021 02:32
example of what an extremely barebones among us hook looks like (no graphics)
// use il2cppinspector to create a c++ scaffolding project
// import minhook
// replace user/main.cpp with this
// play around! this basically shows you how to hook any function you'd like
// it's obviously not at all what you'd call "complete", but it contains enough stuff i had to figure out through trial and error
#include "pch-il2cpp.h"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <iostream>
@ePirat
ePirat / spec.md
Last active May 3, 2026 16:01
Icecast Protocol specification

Icecast protocol specification

What is the Icecast protocol?

When speaking of the Icecast protocol here, actually it's just the HTTP protocol, and this document will explain further how source clients need to send data to Icecast.

HTTP PUT based protocol

Since Icecast version 2.4.0 there is support for the standard HTTP PUT method. The mountpoint to which to send the data is specified by the URL path.