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 | |
function create_user($sendinblueApiKey = '', $mail = '', $sendinblueLists = '1,2,3'){ | |
$config = \SendinBlue\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', $sendinblueApiKey); | |
$apiInstance = new \SendinBlue\Client\Api\ContactsApi( | |
new \GuzzleHttp\Client(), | |
$config | |
); | |
$listIds = []; |
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
/* | |
Ersetzt alle "Decomposed" gespeicherten Umlaute (ü,ö,ä,Ö) in der Datenbank | |
Ersetzt alle kaputten Ligaturen (ffi) in der Datenbank | |
https://de.wikipedia.org/wiki/Umlaut#Unicode | |
*/ | |
UPDATE THE_TABLE | |
SET THE_FIELD = UNHEX( | |
REPLACE( | |
REPLACE( |
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
'image' => [ | |
'exclude' => true, | |
'label' => 'Label', | |
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | |
'image', | |
[ | |
'appearance' => [ | |
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference', | |
'enabledControls' => [ | |
'info' => true, |
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
var resizeEndDelay = 150; | |
var resizeEndTimeout; | |
window.onresize = function(){ | |
clearTimeout(resizeEndTimeout); | |
resizeEndTimeout = setTimeout(function(){ | |
$(document).trigger('resizeEnd'); | |
}, resizeEndDelay); | |
}; | |
$(document).on("resizeEnd", function (event) { |
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
private function strtotime_de($input = '20.5.2019'){ | |
if ( preg_match('/^(?P<day>\d+)[\.-\/](?P<month>\d+)[\.-\/](?P<year>\d+)$/', $input, $matches) ) | |
{ | |
$timestamp = mktime(12, 0, 0, $matches['month'], $matches['day'], $matches['year']); | |
} | |
} |
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 | |
echo "<h4>GhostScript-Version is: </h4>" | |
. shell_exec("gs --version") . '<br><br>'; | |
echo "<h4>ImageMagick-Version is: </h4>" | |
. shell_exec("convert --version") . '<br><br>'; |
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
# [remove duplicate lines] remove duplicate lines from files keeping the original order #Shell | |
# From: https://iridakos.com/how-to/2019/05/16/remove-duplicate-lines-preserving-order-linux.html | |
awk '!visited[$0]++' your_file > deduplicated_file |
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
# Remove items from imageorient of textpic elements | |
TCEFORM.tt_content.imageorient { | |
removeItems = 1,2,3,4,5,6,7,8,9,10 | |
addItems { | |
62 = As Background | |
62.icon = EXT:typo3sz_assets/Resources/Public/Icons/svg/0645-earth.svg | |
} | |
} |
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 | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
$database = 'db'; | |
$user = 'user'; | |
$pass = 'pass'; | |
$host = 'localhost'; |
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
# TYPO3 Update von 7.6.16 auf 7.6.19 führt zu Fehlermeldung im RTE-Link Fenster. | |
# Fehlermeldung: Uncaught TYPO3 Exception: #1442787911: No link handlers are configured. Check page TSconfig TCEMAIN.linkHandler. | |
# | |
# Lösung: cache_core Dateien löschen | |
sudo rm -rf typo3temp/Cache/Code/cache_core | |
# oder | |
sudo rm -rf typo3temp/ |
NewerOlder