Skip to content

Instantly share code, notes, and snippets.

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
Breed Origin Size Fur Type Ear Type Eye Color Fur Markings Fur Color ARBAAccepted BRCAccepted Image
Alaska Germany 79 lb (3.24.1 kg) Short Upright Black No Yes
Altex United States 13 lb (5.9 kg) Short Upright White No No
American United States 912 lb (4.15.4 kg) Short Upright Blue, White Yes No
American Fuzzy Lop United States 34 lb (1.41.8 kg) Long Lop Yes No
American Sable United States 910 lb (4.14.5 kg) Short Upright Sable Yes No
Argente Bleu France 6 lb (2.7 kg) Short Upright Blue No Yes
Argente Brun France 6 lb (2.7 kg) Short Upright Brown No Yes
Argente Clair France 6 lb (2.7 kg) Short Upright Blue Silver No No
Argente Creme France 6 lb (2.7 kg) Short Upright Cream Yes Yes
@generalredneck
generalredneck / composer.json
Last active August 29, 2015 14:17
Example Composer json
{
"name": "generalredneck/drupal-test-compose",
"description": "Test Drupal Composer Site",
"minimum-stability": "alpha",
"type": "project",
"repositories": [
{
"type": "composer",
"url": "http://packagist.drupal-composer.org"
},
Reading ./composer.json
Loading config file ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Loading composer repositories with package information
Downloading http://static.drupal-packagist.org/v0.1.0/packages.json
Writing /home/vagrant/.composer/cache/repo/http---static.drupal-packagist.org-v0.1.0/packages.json into cache
Downloading https://packagist.org/packages.json
Writing /home/vagrant/.composer/cache/repo/https---packagist.org/packages.json into cache
Updating dependencies (including require-dev)
@generalredneck
generalredneck / my_views.module
Created July 11, 2014 19:28
Sample Custom Views Module
<?php
/**
* Implements hook_views_data.
* @see https://api.drupal.org/api/drupal/core!modules!views!views.api.php/function/hook_views_data/8
*/
function my_views_views_data() {
// Note this will look very familiar.
// For the table defined as such:
@generalredneck
generalredneck / CI Blog.md
Last active December 23, 2015 08:39
Continuous Integration Applied to Business Blog post explaining how CI benefits business.

Continuous Integration Applied to Business

As a Developer, it's easy to get caught up in the every day life of development without taking a step back and looking at the big picture of why/how the business works. In reality though, every bit I do as a developer: the code quality, the time I spend, and the visual work I can show, all impact business for our company. Continuous Integration (CI) helps me as a developer help business by providing tools that fulfill those necessities. In order to understand how CI provides quaility code, effeciency, and shows prowess as a development company, you must understand what CI is exactly, and get a brief overview of how developers use these tools to make the day to day business run smoothly.

What is Continuous Integration

There are several common misconceptions about what Continuous Integration actually is. When you hear about it in your favorite blog or in passing, you hear about *Automat

<?php
return array(
'zfcrbac' => array(
'firewalls' => array(
'ZfcRbac\Firewall\Controller' => array(
array('controller' => 'index', 'actions' => 'index', 'roles' => 'guest')
),
'ZfcRbac\Firewall\Route' => array(
array('route' => 'profiles/add', 'roles' => 'member'),
array('route' => 'admin/*', 'roles' => 'administrator')
Nov 21 10:33:38 a kernel: [ 70.050361] mysqld: sending ioctl 4004fecd to a partition!
Nov 21 10:33:38 a kernel: [ 70.050367] mysqld: sending ioctl 4004fecd to a partition!
Nov 21 10:33:38 a kernel: [ 70.050370] mysqld: sending ioctl 4004fecd to a partition!
Nov 21 10:33:41 a /etc/mysql/debian-start[2408]: Upgrading MySQL tables if necessary.
Nov 21 10:33:41 a /etc/mysql/debian-start[2412]: /usr/bin/mysql_upgrade: the '--basedir' option is always ignored
Nov 21 10:33:41 a /etc/mysql/debian-start[2412]: Looking for 'mysql' as: /usr/bin/mysql
Nov 21 10:33:41 a /etc/mysql/debian-start[2412]: Looking for 'mysqlcheck' as: /usr/bin/mysqlcheck
Nov 21 10:33:41 a /etc/mysql/debian-start[2412]: Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock' '--host=localhost' '--socket=/var/run/mysqld/mysqld.sock' '--host=localhost' '--socket=/var/run/mysqld/mysqld.sock'
Nov 21 10:33:41 a /etc/mysql/debian-start[2412]: /usr/bin/mysqlcheck: Got error: 1045: Access denied for use
@generalredneck
generalredneck / gist:3980181
Created October 30, 2012 13:28
Selenium log snipped
Starting test 'AllPlayers\Tests\Store\Selenium\GroupStore\Affiliate\ProductForRegistrationTest::testRegisterForAffiliateGroup'.
Screenshot: http://a.hudson.allplayers.com/screenshots/mercury/store/1351562697_www_mercury_dev_allplayers_com___ProductForRegistrationTest_testRegisterForAffiliateGroup/1351562818.9252_Failure.png
Current URL: https://store.mercury.dev.allplayers.com/checkout/1598/payment
Screenshot: http://a.hudson.allplayers.com/screenshots/mercury/store/1351562697_www_mercury_dev_allplayers_com___ProductForRegistrationTest_testRegisterForAffiliateGroup/1351562818.9252_Failure.png
Failed command: assertTextPresent('Checkout complete')
Failed asserting that false is true.
drush sql-sync --no-ordered-dump -y @demo2store @seleniumstore
You will destroy data from seleniumstore and replace with data from store.
You might want to make a backup first, using the sql-dump command.
Do you really want to continue? (y/n): y
drush @seleniumstore upwd `drush @selenium vget apci_store_user | grep -P -o "(?<=\").*(?=\")"` --password=`drush @selenium vget apci_store_pass | grep -P -o "(?<=\").*(?=\")"`
require_once(/mnt/apci/selenium-store/www/profiles/apci_store/modules/contrib/memcache/memcache.inc): failed to open stream: No such file or directory [warning]
bootstrap.inc:2297