Skip to content

Instantly share code, notes, and snippets.

View skylerwlewis's full-sized avatar

Skyler Lewis skylerwlewis

View GitHub Profile
@skylerwlewis
skylerwlewis / docker-compose.yml
Last active April 28, 2025 18:36
Routing wg-easy container traffic through Gluetun container
# https://gist.github.com/skylerwlewis/f009741cd20d8ab86ce65d67accccc3f
#
# This is a Gluetun + wg-easy docker compose setup based on instructions I found here:
# https://lemmy.max-p.me/post/midwest.social/14630711
#
# In addition to the logic in the link above, I added:
# - wg-easy to simplify client setup and PostUp & PostDown modifications
# - Auto-restart capability for wg-easy container if Gluetun goes down
#
# If you are using 172.22.0.0/24 already, simply change "172.22" to a different subnet.
@skylerwlewis
skylerwlewis / docker-compose.yml
Last active January 26, 2025 14:47
Routing Wireguard container traffic through Gluetun container
# https://gist.github.com/skylerwlewis/50dd3dd628a5198ea29cfbcbf21783ac
#
# This is a Gluetun + Wireguard + Wireguard-UI docker compose setup based on instructions I found here:
# https://lemmy.max-p.me/post/midwest.social/14630711
#
# In addition to the logic in the link above, I added:
# - Wireguard-UI to simplify client setup and PostUp & PostDown modifications
# - Auto-restart capability for Wireguard & Wireguard-UI containers if Gluetun goes down
#
# After copying this file to your desired directory, run the following to setup the containers:
@skylerwlewis
skylerwlewis / netlify-ddns.sh
Last active October 29, 2024 01:24
Netlify Dynamic DNS
#!/bin/bash
#
# This is a Bash script to update a Netlify subdomain A record with the current external IP.
#
# Repo: https://github.com/skylerwlewis/netlify-ddns
# Gist: https://gist.github.com/skylerwlewis/ba052db5fe26424255674931d43fc030
#
# Usage:
# netlify-ddns.sh <ACCESS_TOKEN> <DOMAIN> <SUBDOMAIN> <TTL> [<CACHED_IP_FILE>]
#