Skip to content

Instantly share code, notes, and snippets.

Nathan Giesbrecht NathanGiesbrecht

Block or report user

Report or block NathanGiesbrecht

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@NathanGiesbrecht
NathanGiesbrecht / noip2.service
Last active Feb 9, 2020
Systemd Service file for no-ip.com dynamic ip updater
View noip2.service
# 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 Dec 10, 2015
My Google Analytics Referral Spam Filter - These sites are spammers
View gist:6f389b150e15d27b60b6
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 Jan 29, 2017
Save Installed Software Centos
View software-save
#!/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 Dec 13, 2018
Purge mod_pagespeed cache on WHM server
View gist:972f14f817190f222027
# 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
You can’t perform that action at this time.