Skip to content

Instantly share code, notes, and snippets.

View eojthebrave's full-sized avatar

Joe Shindelar eojthebrave

View GitHub Profile
@eojthebrave
eojthebrave / gist:5e733250bbcd3fdf0c69
Created March 19, 2015 22:35
Skip external resources requested when running casperjs tests
casper.options.onResourceRequested = function(casper, requestData, request) {
// If any of these strings are found in the requested resource's URL, skip
// this request. These are not required for running tests.
var skip = [
'.kissmetrics.com',
'googleads.g.doubleclick.net',
'www.googleadservices.com'
];
skip.forEach(function(needle) {

Keybase proof

I hereby claim:

  • I am eojthebrave on github.
  • I am eojthebrave (https://keybase.io/eojthebrave) on keybase.
  • I have a public key whose fingerprint is 4C11 4573 F0EA 6437 FC8D 8ED9 68BE 7AD5 0A8C B869

To claim this, I am signing this object:

#!/usr/bin/env node
console.log("OMG Yay don't you feel safe?")
// customer.json
{
"name": "Mega Corp.",
"order_count": 83,
"address": "Infinity Loop Drive",
}
@eojthebrave
eojthebrave / entity_fields.php
Created July 1, 2021 14:54
Output a CSV file listing all fields and properties for Drupal 7 entity types to help prepare for a migration.
<?php
/**
* @file
* Create a CSV file with fields for every Drupal 7 entity type / bundle.
*
* When preparing for a Drupal 7 to Drupal 8/9 migration it can be helpful to
* perform some initial content analysis. This script creates CSV files that
* can be imported into Google Sheets etc. to help with this analysis.
*
@eojthebrave
eojthebrave / dme_d7_taxonomy_term_tags.yml
Created July 14, 2021 16:42
Merge two diffferent Drupal 7 vocabularies into a single Drupal 8/9 vocabulary and dedupe terms
id: dme_d7_taxonomy_term_tags
migration_group: dmemigration
label: 'Taxonomy terms (Tags & Blog tags)'
source:
plugin: d7_taxonomy_term
# We're merging the D7 blog_tags, and tags taxonomies into one.
bundle:
- tags
- blog_tags