This file contains hidden or 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 JWeiland\LuxletterExtended\SignalSlot; | |
use In2code\Luxletter\Domain\Model\User; | |
use JWeiland\LuxletterExtended\Domain\Service\ParseNewsletterUrlService; | |
use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; | |
use TYPO3\CMS\Core\Context\Context; | |
use TYPO3\CMS\Core\Context\UserAspect; | |
use TYPO3\CMS\Core\Context\WorkspaceAspect; |
This file contains hidden or 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
# Show possible errors | |
config.contentObjectExceptionHandler = 0 | |
lib.categories = CONTENT | |
lib.categories { | |
table = sys_category | |
select { | |
# Adapt to your needs | |
pidInList = root | |
# Set a recursive level if needed |
This file contains hidden or 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 | |
$sum = []; | |
$sum['all'] = microtime(true); | |
$fileNames = []; | |
$start = microtime(true); | |
for ($i = 0; $i < 1000; $i++) { | |
$fileName = uniqid('FileIO', true); | |
file_put_contents($fileName, bin2hex(random_bytes(5))); |
This file contains hidden or 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 | |
PASSWORD=XXXXXX | |
HOST=XXXXXX | |
USER=XXXXXX | |
DATABASE=XXXXXX | |
DB_FILE=dump.sql | |
EXCLUDED_TABLES=( | |
be_sessions | |
cf_adminpanel_requestcache | |
cf_adminpanel_requestcache_tags |
This file contains hidden or 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 | |
namespace JWeiland\Drstmplmodule\Tests\Functional\Ajax; | |
/* | |
* This file is part of the drstmplmodule project. | |
* | |
* It is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU General Public License, either version 2 | |
* of the License, or any later version. | |
* |
This file contains hidden or 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 | |
namespace JWeiland\MyExt\Mvc\View; | |
/* | |
* This file is part of the my_ext project. | |
* | |
* It is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU General Public License, either version 2 | |
* of the License, or any later version. | |
* |
This file contains hidden or 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
UPDATE tt_content | |
SET pi_flexform = REPLACE( | |
pi_flexform, | |
CONCAT( | |
'<field index="settings.classForTable">', | |
CHAR(10), | |
' <value index="vDEF">HpTableST1</value>', | |
CHAR(10), | |
' </field>' | |
), |
This file contains hidden or 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 hidden or 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
Wichtig: Der nfs_mount des ddev-Container darf nicht aktiviert sein. Da gibt's irgendwelche driver-Konflikte. | |
In PhpStorm -> Settings -> Build, Execution, Deployment -> Docker -> Docker for Mac einrichten. | |
--> Path /Users -> /Users | |
In PhpStorm -> Settings -> Languages & Frameworks -> PHP | |
Language Level auswählen: Beispiel: PHP 7.2 | |
CLI Interpreter konfigurieren -> Button: ... | |
Neuen CLI Interpreter anlegen: From Docker, Vagrant, Vm, ... | |
Radio-Select auf "Docker Compose" setzen. Es geht auch "Docker", dann jedoch nur UnitTests. Nicht Functional Tests. |
This file contains hidden or 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 JWeiland\Maps2\Hook; | |
/* | |
* This file is part of the maps2 project. | |
* | |
* It is free software; you can redistribute it and/or modify it under | |
* the terms of the GNU General Public License, either version 2 | |
* of the License, or any later version. |