git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| <?php | |
| // Change this to your own taxonomy and post type | |
| new Tag_Checklist( 'taxonomy_name', 'post_type' ); | |
| /** | |
| * Use checkbox term selection for non-hierarchical taxonomies | |
| * | |
| * @author Hugh Lashbrooke |
| server { | |
| listen *:80; | |
| server_name neos.dev; | |
| root /var/www/neos/Web; | |
| autoindex off; | |
| access_log /var/log/nginx/neos.dev.access.log; | |
| error_log /var/log/nginx/neos.dev.error.log; | |
| index index.php index.html; |
| # Redis (has to be configured to different databases on shared hosting) | |
| TYPO3_TypoScript_Content: | |
| backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
| backendOptions: | |
| defaultLifetime: 0 | |
| Flow_Mvc_Routing_Resolve: | |
| backend: TYPO3\Flow\Cache\Backend\RedisBackend | |
| backendOptions: | |
| defaultLifetime: 0 |
| # Flow 3.0+ | |
| Flow_Session_Storage: | |
| persistent: TRUE | |
| Flow_Session_MetaData: | |
| persistent: TRUE | |
| # Flow 2.0-2.3 (only works with Surf deployment – not flow:cache:flush command) | |
| Flow_Session_Storage: | |
| backendOptions: |
| <?php | |
| namespace Your\Package\ViewHelpers\Format; | |
| use TYPO3\Flow\Annotations as Flow; | |
| use TYPO3\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| /** | |
| * ViewHelper rendering the given HTML string through HTMLPurifier | |
| */ | |
| class PurifyViewHelper extends AbstractViewHelper { |
| <?php | |
| namespace Vendor\Site\Command; | |
| use Vendor\Site\Service\SocialSharesService; | |
| use TYPO3\Eel\FlowQuery\FlowQuery; | |
| use TYPO3\Flow\Annotations as Flow; | |
| use TYPO3\Flow\Cli\CommandController; | |
| use TYPO3\Flow\Configuration\ConfigurationManager; | |
| use TYPO3\Flow\Http\Request; |
| # 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 | |