Skip to content

Instantly share code, notes, and snippets.

View devgianlu's full-sized avatar

devgianlu devgianlu

View GitHub Profile
@devgianlu
devgianlu / ffmpeg_proxy.go
Created April 15, 2024 14:16
Some scripts to download videos from Microsoft Stream Classic
package main
import (
"github.com/elazarl/goproxy"
"net/http"
"regexp"
)
const Cookie = "" // TODO
@devgianlu
devgianlu / generate_runners.py
Created February 5, 2024 17:56
Utility script to generate a docker-compose.yml for multiple GitHub self-hosted runners
#!/usr/bin/env python3
import json
service_block = """
worker_{org_clean}_{name_clean}:
image: myoung34/github-runner
restart: unless-stopped
environment:
REPO_URL: https://github.com/{org}/{name}
@devgianlu
devgianlu / setup-vx-leaf.sh
Last active February 5, 2024 17:53
VXLAN over Tailscale
#!/bin/bash
# https://vincent.bernat.ch/en/blog/2017-vxlan-linux#unicast-with-static-flooding
ROOT_TS_IP=100.90.17.91
LEAF_TS_IP=100.120.82.82
# create vxlan device
ip link add name vxlan100 type vxlan id 100 local $LEAF_TS_IP dev tailscale0 dstport 4789
bridge fdb append 00:00:00:00:00:00 dev vxlan100 dst $ROOT_TS_IP