Skip to content

Instantly share code, notes, and snippets.

View josephdpurcell's full-sized avatar

Joseph D. Purcell josephdpurcell

View GitHub Profile
@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 / 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 / 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 / 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-.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-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 / rebuild_module_paths.php
Last active May 6, 2016 21:25
Rebuild Drupal 7 module paths.
<?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 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
@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 / replace-cookie-with-token-auth-for-login-token.patch
Created March 4, 2016 22:16
Replace cookie authentication with token authentication on login token for RESTful 2.x