Skip to content

Instantly share code, notes, and snippets.

$ 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
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
$ 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
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>
<?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);
$ vagrant up --provider=virtualbox && vagrant reload
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'rasmus/php7dev'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'rasmus/php7dev' is up to date...
==> default: Setting the name of the VM: php7dev
==> default: Clearing any previously set network interfaces...
==> default: Available bridged network interfaces:
1) en0: Ethernet
2) en1: Wi-Fi (AirPort)
Process: Textual [55155]
Path: /Applications/Textual 5.app/Contents/MacOS/Textual
Identifier: com.codeux.irc.textual5
Version: 5.2.0 (150821.16)
App Item ID: 896450579
App External ID: 813149881
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Textual [55155]
User ID: 501
@deviantintegral
deviantintegral / R
Created December 8, 2015 18:39
Trait demo
R