Skip to content

Instantly share code, notes, and snippets.

View chrisboulton's full-sized avatar
🚩

Chris Boulton chrisboulton

🚩
View GitHub Profile
### Keybase proof
I hereby claim:
* I am chrisboulton on github.
* I am chrisboulton (https://keybase.io/chrisboulton) on keybase.
* I have a public key whose fingerprint is 1605 E39B FAA0 B41A 7DED D407 C009 1034 0E8B B73F
To claim this, I am signing this object:
>+++++++++[<++++++++>-]<.
graphite::schema { 'collectd':
priority => 2,
pattern => '^collectd\.',
retentions => ['10s:3d', '60s:30d', '5m:1y' , '30m:2y'],
}
@chrisboulton
chrisboulton / gist:40ac2e5e9c688dabccb9
Created August 18, 2014 03:37
There's been a constant stream of crazy in my personal inbox as of late. I'm not quite sure what to make of the below, but someone seems to be seriously confused and assume I run/control all MyBB powered forums. How do I handle this?
Trolling on forums
------------------
Tracey Burt <****@outlook.com> Sat, Aug 16, 2014 at 11:08 PM
To: "chris@chrisboulton.com" <chris@chrisboulton.com>
Dear Chris
I have been subject to trolling for nearly three years now, among other
sinister things, on some of the forums you create the platform for. I am a bit
over it all.
ahngaechaP9baet9xa6Ahcooyookoozifai6Ziuc9eiy1te7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMSAx
IDEAEAGAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj
dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltiaWttcn2GjpGa
<div class="Block Moveable Panel" id="MyOwnCode">
<h2>Heading</h2>
<div class="BlockContent">
<p>Hello, world!</p>
</div>
</div>
<?php
// includes/classes/class.category.php. Add before:
// $GLOBALS['ISC_CLASS_TEMPLATE']->SetPageTitle($this->BuildTitle());
$bodyClasses = '';
$parents = explode(',', $this->Data['catparentlist']);
foreach($parents as $parent) {
if(!trim($parent)) {
continue;
Title tag:
<title>%%Page.WindowTitle%%</title>
Meta tags:
<meta name="description" content="%%Page.MetaDescription%%" />
<meta name="keywords" content="%%Page.MetaKeywords%%" />
<?php
/**
* Several improvements to the visitor HTML tracking code in Kayako SupportSuite
* (replaces modules/livechat/visitor_htmlcode.php)
*
* - Automatic updates of live chat status images/text when the operator status changes in Kayako - no longer needs a page refresh.
* - Clean up the indicator Javascript, keep all instances under a clean single class rather than a heap of variableSuffix based functions.
* - Have Firefox browser version detected correctly instead of Gecko/Mozilla.
* - Have several other browsers also correctly identified.
* - Replace <img> tag status updating/footprint updating with an AJAX request (or <script> tags across domains)