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 | |
$GLOBALS['TYPO3_CONF_VARS']['SYS']['curlUse'] = 1; | |
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFound_handling'] = '/page-not-found-page/'; |
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 | |
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][\Vendor\Package\Classname::class] = array( | |
'className' => \AnotherVendor\AnotherPackage\AnotherClassname::class | |
); |
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 | |
# bs=file size | |
# count=number of tries | |
# if=input file | |
# of=output file | |
# conv='sync' (macos) / 'fadatasync' (linux) wait for I/O-Cache to write data on disk | |
dd bs=${bs:-1024} count=${count:-256} if=/dev/zero of=dd_zero_file conv=sync && rm dd_zero_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
#!/bin/bash | |
tail -n10000 $logfile | cut -f3 -d' ' | sort | uniq -c | sort |
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 | |
if(getenv('TYPO3_MAINTENANCE')) { | |
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_force'] = 1; | |
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_handling'] = getenv('TYPO3_MAINTENANCE_REDIRECT_URL'); | |
$GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_handling_statheader'] = 'HTTP/1.0 503 Service Temporarily Unavailable'; | |
$GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'] = '127.0.0.1,::1,' . getenv('TYPO3_MAINTENANCE_DEVIPMASK'); | |
$GLOBALS['TYPO3_CONF_VARS']['BE']['adminOnly'] = 2; | |
} |
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 | |
nohup $command > ${logfile:-"nohup.log"} 2>&1& | |
echo $! > ${pidfile:-"nohup.pid"} |
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 | |
grep "$regex" -o $file | sort | uniq -c |
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 | |
error_reporting(E_ALL ^ E_NOTICE); | |
ini_set('display_errors', 1); |
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
TCAdefaults.pages { | |
author = Max Mustermann | |
layout = 2 | |
hidden = 1 | |
} |