Skip to content

Instantly share code, notes, and snippets.

View arnested's full-sized avatar

Arne Jørgensen arnested

View GitHub Profile
@arnested
arnested / proof.md
Last active January 31, 2024 22:18

aspe:keyoxide.org:VEVBQFFXDUKCRZXER4EOBYWD5Y

{
"lead": {
"firstName": "Arne Test 2",
"lastName": "Jørgensen",
"countryCode": "45",
"description": null,
"commercialLease": false,
"cvrNR": null,
"formReference": "/lejeboliger/triumphbuen-29-2-tv-3060-espergaerde-denmark",
"websiteLanguage": "da",
@arnested
arnested / linux.md
Last active February 16, 2023 08:45
Opsæt linux maskine til typiske @reload dev setups

Opsætning på Linux

UID og GUD

I ~/.bashrc eller tilsvarende:

export UID
export GID
Delivered-To: arne@arnested.dk
Received: by 2002:a4a:3c46:0:0:0:0:0 with SMTP id p6csp85408oof;
Thu, 17 Feb 2022 12:13:53 -0800 (PST)
X-Google-Smtp-Source: ABdhPJwD2Mty/Lq8oflLGFYsK3rkZPqxWq01cNHKapZfB2NIG9l2rCDWJxLVES2/gSFBEVACz822
X-Received: by 2002:a5d:5849:0:b0:1e3:1df9:1b1e with SMTP id i9-20020a5d5849000000b001e31df91b1emr3558218wrf.640.1645128833795;
Thu, 17 Feb 2022 12:13:53 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1645128833; cv=pass;
d=google.com; s=arc-20160816;
b=FeXc/Pb4APqbcqqmqk4OAwCnQ8dWp9w7wW0yb8qKyo1A/3Ur0jre8fkMLpg5z0A7Z0
UyDY3Gd84lE3uUBftq8CNJ76lgXcMABr7AHjSKp9ROxar5Qsk/hO6+FApBxOQYSMstCP
diff --git a/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php b/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
index 7a823a4742..934b18df15 100644
--- a/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
+++ b/core/lib/Drupal/Core/TypedData/ComputedItemListTrait.php
@@ -43,7 +43,7 @@ protected function ensureComputedValue() {
/**
* {@inheritdoc}
*/
- public function getValue() {
+ public function getValue($include_computed = FALSE) {
@arnested
arnested / docker-compose.sh
Last active September 8, 2018 09:53
docker-compose shell function wrapper to wait for all containers to become healthy
# Uses `alerter` from https://github.com/vjeantet/alerter
# Uses `healthy` from https://github.com/arnested/go-healthy
# Uses `mapfile` bash builtin introduced in bash4
docker-compose () {
show_success_message () {
message="'${COMPOSER_PROJECT_NAME:-$(basename "$(git root)")}' is healthy."
# Run in sub shell to get rid of info about background job.
(nohup alerter -message "${message}" -title 'Docker Compose' -appIcon /Applications/Docker.app/Contents/Resources/AppIcon.icns -sound Glass < /dev/null &> /dev/null &)
@arnested
arnested / dchealth
Created September 4, 2018 11:11
Wait for containers to be healthy on `docker-compose up`
#!/bin/bash
interval=10
if [ "$1" = "wait" ]; then
until "$0"
do
echo "Not ready yet. Waiting $interval seconds..."
sleep $interval
done
@arnested
arnested / CONTRIBUTING.md
Last active November 5, 2017 13:43
Developer Certificate of Origin

Developer Certificate of Origin

Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
JsonPatch:
description: A JSON Schema describing a JSON Patch
type: array
items:
$ref: '#/definitions/JsonPatchOperation'
JsonPatchOperation:
type: object
description: A JSON patch document as defined by RFC 6902
required:
- op
@arnested
arnested / dock-in
Last active September 7, 2015 12:24
Docker: setup proxy and drush aliases
#!/bin/bash
##
# Requirements:
#
# brew install jq
# docker and docker-machine
#
##