Skip to content

Instantly share code, notes, and snippets.

<?php
// Find all entity controller classes.
$info = entity_get_info();
$controller_meta = array();
foreach ($info as $entity_type => $data) {
$controller_meta[] = "'$entity_type' instanceof \\" . $data['controller class'] . ',';
}
$mappings = implode("\n ", $controller_meta);
diff --git a/coder_sniffer/Drupal/ruleset.xml b/coder_sniffer/Drupal/ruleset.xml
index b718894..116fe60 100644
--- a/coder_sniffer/Drupal/ruleset.xml
+++ b/coder_sniffer/Drupal/ruleset.xml
@@ -3,6 +3,10 @@
<ruleset name="Drupal">
<description>Drupal coding standard</description>
+ <rule ref="Drupal.Commenting.InlineComment.DocBlock">
+ <severity>0</severity>
$ composer update    dev
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
composer update 73.76s user 1.65s system 66% cpu 1:52.67 total
$ brew update && brew upgrade composer // to 1.0.0-alpha9.
$ composer update    dev
commit 44541abb698972fdd27814919c75aae1ac542a46
Author: Andrew Berry <[email protected]>
Date: Mon Nov 3 10:22:19 2014 -0500
Patch Drupal to use the leftmost IP address for client IP.
diff --git a/docroot/includes/bootstrap.inc b/docroot/includes/bootstrap.inc
index c8d17f5..57c69d9 100644
--- a/docroot/includes/bootstrap.inc
+++ b/docroot/includes/bootstrap.inc
$ sudo pmset -g assertions
Password:
2014-10-30 19:45:35 -0400
Assertion status system-wide:
BackgroundTask 0
ApplePushServiceTask 0
UserIsActive 0
PreventUserIdleDisplaySleep 0
PreventSystemSleep 0
ExternalMedia 1
$ sudo git diff
diff --git a/init.d/redis-server b/init.d/redis-server
index b235e8d..c14faef 100755
--- a/init.d/redis-server
+++ b/init.d/redis-server
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash -ex
### BEGIN INIT INFO
# Provides: redis-server
<?php
$a = array(
- 'first key' => 'first value',
);
var_dump($a);
var_dump(+"first key");
var_dump(-"first key");
file { '/etc/php5/apache2/conf.d/custom.ini':
ensure => present,
source => '/vagrant/files/apache/etc/php5/apache2/conf.d/custom.ini',
owner => 'root',
group => 'root',
notify => Service['apache2'],
}
# cd /tmp/vagrant-puppet/manifests && FACTER_nfs_www='192.168.100.1:/Users/andrew/vagrant/projects/rome/www' FACTER_apt_proxy='http://192.168.31.42:3142' FACTER_project='rome' puppet apply --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' site.pp --detailed-exitcodes -v
info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/facter_dot_d.rb
info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/puppet_vardir.rb
info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/root_home.rb
warning: notify is a metaparam; this value will inherit to all contained resources
info: Applying configuration version '1367627933'
notice: /Stage[main]/Rome::Apache/Pear::Package[drush]/Package[pear-pear.drush.org-drush]/ensure: ensure changed '5.9.0' to '6.0.0'
info: FileBucket got a duplicate file {md5}c7bc6386a8d56e24b231d0b224969468
info: /Stage[main]/Rome::Apache/File[/etc/php5/apache2/conf.d/custom.ini]: Filebucketed /etc/php5/apache2/conf.d/custom.ini to puppet wit