This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"php_log": { | |
"title": "PHP log format", | |
"description": "Log format used by PHP (and PHP-FPM)", | |
"url": "http://www.php.net/", | |
"regex": { | |
"fpm": { | |
"pattern": "^\\[(?<date>\\d{2}-\\w{3}-\\d{4}) (?<timestamp>\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?)\\] (?<level>[A-Z]+): (?:pid (?<pid>\\d{1,8}),)?(?<body>.*)$" | |
}, | |
"error": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env ruby | |
# Ruby wrapper script to filter git branches by prefix, provide a confirmation | |
# prompt, then delete those branches. Without confirmation prompt you can easily | |
# do something like `git branch -D (git branch | egrep "^\s+core-" | tr -d ' ')` | |
# or `(git branch | egrep "^\s+core-") | xargs git branch -D`. This could be | |
# done with a bash script, but Ruby is pleasant to use. | |
prefix = ARGV.first |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -D (git branch | egrep "^\s+contrib-" | tr -d ' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Drush autocompletion | |
# | |
# Place this in your ~/.config/fish/completions/ directory, or in the | |
# /etc/fish/completions directory to make it available for all users. | |
function __complete_drush | |
drush --early=includes/complete.inc --verbose=0 (commandline -cpo) (commandline -t 2> /dev/null) | cut -d " " -f 1 | |
end | |
complete -x -c drush -d "Drush" -a "(__complete_drush)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$config['casters'] = [ | |
'Drupal\Core\Entity\ContentEntityInterface' => function($object, $array, $stub, $isNested) { | |
if (!$isNested) { | |
foreach ($object as $property => $item) { | |
$array[Symfony\Component\VarDumper\Caster\Caster::PREFIX_PROTECTED . $property] = $item; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$application->extend('kernel', function ($kernel, $app) { | |
return new YourNewHttpKernelInterfaceObject($kernel); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Entity\EntityIterator. | |
*/ | |
namespace Drupal\Core\Entity; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Entity\EntityIterator. | |
*/ | |
namespace Drupal\Core\Entity; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt --description 'Write out the prompt' | |
set -l last_status $status | |
if not set -q __fish_prompt_normal | |
set -g __fish_prompt_normal (set_color normal) | |
end | |
#USER/HOST | |
printf '%s@%s ' $USER (hostname -s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/og.module b/og.module | |
index 7173eeb..024cef6 100755 | |
--- a/og.module | |
+++ b/og.module | |
@@ -86,6 +86,16 @@ define('OG_MEMBERSHIP_REQUEST_FIELD', 'og_membership_request'); | |
*/ | |
/** | |
+* Implements hook_entity_field_storage_info_alter(). | |
+*/ |