Skip to content

Instantly share code, notes, and snippets.

View colinwilson's full-sized avatar
⚗️

Colin Wilson colinwilson

⚗️
View GitHub Profile
@colinwilson
colinwilson / Craft3ValetDriver.php
Created April 28, 2018 15:06 — forked from brianjhanson/Craft3ValetDriver.php
Valet Driver for Craft 3
<?php
class Craft3ValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
@colinwilson
colinwilson / kemp-cert-update.sh
Created June 30, 2018 14:46
Bash script to update certificates on KEMPs Loadmaster Load balancer via pfSense's ACME package.
#!/bin/sh
#
# Title: Auto-Update & Upload LetsEncrypt Certs to KEMP LoadMaster
# Guide/Source: https://colinwilson.uk/2017/06/19/auto-update-ssl-certificates-on-kemp-loadmaster-via-pfsense--lets-encrypt/
# Created: 12/06/2017
# Author: Colin Wilson @colinwilson
# Vendor or Software Link: https://www.pfsense.org/ , https://kemptechnologies.com
# Version: 1.1.0
# Category: BASH Shell Script
@colinwilson
colinwilson / apple_app_store_badge.svg
Created July 18, 2018 12:01
Apple App Store Badge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@colinwilson
colinwilson / google_play_badge.svg
Created July 18, 2018 12:02
Google Play Badge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@colinwilson
colinwilson / cf_clr_cache_dev_mode.sh
Created August 15, 2018 03:27
CloudFlare: Clear cache and enable development mode via API
email=colin@wyveo.com
tkn=<API KEY>
domain=wyveo.com
zone=$(curl -s -X GET "https://api.CloudFlare.com/client/v4/zones?name=${domain}&status=active&page=1&per_page=20&order=status&direction=desc&match=all" \
-H "X-Auth-Email: ${email}" \
-H "X-Auth-Key: ${tkn}" \
-H "Content-Type: application/json")
zone=${zone:18:32}
@colinwilson
colinwilson / data.json
Created August 17, 2018 11:32
random json data
[
{
"code": "ZA"
},
{
"code": "VN"
},
{
"code": "IN"
},
[
{
"code": "ZA"
},
{
"code": "VN"
},
{
"code": "IN"
},
Welcome to Colin Wilson&#39;s Outlook Web Access
<img src="https://i.imgur.com/exPeDfZ.png"/><h2 style="font-weight:700">Authorised Access Only!</h2>
imagesets/
<IMAGESETNAME>/
lm_initial.html
lm_logout.html
MANIFEST
...