Skip to content

Instantly share code, notes, and snippets.

slurpin ma tea thru choccy gingernuts

Chris Burgess xurizaemon

slurpin ma tea thru choccy gingernuts
Block or report user

Report or block xurizaemon

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 gist:5cbde3e2e6abe67e320b70c29e66b0a8
admin_toolbar: '8.x-1.26'
anchor_link: 1.1
anchor_link: '8.x-1.6'
better_exposed_filters: '8.x-3.0-alpha6'
bootstrap_layouts: '8.x-5.1'
captcha: '8.x-1.0-beta1'
ckeditor_media_embed: VERSION
ckeditor_media_embed: '8.x-1.3'
ckeditor_templates: '8.x-1.1'
color_field: '8.x-2.0'
View rm63544-settings.local.php
commit 1a0d98b810ce1b686c8750d680f8edce153633e1
Author: Chris Burgess <>
Date: Mon Mar 18 14:49:57 2019 +1300
RM#63544 - Use settings.local.php
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index 5bcecc267f..2deefef67c 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
xurizaemon /
Last active Feb 25, 2019
ISIG dunedin announce

Announcing the Dunedin chapter of the NZ Information Security Interest Group (

The first meeting of the Dunedin ISIG will be: 6pm to 8pm, Thursday 7th March 2019, on Level One at Petridish shared office space, 8 Stafford Street, Dunedin.

Please RSVP to so we can make sure we have a room big enough for you all!

This and future meetings are intended to be free; there is no cost for "membership" of the ISIG. Please come along if you're working in the Information Security world and want to share your knowledge; please come along if you are NOT working in InfoSec and want to learn!

Proposed meeting topics :-

View tumblr.rb
require 'pp'
require 'lolcommits/plugin/base'
require 'lolcommits/cli/launcher'
require 'oauth'
require 'webrick'
require 'cgi'
require 'tumblr_client'
module Lolcommits
module Plugin
xurizaemon / output.txt
Created Dec 12, 2018
drush help config:set
View output.txt
$ drush help config:set
Set config value directly. Does not perform a config import.
drush config:set page.front node Sets to "node".
config_name The config object name, for example "".
key The config key, for example "page.front".
[value] The value to assign to the config key. Use '-' to read from STDIN.
xurizaemon / output.txt
Created Nov 30, 2018
urls & ampersands in shell env
View output.txt
$ ./
[1] 7753
$1 is
[1]+ Done ./
$ ./ ""
$1 is
xurizaemon / TransformUid.php
Created Nov 6, 2018
transforming uid=1 to uid=3, leave the rest the same
View TransformUid.php
namespace Drupal\foo_migrate\Plugin\migrate\process;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row;
* Replace uid=1 with uid=3
xurizaemon / drupal-logger-console-colours.php
Last active Nov 6, 2018
Drush & Drupal logger output
View drupal-logger-console-colours.php
foreach (['alert', 'critical', 'debug', 'emergency', 'error', 'info', 'notice', 'warning'] as $type) {
->$type('This is a message of type @type', ['@type' => $type]);
View mailchimp-2774931-drupal_set_message_to_new_messenger_interface.patch
commit 6f867351ee0161586af846e31b2fed9817d1d964
Author: Chris Burgess <>
Date: Tue Nov 6 09:36:56 2018 +1300
Issue #2998712: Replace drupal_set_message() with \Drupal::messenger()->addMessage()
diff --git a/modules/mailchimp_campaign/mailchimp_campaign.module b/modules/mailchimp_campaign/mailchimp_campaign.module
index 268fc76..6134969 100644
--- a/modules/mailchimp_campaign/mailchimp_campaign.module
+++ b/modules/mailchimp_campaign/mailchimp_campaign.module
xurizaemon / AliasStorage.php
Created Nov 2, 2018
modified Drupal\Core\Path\AliasStorage.php to drop PgSQL ILIKE + cast for performance
View AliasStorage.php
namespace Drupal\Core\Path;
use Drupal\Core\Cache\Cache;
use Drupal\Core\Database\Connection;
use Drupal\Core\Database\SchemaObjectExistsException;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Database\Query\Condition;
You can’t perform that action at this time.