Skip to content

Instantly share code, notes, and snippets.

View josephdpurcell's full-sized avatar

Joseph D. Purcell josephdpurcell

View GitHub Profile
@josephdpurcell
josephdpurcell / 0001-Add-.codeclimate.yml-for-Drupal-8-Core.patch
Last active July 24, 2016 21:00
Patch to add Code Climate configuration to Drupal 8 Core
From fe7fa7f24d87c1f392dc97d54317d55e94e3201e Mon Sep 17 00:00:00 2001
From: "Joseph D. Purcell" <josephdpurcell@gmail.com>
Date: Sun, 24 Jul 2016 15:59:04 -0500
Subject: [PATCH] Add Code Climate config for Drupal 8 core
---
.codeclimate.yml | 35 +++++++++++++++++++++++++
.phpmd.xml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 113 insertions(+)
create mode 100644 .codeclimate.yml
@josephdpurcell
josephdpurcell / 0001-Add-.codeclimate.yml-for-Drupal-7-core.patch
Last active July 24, 2016 21:18
Patch to add Code Climate configuration to Drupal 7 Core
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 / 0001-Add-.codeclimate.yml-for-Drupal-7-project.patch
Created July 24, 2016 21:32
Patch to add Code Climate configuration to a Drupal 7 project
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-Namespace-store_id-filter-to-avoid-query-failure.patch
Last active September 15, 2016 16:55
Namespace store_id filter to avoid query failure (Magento v1)
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-filter-index-to-store-id-on-order-grid.patch
Last active September 15, 2016 16:55
Add filter index to store id on order grid (Magento v1)
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 / nova-ssh.sh
Created October 19, 2016 20:39
Quick script to SSH into nova private IP
#!/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 / auth0-drupal-module-patch-remove-autoloder-for-composer.patch
Last active January 24, 2017 00:39
Remove the autoloader from the Auth0 module for use in Drupal 8
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 / drupalci.yml
Last active October 1, 2019 11:19
Drupal 9 compatibility 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 / migrate_plus.migration.blog.yml
Last active October 17, 2019 00:04
A script to import sample data into Jackrabbit JCR
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 / 0001-Add-.codeclimate.yml-for-Drupal-8-modules.patch
Last active March 23, 2021 14:39
Patch to add Code Climate configuration to Drupal 8 Modules
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