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 json_page.yml
langcode: en
status: true
dependencies: { }
id: json_page
- Example
migration_group: mymodule
label: 'JSON Pages'
plugin: url
View migrate_media_handler.patch
diff --git a/ b/
index 0f9eb39..0e8e053 100644
--- a/
+++ b/
@@ -5,7 +5,4 @@ package: 'Migrate'
core: '8.x'
- drupal:migrate
- - drupal:migrate_plus
- - drupal:migrate_tools
xurizaemon / migration_from_form_submit.php
Created Jul 10, 2019
Running a Drupal migration from form submit
View migration_from_form_submit.php
// You should probably just read Migrate Source UI code :) but ...
$migration_id = $form_state->getValue('migrations');
// Aha! We'll target the final migration, and let Migration
// dependencies do the legwork of starting the other two.
$migration_id = str_replace('node', 'media', $migration_id);
/** @var \Drupal\migrate\Plugin\Migration $migration */
$migration = $this->pluginManagerMigration->createInstance($migration_id);
xurizaemon / FeatureContext.php
Created Jun 19, 2019
drupal screenshot on test failure
View FeatureContext.php
// Extracted from FeatureContext.php in Behat.
// This may also require a Behat patch?
/** @AfterStep */
public function takeScreenshotOnFail(Behat\Behat\Hook\Scope\AfterStepScope $scope) {
if (99 === $scope->getTestResult()->getResultCode()) {
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.
You can’t perform that action at this time.