Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block mrverrall

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
View pf_active_clients
: << =cut
=head1 NAME
Packetfence Clients
=head1 AUTHOR
View gist:ac6aa97c427faf7ebab1616018115ff5
# Local and established are just fine
-A INPUT -i lo -j ACCEPT
-A INPUT -d ! -i lo -j REJECT --reject-with icmp-port-unreachable
# SSH Rate Limiting
-I INPUT -p tcp --dport 22 -m state --state NEW -m recent --set
-I INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 3 -j DROP
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
View build-theme-cache.php
# For Moodle 3.3
# This script belongs in ./admin/cli/
# Copyright 2017 Paul Verrall
define('CLI_SCRIPT', true);

Keybase proof

I hereby claim:

  • I am mrverrall on github.
  • I am mrverrall ( on keybase.
  • I have a public key ASD1zgZPt7UftFI0emlJP1DCXJb47n5VQln14qgbOzV0Ugo

To claim this, I am signing this object:

View gist:d2c108b2afe71070e81c8b14bd26caf0
verrall@syenite:~$ wget -S -O /dev/null
--2016-04-25 16:23:52--
Resolving ( 2a01:8900:0:2::902
Connecting to (|2a01:8900:0:2::902|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.10
Date: Mon, 25 Apr 2016 15:23:52 GMT
Content-Type: text/html
Content-Length: 185
mrverrall /
Last active Apr 23, 2019
A script that installs and configures all the core components for moodle on RHEL/Centos 7 leaving you with a running site complete with AV scanning and Memcached
# This Bash script installs Moodle ( and all it's
# requirements into a freshly installed Centos or RHEL 7 operating system.
# It assumes an 'Enforced' SELinux environment and configures the system
# accordingly.
# It is designed to be instructional and clear to read to persons unfamiliar
# with Bash and as such does *no* sanity checking before taking actions.
# Becasue of this *great* care should be taken if you feel the urge to run
from energenie import switch_on, switch_off
import ephem
sun = ephem.Sun()
home = ephem.Observer()'54.047'
last_rise = home.previous_rising(sun)
last_set = home.previous_setting(sun)
View gist:dbef5202921872abdf05
Received: by with SMTP id u20csp394118ldt;
Wed, 8 Oct 2014 01:22:01 -0700 (PDT)
X-Received: by with SMTP id sd9mr13572922igb.19.1412756520555;
Wed, 08 Oct 2014 01:22:00 -0700 (PDT)
Return-Path: <>
Received: from ( [])
by with ESMTPS id uu7si1935521icb.0.2014.
for <>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
mrverrall / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:7825807
868 clarkema@odin:~ > cat foo
869 clarkema@odin:~ > cat foo | perl -waln -F'\.' -e 'print join ".", reverse @F' | sort
You can’t perform that action at this time.