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 | |
## Description: Enable and show database general_log. Disables log after exiting (via CTRL+C) | |
## Usage: general_log | |
# saner programming env: these switches turn some bugs into errors | |
set -o errexit -o pipefail -o noclobber -o nounset | |
endC="\033[0m" | |
greenb="\033[1;32m" | |
purpleb="\033[1;35m" |
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 | |
## Description: Create and push new git release tag. Deploy via ‹ddev surf deploy ...›. | |
## Requirements: You use release tags of the form <releaseChannel>-<major>.<minor>.<bugfix> | |
# saner programming env: these switches turn some bugs into errors | |
set -o errexit -o pipefail -o noclobber -o nounset | |
usage() { | |
echo "Usage:" |
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
# add as a/docker-compose.yaml and b/docker-compose.yaml | |
# | |
# $ docker network create ext-net | |
# run from 2 terminals (in directory `a`and `b`): | |
# $ docker-compose up | |
# | |
# Should output the same container ID/pseudo-hostname continuously | |
# | |
# tested with docker-compose 1.29.2, 2.0.1, 2.1.0, 2.1.1, 2.2.0 | |
# switching the networks order to [ext-net, my-net] prioritizes name resolution on the common network and makes it fail |
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 python | |
import sys | |
import logging.handlers | |
try: | |
logfile = sys.argv[1] | |
except: | |
print("param 1: logfile") | |
sys.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
# composer req gordalina/cachetool | |
# example for using it via HTTP if php-fpm not accessible (use --fcgi[=/run/...|=127.0.0.1:9000] if you can) | |
$deployment | |
->defineTask( | |
'CachetoolTask', | |
ShellTask::class, | |
[ | |
'command' => [ | |
'export cacheToolParams="--web=SymfonyHttpClient --web-allow-insecure --web-url=' |
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 | |
defined('TYPO3') || die(); | |
/** | |
* Sets environment variables from the shell environment of the user (e.g. used with docker --environment=), from | |
* webserver's virtual host config, .htaccess (SetEnv), /etc/profile, .profile, .bashrc, ... | |
* When a .env file and the composer package helhum/dotenv-connector is present, the values from .env are also present | |
* in the environment at this stage. | |
*/ |
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 | |
# @author [email protected] | |
# Helps managing/upgrading several Typo3 sources for upgrading/development. | |
# Downloads the version(s) you request to the current directory. | |
# Sets up symlinks so that e.g. typo3_src-9 will point to the newest version 9.x.x, typo3_src-9.5 to the newest version 9.5.x etc. | |
# Try "./getTypo 3.8 4.7 6.2 7 8 9 current" to see it do its job. | |
# Will ask for deletion if it finds outdated versions. | |
# | |
# @params Call without parameters to see usage help | |
# @exit 127 on wrong usage, 1 on error, 3 on unexpected redirect, 0 on success |