Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
curl -s "https://www.drupal.org/u/$1" | awk -F'/' 'BEGIN{RS="<"} /href="\/user\/[0-9]+/ { print $3; exit }' | { read uid; curl -s "https://www.drupal.org/api-d7/user/$uid.json" | jq .created | sed 's/"//g' | { read created; date -r "$created"; }; }
#!/bin/bash
root=$(drush st --field=root)
if [ $(basename $root) = "web" ]; then
vendor_root=$(dirname $root)
else
vendor_root=$root
fi
keep=0
for arg do
diff --git a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
index 6619c580ce..9c605bff01 100644
--- a/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
+++ b/core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
@@ -267,7 +267,7 @@ public function buildMultiple(array $entities) {
foreach ($build_list[$id] as $name => $build_part) {
$field_definition = $this->getFieldDefinition($name);
if ($field_definition && $field_definition->isDisplayConfigurable($this->displayContext)) {
- unset($build_list[$id][$name]);
+ $build_list[$id][$name]['#access'] = FALSE;
#!/bin/bash
# Use an environment variable to know which branch should be used.
if [ -z "$D8_UPSTREAM_BRANCH" ]; then
echo "Missing the \$D8_UPSTREAM_BRANCH environment variable which must be set to something like '8.7.x'."
exit 1
fi
current_branch=$(git symbolic-ref --short HEAD)
branch=${1:-${D8_UPSTREAM_BRANCH}}
@timplunkett
timplunkett / ladder.md
Created April 16, 2019 22:24 — forked from jamtur01/ladder.md
Kickstarter Engineering Ladder
#!/bin/bash
rm -rf vendor/
xdebug-toggle off
composer install
composer run-script drupal-phpunit-upgrade
composer require zaporylie/composer-drupal-optimizations:^1.0
composer require drush/drush
#!/bin/bash
rm -rf vendor/
xdebug-toggle off
composer install
composer run-script drupal-phpunit-upgrade
composer require zaporylie/composer-drupal-optimizations:^1.0
composer require drush/drush
git checkout -- composer.*

Keybase proof

I hereby claim:

  • I am timplunkett on github.
  • I am timplunkett (https://keybase.io/timplunkett) on keybase.
  • I have a public key ASCxqqMQoh2_LZdNlgv57XLfu6fHDYsNdm70CLjhjYFCUgo

To claim this, I am signing this object:

#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: git idiff [comment-number] [interdiff-rev] [base-rev]"
exit 1
fi
COMMIT=${2:-"HEAD^"}
BASE_BRANCH=${3:-"8.6.x"}
REMOTE=${4:-"origin"}
@timplunkett
timplunkett / gist:2c6242539ad59066ae0e
Last active November 6, 2015 21:08
Post-rock and related
1 Mile North
12Twelve
65Daysofstatic
A Genuine Freakshow
A Northern Chorus
Album Leaf, The
All Shall Be Well (and All Shall Be Well and All Manner of Things Shall Be Well)
Amiina
And So I Watch You from Afar
Antarctica