Skip to content

Instantly share code, notes, and snippets.

View kimpepper's full-sized avatar

Kim Pepper kimpepper

View GitHub Profile
diff --git a/src/Util/Log/TeamCity.php b/src/Util/Log/TeamCity.php
index 695760d95..460d5e35d 100644
--- a/src/Util/Log/TeamCity.php
+++ b/src/Util/Log/TeamCity.php
@@ -9,6 +9,8 @@
*/
namespace PHPUnit\Util\Log;
+use Drupal\Tests\Listeners\HtmlOutputPrinterTrait;
+
@kimpepper
kimpepper / install-php.sh
Last active February 7, 2024 01:34
Install PHP dependencies for Drupal local development
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
sudo apt update
sudo apt --yes install mysql-client
v=8.3
@kimpepper
kimpepper / install-docker.md
Created August 16, 2021 00:13
Install docker.io on Ubuntu desktop

Install docker.io on Ubuntu desktop

Install the docker.io package.

sudo apt install docker.io

You need to add your user to the docker group.

@kimpepper
kimpepper / install-go.sh
Last active August 24, 2022 04:53
Install multiple versions of go with ubuntu update-alternatives
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
sudo apt install golang
# Set the latest default version to the highest priority.
sudo update-alternatives --install /usr/bin/go go /usr/lib/go/bin/go 20 \
--slave /usr/bin/gofmt gofmt /usr/lib/go/bin/gofmt
{
"name": "drupal/search_365",
"type": "drupal-module",
"license": "GPL-2.0-or-later",
"homepage": "http://drupal.org/project/search_365",
"support": {
"issues": "https://www.drupal.org/project/issues/search_365"
},
"minimum-stability": "dev",
"prefer-stable": true,
curl 'https://www.drupal.org/api-d7/node.json?type=organization&taxonomy_vocabulary_50=24660&taxonomy_vocabulary_52=24054' | jq -ar '.list[].title'
@kimpepper
kimpepper / media-update.md
Last active December 14, 2017 22:39
Core Media Update notes

Upgrading to core media

Import media styles

Update fails if core media styles don't exist.

drush config-import --partial --source=/data/app/core/modules/image/config/install/ -y
kubectl describe nodes | grep -A 4 "Allocated resources"
@kimpepper
kimpepper / gprune.sh
Last active April 13, 2016 02:55
Prune merged git branches from local and remote
# Prune merged git branches from local and remote
# example usage: gprune 8.x-1.x
gprune() {
DEFAULT_BRANCH=master
PROTECTED_BRANCH_PATTERN='|master|releases|7.x.*|8.x.*'
# Allow the base branch to be passed in as 1st param.
base_branch=${1-$DEFAULT_BRANCH}
npm install npm@2.10.0
nodejs node_modules/npm/bin/npm-cli install --loglevel silent