Skip to content

Instantly share code, notes, and snippets.

Joseph D. Purcell josephdpurcell

Block or report user

Report or block josephdpurcell

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
@josephdpurcell
josephdpurcell / migrate_plus.migration.blog.yml
Last active Oct 17, 2019
A script to import sample data into Jackrabbit JCR
View migrate_plus.migration.blog.yml
id: blog
label: Blog
source:
plugin: jcr
host: "http://localhost:8080/server"
query: 'SELECT * FROM [nt:unstructured] AS node WHERE ISDESCENDANTNODE(node, "/migrate_source_jcr_example/blog") AND [sling:resourceType] = "components/structure/page"'
type: "JCR-SQL2"
user: "admin"
pass: "admin"
workspace: "default"
@josephdpurcell
josephdpurcell / drupalci.yml
Last active Oct 1, 2019
Drupal 9 compatibility drupalci-.yml
View drupalci.yml
# This file customizes the steps that DrupalCI will use when testing this project.
#
# The primary customization provided here is to check for deprecation errors. It is recommended
# to do this only when you've used https://github.com/mglaman/drupal-check/ to verify any
# existing deprecation errors are addressed.
#
# Learn to make one for your own drupal.org project:
# https://www.drupal.org/drupalorg/docs/drupal-ci/customizing-drupalci-testing
build:
assessment:
@josephdpurcell
josephdpurcell / auth0-drupal-module-patch-remove-autoloder-for-composer.patch
Last active Jan 24, 2017
Remove the autoloader from the Auth0 module for use in Drupal 8
View auth0-drupal-module-patch-remove-autoloder-for-composer.patch
diff --git a/src/Controller/AuthController.php b/src/Controller/AuthController.php
index a73dbf2..e074e7e 100644
--- a/src/Controller/AuthController.php
+++ b/src/Controller/AuthController.php
@@ -6,8 +6,6 @@
namespace Drupal\auth0\Controller;
-require_once (AUTH0_PATH . '/vendor/autoload.php');
-
@josephdpurcell
josephdpurcell / nova-ssh.sh
Created Oct 19, 2016
Quick script to SSH into nova private IP
View nova-ssh.sh
#!/bin/bash
# Example Usage:
# ./nova-ssh.sh ADM
# ./nova-ssh.sh APP001
CACHED_LIST=~/.nova-list.txt
if [ ! -f "$CACHED_LIST" ]
then
touch "$CACHED_LIST"
nova list > "$CACHED_LIST"
fi
@josephdpurcell
josephdpurcell / 0001-Add-filter-index-to-store-id-on-order-grid.patch
Last active Sep 15, 2016
Add filter index to store id on order grid (Magento v1)
View 0001-Add-filter-index-to-store-id-on-order-grid.patch
From 5619599070b89d48482d7abbe421daebf7512da7 Mon Sep 17 00:00:00 2001
From: "Joseph D. Purcell" <josephdpurcell@gmail.com>
Date: Thu, 15 Sep 2016 11:46:31 -0500
Subject: [PATCH] Add filter index to store id on order grid
---
www/app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php b/www/app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php
@josephdpurcell
josephdpurcell / 0001-Namespace-store_id-filter-to-avoid-query-failure.patch
Last active Sep 15, 2016
Namespace store_id filter to avoid query failure (Magento v1)
View 0001-Namespace-store_id-filter-to-avoid-query-failure.patch
From 541bb110dd4a495e4e1e801916b10c1cbe23e9f9 Mon Sep 17 00:00:00 2001
From: "Joseph D. Purcell" <josephdpurcell@gmail.com>
Date: Mon, 12 Sep 2016 16:44:32 -0500
Subject: [PATCH] Namespace store_id filter to avoid query failure
---
.../core/Mage/Sales/Model/Resource/Order/Grid/Collection.php | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/www/app/code/core/Mage/Sales/Model/Resource/Order/Grid/Collection.php b/www/app/code/core/Mage/Sales/Model/Resource/Order/Grid/Collection.php
@josephdpurcell
josephdpurcell / 0001-Add-.codeclimate.yml-for-Drupal-7-project.patch
Created Jul 24, 2016
Patch to add Code Climate configuration to a Drupal 7 project
View 0001-Add-.codeclimate.yml-for-Drupal-7-project.patch
From a0785c48e763cb6480b2665f300cf1246b4b656a Mon Sep 17 00:00:00 2001
From: "Joseph D. Purcell" <josephdpurcell@gmail.com>
Date: Sun, 24 Jul 2016 16:17:26 -0500
Subject: [PATCH] Add Code Climate config for a Drupal 7 project
---
.codeclimate.yml | 32 +++++++++++++++++++++++
.phpmd.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 110 insertions(+)
create mode 100644 .codeclimate.yml
@josephdpurcell
josephdpurcell / 0001-Add-.codeclimate.yml-for-Drupal-7-core.patch
Last active Jul 24, 2016
Patch to add Code Climate configuration to Drupal 7 Core
View 0001-Add-.codeclimate.yml-for-Drupal-7-core.patch
From a482a69cb8e0a0be8652fe1fa2860f6346417d7f Mon Sep 17 00:00:00 2001
From: "Joseph D. Purcell" <josephdpurcell@gmail.com>
Date: Sun, 24 Jul 2016 16:17:26 -0500
Subject: [PATCH] Add Code Climate config for Drupal 7 core
---
.codeclimate.yml | 25 ++++++++++++++++++
.phpmd.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 103 insertions(+)
create mode 100644 .codeclimate.yml
@josephdpurcell
josephdpurcell / rebuild_module_paths.php
Last active May 6, 2016
Rebuild Drupal 7 module paths.
View rebuild_module_paths.php
<?php
if (basename(getcwd()) !== 'docroot') {
echo "You must run this in docroot.\n";
exit(1);
}
if (count($argv) < 4) {
echo "Usage: php rebuild_module_paths.php hostname dbname username password\n";
exit(1);
}
@josephdpurcell
josephdpurcell / 0001-Add-.codeclimate.yml-for-Drupal-8-modules.patch
Last active Jul 24, 2016
Patch to add Code Climate configuration to Drupal 8 Modules
View 0001-Add-.codeclimate.yml-for-Drupal-8-modules.patch
From 84faa57d401b07df3f5cf645519614604e257c10 Mon Sep 17 00:00:00 2001
From: "Joseph D. Purcell" <josephdpurcell@gmail.com>
Date: Sun, 24 Jul 2016 16:20:12 -0500
Subject: [PATCH] Add Code Climate config for Drupal 8 modules
---
.codeclimate.yml | 25 ++++++++++++++++++
.phpmd.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 103 insertions(+)
create mode 100644 .codeclimate.yml
You can’t perform that action at this time.