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
#!/bin/bash | |
set -u | |
EXCLUDE_PATTERN="jenkins-swarm|hana_cockpit|nfs-|angi" | |
VOLUME_POOLS=(default terraform) | |
# most code borrowed from https://github.com/openshift/installer scripts | |
printf 'Warning: This will destroy effectively all libvirt resources\nContinue [yN]? ' |
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 | |
set -euo pipefail | |
USER=$(id -u) | |
XDEBUG_INI_FILE="/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" | |
if [[ ${USER} != 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 |
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 | |
set -euo pipefail | |
RELEASE_NAME=$1 | |
MAX_LENGTH=${2-53} | |
HASH_SIZE=${3-8} | |
if [[ $MAX_LENGTH -le $(($HASH_SIZE+1)) ]]; then | |
echo "max length must be bigger than hash size + 1" |
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 | |
set -euo pipefail | |
if ! [[ -x $(command -v doctl) ]]; then | |
echo "This script needs doctl: https://github.com/digitalocean/doctl" | |
exit 1 | |
fi | |
if ! [[ -x $(command -v jq) ]]; then |
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
#!/bin/bash | |
set -euo pipefail | |
export PATH=$PATH:/usr/local/bin:/usr/local/sbin | |
echo "*****" | |
date +%F\ %T | |
echo "stopping gitlab-runner service..." |
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
{ | |
"require": { | |
"psr/http-server-middleware": "^1.0", | |
"zendframework/zend-diactoros": "^1.7" | |
} | |
} |
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 | |
use Psr\Http\Message\ServerRequestInterface as Request; | |
use Psr\Http\Message\ResponseInterface as Response; | |
use Psr\Http\Server\RequestHandlerInterface as Handler; | |
use Psr\Http\Server\MiddlewareInterface as Middleware; | |
$middleware = function(Request $req, callable $next): Response { | |
$res = $next($req); | |
return $res->withHeader('X-Foo', 'Bar'); |
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 | |
# ** usage ** | |
# initialize a MYSQL_DATABASES env variable in the container with space separated db names | |
# e.g. MYSQL_DATABASES="foo bar" | |
# assumes that MYSQL_ROOT_PASSWORD and MYSQL_USER are set | |
function create_database() { | |
local DATABASE=$1 |
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); | |
use Amp\ByteStream\Message; | |
use Amp\Loop; | |
use Amp\Process\Process; | |
use function Amp\coroutine; | |
use function Amp\Promise\all; |
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 | |
$defaultIncludes = []; | |
$composerAutoload = getcwd() . DIRECTORY_SEPARATOR . '/vendor/autoload.php'; | |
if (is_file($composerAutoload)) { | |
$defaultIncludes[] = $composerAutoload; | |
} | |
return [ |
NewerOlder