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
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
<?php | |
namespace Ormigo\Tests; | |
abstract class AbstractTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* Apply expectations for an \Iterator on a mock object. | |
* | |
* @see http://php.net/Iterator |
<?php | |
// shell/listAllCron.php | |
require_once 'abstract.php'; | |
class Mage_Shell_CronLister extends Mage_Shell_Abstract | |
{ | |
public function run() | |
{ | |
$cronJobs = Mage::app()->getConfig()->getNode('crontab/jobs'); |
public function indexAction() { | |
/** @var \TYPO3\CMS\Core\Resource\ResourceFactory $resourceFactory */ | |
$resourceFactory = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Resource\\ResourceFactory'); | |
$fileReference = $resourceFactory->getFileReferenceObject($this->settings['test']); | |
$fileArray = $fileReference->getProperties(); | |
$this->view->assign('image', $fileArray); | |
} |
<?php | |
return array( | |
// ... | |
'SYS' => array( | |
'caching' => array( | |
'cacheConfigurations' => array( | |
'cf_cache_hash' => array( | |
'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\RedisBackend', | |
'options' => array( | |
'database' => 10, |
You can use tiny script m2dump it is doing the same thing as described below.
Estimate size of directories and exclude no needed.
du -sh ./* | sort -h
If you like to add a custom form element, please follow these steps. For detailed information and documentation of ext:form please visit the official documentation: https://docs.typo3.org/typo3cms/extensions/form/Index.html
First of all create a new extension, which will hold all the configuration, templates, etc.
deploy:live: | |
image: 1drop/docker:git | |
stage: deploy | |
when: manual | |
environment: | |
name: production | |
url: https://www.somecustomer.de | |
before_script: | |
- eval $(ssh-agent -s) | |
- ssh-add <(echo "$SSH_PRIVATE_KEY") |
// Universal event tracking for TYPO3 Powermail XHR submissions. | |
// | |
// Note: As of version 4.2.0, Powermail sends a custom event on submit; | |
// see https://github.com/einpraegsam/powermail/blob/develop/Documentation/Faq/Index.rst#how-can-i-add-a-callback-function-on-ajax-submit | |
document.addEventListener("DOMContentLoaded", function(event) { | |
// Step 1 | |
// Attach an onsubmit handler to all powermail ajax forms, which will | |
// make the powermail form id available in the window object on submit. | |
var forms = document.querySelectorAll('form'); | |
for (var i in forms) { |