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
@xurizaemon
xurizaemon / SA-CORE-2019-09-8.6.x.patch
Last active Dec 19, 2019
8.6.x backports for SA-CORE-2019-09 SA-CORE-2019-10 SA-CORE-2019-11 SA-CORE-2019-12
View SA-CORE-2019-09-8.6.x.patch
commit 96a625132a34cdf092bc9d19afde3f96eb0687d0
Author: Lee Rowlands <lee.rowlands@previousnext.com.au>
Date: Wed Dec 18 18:55:10 2019 +1000
SA-CORE-2019-009 by mcdruid, larowlan, Heine, alexpott, xjm, DamienMcKenna, dsnopek, catch, greggles
diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index aed688d8be..f380d7ef12 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
View foo.tar
foo/0000755015454201545420000000000013576466645013677 5ustar chrisburgesschrisburgessfoo/hello-2.txt0000644015454201545420000000001013576466645015671 0ustar chrisburgesschrisburgess
View test-d8-patch.diff
diff --git a/example.gitignore b/example.gitignore
index 7cc3227974..9806966eee 100644
--- a/example.gitignore
+++ b/example.gitignore
@@ -1,3 +1,5 @@
+# This file is patched
+#
# This file contains default .gitignore rules. To use it, copy it to .gitignore,
# and it will cause files like your settings.php and user-uploaded files to be
# excluded from Git version control. This is a common strategy to avoid
View test-d8-patch.diff
diff --git a/INSTALL.txt b/INSTALL.txt
index 2ee9ad89b8..1e4712ae84 100644
--- a/INSTALL.txt
+++ b/INSTALL.txt
@@ -1,3 +1,4 @@
+This file was patched
Please read core/INSTALL.txt for detailed installation instructions for your
Drupal web site.
View json_page.yml
langcode: en
status: true
dependencies: { }
id: json_page
migration_tags:
- Example
migration_group: mymodule
label: 'JSON Pages'
source:
plugin: url
View migrate_media_handler.patch
diff --git a/migrate_media_handler.info.yml b/migrate_media_handler.info.yml
index 0f9eb39..0e8e053 100644
--- a/migrate_media_handler.info.yml
+++ b/migrate_media_handler.info.yml
@@ -5,7 +5,4 @@ package: 'Migrate'
core: '8.x'
dependencies:
- drupal:migrate
- - drupal:migrate_plus
- - drupal:migrate_tools
@xurizaemon
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
xurizaemon / FeatureContext.php
Created Jun 19, 2019
drupal screenshot on test failure
View FeatureContext.php
<?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()) {
$this->takeScreenshot(true);
}
}
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'
You can’t perform that action at this time.