Skip to content

Instantly share code, notes, and snippets.

Avatar
🦕
☄️

Colin Wilson colinwilson

🦕
☄️
View GitHub Profile
View Craft3ValetDriver.php
<?php
class Craft3ValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
View apple_app_store_badge.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View google_play_badge.svg
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 Aug 15, 2018
CloudFlare: Clear cache and enable development mode via API
View cf_clr_cache_dev_mode.sh
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 Aug 17, 2018
random json data
View data.json
[
{
"code": "ZA"
},
{
"code": "VN"
},
{
"code": "IN"
},
View data_sm.json
[
{
"code": "ZA"
},
{
"code": "VN"
},
{
"code": "IN"
},
View KEMP HTML SSO Greeting Message.html
<img src="https://i.imgur.com/exPeDfZ.png"/><h2 style="font-weight:700">Authorised Access Only!</h2>
View KEMP SSO Image Set Structure.txt
imagesets/
<IMAGESETNAME>/
lm_initial.html
lm_logout.html
MANIFEST
...
View KEMP SSO Image Set MANIFEST example.txt
# Default manifest of all files that are part of the logon
# screens.
#ident "$Id: EN-Colin-Wilson-Basic.manifest 16042 2018-02-28 10:16:37Z phil $ phil"
#
# Format is "filename filetype".
# The first file is the initial login screen
# The second file is the logout screen.
#
lm_initial.html