Skip to content

Instantly share code, notes, and snippets.

View sleepymincy's full-sized avatar
💤
sleeping...

Mincy Queen sleepymincy

💤
sleeping...
  • I ain't workin for corpos!!
  • At your mom's house.
View GitHub Profile
@sleepymincy
sleepymincy / vxlan-over-wg.md
Created June 10, 2026 23:44
VXLAN over Wireguard setup for mDNS LAN discovery in games and other services

This guide will show you how to create a virtual L2 link between 2 Wireguard (or some other L3 tunneling protocol) peers on a network. I will only cover client-to-client connection. I will not cover creating L2 link for site-to-site or client-to-site applications, this is out of scope (but may something I will write about later). This will also only cover creating such tunnel between two Linux hosts. Windows users might have to look into Hyper‑V/SDN VXLAN setup but you're on your own. And as for MacOS users... lol. Seriously though, while you may not have official VXLAN support, you do have alternatives. Look into GRETAP over Wireguard or something like this.

First: why do this client-to-client? Well, you might want to use a specific L2 feature (mDNS / SSDP / DHCP or something else) and relay it between clients. Lots of L3 tunneling protocols (such as Wireguard in my example) cannot relay those. It's especially useful for services and games that use LAN discovery an

@sleepymincy
sleepymincy / yt-rss.sh
Last active July 25, 2025 11:53
How to quickly extract RSS feed of any YT channel without leaving your commandline!
#!/usr/bin/env bash
### You can either do this by creating a script file and adding it to your path, or adding it as a function in your rc file.
## Here is the oneliner you can just put in a script file, and name is something like `yt-rss`:
curl -s https://www.youtube.com/@$1 | grep -Po '<link rel="alternate"[^>]+type="application/rss\+xml"[^>]+href="\K[^"]+'
## Usage: yt-rss <username>, e.g.: yt-rss YouTube
## Will result in: https://www.youtube.com/feeds/videos.xml?channel_id=UCBR8-60-B28hp2BmDPdntcQ
## Here is how the function in your rc file would look like: