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/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
| [{"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/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
| # 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
| <?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
| # Let apache know we're behind a SSL reverse proxy | |
| SetEnvIf X-Forwarded-Proto "https" HTTPS=on | |
| # Redirect to HTTPS | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{HTTPS} !=on | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC] | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| </IFModule> |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| html { | |
| /* Adjust font size */ | |
| font-size: 100%; | |
| -webkit-text-size-adjust: 100%; | |
| /* Font varient */ | |
| font-variant-ligatures: none; | |
| -webkit-font-variant-ligatures: none; | |
| /* Smoothing */ | |
| text-rendering: optimizeLegibility; | |
| -moz-osx-font-smoothing: grayscale; |
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
| composer create-project typo3/cms-base-distribution='^7.6.0' my-test-typo3 --no-interaction | |
| cd my-test-typo3/ | |
| composer require helhum/typo3-console | |
| # This will only work with PHP < 7 as realurl need PHP 5.x | |
| composer require typo3-ter/introduction | |
| cp web/typo3conf/ext/typo3_console/Scripts/typo3cms . | |
| cp web/typo3conf/ext/bootstrap_package/Configuration/Apache/.htaccess web/ | |
| chmod +x typo3cms | |
| ./typo3cms install:setup --non-interactive --database-user-name="root" --database-user-password="root" --database-host-name="localhost" --database-port="3306" --database-name="t3_my_test" --admin-user-name="admin" --admin-password="password" --site-name="Auto Install" | |
| ./typo3cms database:updateschema '*.*' |