View docker-compose.yml
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
services: | |
web: | |
build: | |
context: . | |
target: base | |
args: | |
with_xdebug: 1 | |
environment: | |
DB_HOST: NONE | |
RELATIVE_DOCROOT: '' |
View request.ts
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
import stringify from './querystring'; | |
// Adjusted from http-api.ts to use fetch. | |
type RequestCallback = (err?: Error, response?: Response, body?: string) => void; | |
export default class RequestWrapper { | |
static fetchFn: typeof fetch; | |
static getRequestFn() { |
View jsonapi-url-builder.js
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
import {JSONAPIURLBuilder} from "@orbit/jsonapi"; | |
import {QueryExpressionParseError} from "@orbit/data"; | |
export default class DrupalJSONAPIURLBuilder extends JSONAPIURLBuilder { | |
buildFilterParam(filterSpecifiers) { | |
const filters = []; | |
filterSpecifiers.forEach((filterSpecifier, index) => { | |
if (filterSpecifier.kind === 'passthrough') { |
View LazyBuilders.php
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 declare(strict_types=1); | |
namespace Drupal\bigpipe_field; | |
use Drupal\Core\Access\AccessResult; | |
use Drupal\Core\Access\AccessResultInterface; | |
use Drupal\Core\Cache\Cache; | |
use Drupal\Core\Cache\CacheableMetadata; | |
use Drupal\Core\Entity\EntityInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; |
View bash.sh
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
# Detect broken recursion. | |
if [ "$1" == "version" ] && [ ! -z "$FRU_DEV_SHIM_RECURSION" ]; then | |
exit 99 | |
fi | |
# Use the next occurrence of docker-compose in the path. | |
DOCKER_COMPOSE=$(which -a docker-compose | sed -n '2p') | |
FRU_DEV_SHIM_RECURSION=1 docker-compose version 2> /dev/null || ( echo "Cannot find docker-compose; is it installed?" && exit 103) |
View composer-source.patch
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/src/Composer/Repository/Vcs/GitLabDriver.php b/src/Composer/Repository/Vcs/GitLabDriver.php | |
index 2044ff70..2d6329c5 100644 | |
--- a/src/Composer/Repository/Vcs/GitLabDriver.php | |
+++ b/src/Composer/Repository/Vcs/GitLabDriver.php | |
@@ -203,11 +203,11 @@ public function getDist($identifier) | |
*/ | |
public function getSource($identifier) | |
{ | |
- if ($this->gitDriver) { | |
- return $this->gitDriver->getSource($identifier); |
View _fix_missing_entities_during_field_purge.php
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 | |
/** | |
* Temporary function to delete fields attached to entities that have already | |
* been deleted. This assumes there are no deleted fields that need to be | |
* purged as this won't actually remove their tables in the database. Use with | |
* caution and only when fully understanding what this does compared to | |
* field_purge_batch and field_purge_field_storage. | |
*/ | |
function _fix_missing_entities_during_field_purge() { |
View gist:ed6d01e311e89b6383e4b1625e72c64a
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
global | |
lua-load /usr/local/etc/haproxy/acme-http01-webroot.lua | |
ssl-default-bind-ciphers AES256+EECDH:AES256+EDH:!aNULL; | |
tune.ssl.default-dh-param 4096 | |
debug | |
defaults | |
mode http | |
option log-health-checks | |
option dontlognull |
View .gitlab-ci.yml
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
stages: | |
- test | |
- spawn | |
- phpunit | |
- deploy | |
- cleanup | |
build_image: | |
cache: | |
untracked: true |
View drupal_unit_test.sh
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 bash | |
# see https://github.com/docker/compose/issues/374#issuecomment-174506025 | |
set -e | |
echoerr() { echo "$@" 1>&2; } | |
echoerr wait-for-port: waiting for port 80 to open | |
((TIMEOUT=60*15)) |
NewerOlder