Skip to content

Instantly share code, notes, and snippets.

@generalredneck
generalredneck / xpath.php
Created September 27, 2012 18:12
XPath - A Fun Walk With A Powerful Query Language
<?php
require_once 'Console/Table.php';
$groupsDoc = new DOMDocument();
$groupsDoc->load("groups.xml");
$groupsDoc->formatOutput = TRUE;
file_put_contents("readable-groups.xml",$groupsDoc->saveXML());
$xpath = new DOMXpath($groupsDoc);
/*******************************************************************************
@generalredneck
generalredneck / headless-testing.pp
Created July 20, 2012 15:42
headless-testing.pp
class apci_devel::headless_testing {
include java
package { "xvfb":
ensure => present,
}
package { "firefox":
ensure => present,
}
@generalredneck
generalredneck / appraisal.json
Created February 14, 2018 18:23
Example data from the appraisal of item 0
{
"issueId": 0,
"publishedProductValueId": 0,
"options": [
{
"optionDescription": "String",
"publishedOptionValueId": 0,
"optionValue": 0,
"defaultQuantity": 0,
"extendedValue": 0,
@generalredneck
generalredneck / .emdaer.yml
Created September 5, 2017 20:38
Readme for my test project
- text: '# Manual Pantheon Project'
- text: "This is a brief overview of my manual Pantheon Project located at https://github.com/fourkitchens/readmes/tree/master/pantheon/d7/manual"
- include: './node_modules/readmes/pantheon/d7/manual/at-a-glance.md'
- include: './node_modules/readmes/pantheon/d7/manual/brief-foundation-architecture.md'
- include: './node_modules/readmes/pantheon/d7/manual/before-you-start.md'
- include: './node_modules/readmes/pantheon/d7/manual/getting-started.md'
- include: './node_modules/readmes/pantheon/d7/manual/subsequent-builds.md'
- include: './node_modules/readmes/pantheon/d7/manual/git-workflow.md'
- include: './node_modules/readmes/pantheon/d7/manual/configuration-management-workflow.md'
- include: './node_modules/readmes/pantheon/d7/manual/deployment.md'
Migration Status Total Created Updated Failed Last imported
upgrade_d7_user Idle 2996 18 2977 1 2016-06-21 17:03:51
<?php
namespace Drupal\custom\Plugin\migrate\source\d7;
use Drupal\user\Plugin\migrate\source\d7\User as D7User;
/**
* Drupal 7 user source from database.
*
<?php
namespace Drupal\wg_drupal7_migrate\Plugin\migrate\source;
use Drupal\node\Plugin\migrate\source\d7\NodeType as MigrateD7NodeType;
/**
* Drupal 7 Node types source from database.
*
* @MigrateDrupalSource(
* id = "wg_d7_node_type",
* source_provider = "node"
* )
name: wg_test
type: module
description: My Awesome Module
core: 8.x
package: Custom
diff --git a/drush/example.drushrc.php b/drush/example.drushrc.php
deleted file mode 100644
index 5d1d253..0000000
--- a/drush/example.drushrc.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/**
- * @file
allan@allan-Precision-M4800:~/workspaces/drupal7$ time composer update --dry-run -vvv
Reading ./composer.json
Loading config file /home/allan/.composer/config.json
Loading config file /home/allan/.composer/auth.json
Loading config file ./composer.json
Executing command (/home/allan/workspaces/drupal7): git describe --exact-match --tags
Executing command (/home/allan/workspaces/drupal7): git branch --no-color --no-abbrev -v
Executing command (/home/allan/workspaces/drupal7): hg branch
Executing command (/home/allan/workspaces/drupal7): svn info --xml
Reading /home/allan/.composer/composer.json