Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Hamlin seanhamlin

View GitHub Profile
View plexUpdate.sh
#!/bin/bash
# Script to Auto Update Plex on Synology NAS
#
# Must be run as root.
#
# @author Martino https://forums.plex.tv/u/Martino
# @see https://forums.plex.tv/t/script-to-auto-update-plex-on-synology-nas-rev4/479748
mkdir -p /tmp/plex/
@seanhamlin
seanhamlin / recv.vcl
Created Nov 11, 2021
Strip analytics (Google, Facebook etc) query parameters in Fastly
View recv.vcl
# Query string stripping for web analytics.
#
# Currently stripped query parameteres include:
# - Google Analytics
# - Google Adwords (Doubleclick)
# - Facebook
set req.http.X-Original-Url = req.url;
set req.url = querystring.globfilter(req.url, "utm_*");
set req.url = querystring.filter(req.url,
"fbclid" + querystring.filtersep() +
@seanhamlin
seanhamlin / .lagoon.yml
Created Jun 23, 2022
Static Nginx container
View .lagoon.yml
docker-compose-yaml: docker-compose.yml
environments:
production:
routes:
- nginx:
- "www.example.com"