Skip to content

Instantly share code, notes, and snippets.

View cedricziel's full-sized avatar
🥸

Cedric Ziel cedricziel

🥸
View GitHub Profile
@cedricziel
cedricziel / FacebookVideoHelper.php
Created October 7, 2016 14:27 — forked from spoonerWeb/FacebookVideoHelper.php
Facebook video integration in TYPO3 (needs some love for FE rendering)
<?php
namespace Vendor\ExtensionKey\Helpers;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@cedricziel
cedricziel / gist:5ecf9692bc44a49d14cfe1853bbc6f6c
Created July 25, 2016 11:07 — forked from radmiraal/gist:8d68190e4d8de98ed865
Routing configuration for the TYPO3.TYPO3CR paginate viewhelper in a TYPO3 Neos nodetype
-
name: 'Search paginate'
uriPattern: '{node}/{--typo3-typo3cr-viewhelpers-widget-paginateviewhelper.currentPage}'
defaults:
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@format': 'html'
'@action': 'show'
'--typo3-typo3cr-viewhelpers-widget-paginateviewhelper':
'@package': ''
@cedricziel
cedricziel / Jenkinsfile
Created April 3, 2016 13:54 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@cedricziel
cedricziel / IntelliJ_IDEA__Perf_Tuning.txt
Last active August 29, 2015 14:27 — forked from P7h/IntelliJ_IDEA__Perf_Tuning.txt
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
<?php
namespace Smichaelsen\Gist\Mail;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext;
/**
* This class represents an email which can be rendered with fluid.
* You can use all the possibilities of TYPO3's MailMessage but instead of
if($projects = $service->getProjects()){
//if($projects = $this->projectRepository->getAllProjectsByService($service)){
foreach($projects as $project){
foreach($project->getSlides() as $slide)
$slidearray[] = $this->formatSlide($slide);
}
}
/**
* Init ICalendar Action
* Set Format to ICS
*/
public function initializeICalendarAction() {
$this->request->setFormat('ics');
}
/**
* action iCalendar
Create a Hidden Form Field named recipient
Define Recipient Email as: {f:cObject(typoscriptObjectPath:'lib.receiveremail')}
Define Recipient Name as: {f:cObject(typoscriptObjectPath:'lib.receivername')}