Skip to content

Instantly share code, notes, and snippets.

@aertmann
aertmann / Donate.ts2
Last active February 12, 2018 21:30
Donation plugin for Neos using form framework and custom payment gateway integration (QuickPay) – Included in https://speakerdeck.com/aertmann/tasty-recipes-for-every-day-neos
prototype(Acme.Donate:Donate) < prototype(TYPO3.Neos:Plugin) {
package = 'Venstre.VenstreDk'
controller = 'Donate'
node = ${node}
}
@tomasnorre
tomasnorre / gist:772928763ed6d154e58a
Created March 12, 2015 08:22
TYPO3Surf Deployment
<?php
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
$workflow->setEnableRollback(FALSE);
$workflow->addTask('typo3.surf:typo3:flow:setfilepermissions',
array(
'username' => 'jenkins',
'webserverUsername' => 'www-data',
'webserverGroupname' => 'www-data'
)
@aertmann
aertmann / gist:822069d318febcbd65bd
Last active August 29, 2015 14:15
Pull from Gerrit mirror instead of git.typo3.org (temporary fix)
git config --global url."https://git.typo3.org".insteadOf git://git.typo3.org
@bwaidelich
bwaidelich / PdfJob.php
Created November 18, 2013 15:39
Example usage for the ``TYPO3.JobQueue.Common`` TYPO3 Flow package (JobManager)
<?php
namespace Acme\JobQueueTest;
/* *
* This script belongs to the TYPO3 Flow package "Acme.JobQueueTest". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Utility\Files;
@philips
philips / gist:7310435
Last active March 17, 2017 21:03
Setting up swap on coreos

Setup a swap file in the stateful partition

Run these commands as root to create a 512 megabyte swap.

fallocate -l 512m /media/state/512MiB.swap
chmod 600 /media/state/512MiB.swap
mkswap /media/state/512MiB.swap
@bwaidelich
bwaidelich / EmailService.php
Last active May 23, 2016 13:35
Simple Email Service for TYPO3 Flow
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {
@jakzal
jakzal / KernelAwareTest.php
Last active June 27, 2024 16:20
KernelAwareTest
<?php
require_once dirname(__DIR__).'/../../../../app/AppKernel.php';
/**
* Test case class helpful with Entity tests requiring the database interaction.
* For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead.
*/
abstract class KernelAwareTest extends \PHPUnit_Framework_TestCase
{