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
# Delete all duplicate sys_file_records, where one and the same sys_file UID | |
# is related to the same tt_content record | |
DELETE t_orig | |
FROM sys_file_reference t_orig | |
INNER JOIN sys_file_reference t_copy | |
WHERE t_orig.tablenames='tt_content' | |
AND t_orig.fieldname='image' | |
AND t_orig.deleted=0 | |
AND t_copy.tablenames='tt_content' | |
AND t_copy.fieldname='image' |
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 Helhum\SitePackage\Cache\Frontend; | |
use TYPO3\CMS\Core\Cache\Backend\BackendInterface; | |
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend; | |
use TYPO3\CMS\Core\Core\Environment; | |
use TYPO3\CMS\Core\Http\ServerRequestFactory; | |
class CacheWarmingFrontend extends VariableFrontend |
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
cache: | |
paths: | |
- /cache/composer | |
stages: | |
- composer | |
- deploy | |
build: | |
stage: composer |
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
version: '3.1' | |
services: | |
registry: | |
restart: always | |
image: registry:2 | |
volumes: | |
- registry:/var/lib/registry | |
environment: | |
- REGISTRY_HTTP_ADDR=0.0.0.0:5000 |
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/sh | |
# requires: wget, ca-certificates, grep | |
#rm /tmp/cookies.txt | |
cookiefile="/tmp/cookies.txt" | |
#domain should contain "domain_id-record_id" | |
domain_id=$(echo $domain | tr "-" "\n" | sed -n "1p") | |
record_id=$(echo $domain | tr "-" "\n" | sed -n "2p") |
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
function drips(){ | |
docker ps -q | xargs -n 1 docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' | sed 's/ \// /' | |
} |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule .* /index.php [L] |