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
# mittwaldserver umleiten | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^.*\.mittwaldserver\.info [NC,OR] | |
RewriteCond %{HTTP_HOST} ^.*\.webspaceconfig\.de [NC] | |
RewriteCond %{HTTPS}s ^on(s)| | |
# # Zugriff verbieten (403 Fehler) (einfacher einzubinden, reicht für SEO) | |
# RewriteRule ^.* - [F] | |
# # umleiten auf andere Domain (besser für User) | |
RewriteRule ^ http%1://www.DOMAIN.de/$1 [R=301,L] |
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 | |
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 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 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 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 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
<settings.link> | |
<TCEforms> | |
<exclude>1</exclude> | |
<label> | |
Link to Page or a File or a Content-Element | |
</label> | |
<config> | |
<type>input</type> | |
<size>30</size> | |
<eval>trim</eval> |
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
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 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 to the USER object (tx_seo_xmlsitemaps.10 = USER) | |
tx_seo_xmlsitemaps.10.useDomain = https://www.site.de/ |
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 | |
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 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 |
NewerOlder