Skip to content

Instantly share code, notes, and snippets.

View NathanGiesbrecht's full-sized avatar

Nathan Giesbrecht NathanGiesbrecht

View GitHub Profile
NathanGiesbrecht / noip2.service
Last active February 24, 2024 01:32
Systemd Service file for dynamic ip updater
# Simple Dynamic DNS Updater
# By Nathan Giesbrecht (
# 1) Install binary as described in's source file (assuming results in /usr/local/bin)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2`
NathanGiesbrecht / gist:6f389b150e15d27b60b6
Created December 10, 2015 15:07
My Google Analytics Referral Spam Filter - These sites are spammers
NathanGiesbrecht / software-save
Last active January 29, 2017 20:57
Save Installed Software Centos
# A script to save installed software list automatically to Github
# Clone this Gist
git clone <this gist URL>
# Dump list of all installed software
rpm -qa > ~/installed-software.log
NathanGiesbrecht / gist:972f14f817190f222027
Last active December 13, 2018 07:20
Purge mod_pagespeed cache on WHM server
# This will clear the mod_pagespeed cache on a server that's had it installed via the cPanel script here:
# The location of the cache file may change, it can be found in the pagespeed.conf file located at /usr/local/apache/conf/
# The cache location is set by ModPagespeedFileCachePath variable
touch /var/mod_pagespeed/cache/cache.flush