Skip to content

Instantly share code, notes, and snippets.

View NathanGiesbrecht's full-sized avatar

Nathan Giesbrecht NathanGiesbrecht

View GitHub Profile
@NathanGiesbrecht
NathanGiesbrecht / noip2.service
Last active February 24, 2024 01:32
Systemd Service file for no-ip.com dynamic ip updater
# Simple No-ip.com Dynamic DNS Updater
#
# By Nathan Giesbrecht (http://nathangiesbrecht.com)
#
# 1) Install binary as described in no-ip.com'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
NathanGiesbrecht / gist:6f389b150e15d27b60b6
Created December 10, 2015 15:07
My Google Analytics Referral Spam Filter - These sites are spammers
forex-ninjas\.com|4webmasters\.org|trafficmonetize\.org|webmonetizer\.net|trafficmonetizer\.org|traffic2money\.com|seo-platform\.com|best-seo-software\.xyz|traffic2cash\.net|ranksonic\.net|traffic2cash\.org|boost-my-site\.com
@NathanGiesbrecht
NathanGiesbrecht / software-save
Last active January 29, 2017 20:57
Save Installed Software Centos
#!/bin/bash
# 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
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:
# https://github.com/pagespeed/cpanel
# 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