Skip to content

Instantly share code, notes, and snippets.

View svparijs's full-sized avatar

Sebastiaan van Parijs svparijs

View GitHub Profile
@svparijs
svparijs / Fluid.html
Created May 15, 2019 17:24 — forked from pixelbrackets/Fluid.html
TYPO3 Neos Backend Conditions
<f:if condition="{node.context.workspace.name} == 'live'">
Only visible in live frontend
</f:if>
<f:security.ifAccess privilegeTarget="TYPO3.Neos:Backend.GeneralAccess">
<f:if condition="{node.context.workspace.name} != 'live'">
Only visible in backend workspace
</f:if>
</f:security.ifAccess>
@svparijs
svparijs / .gitlab-ci.yml
Created October 11, 2017 12:29 — forked from mupkoo/.gitlab-ci.yml
Using Ember-CLI with Chrome on GitLab CI
image: node:7.10
cache:
paths:
- node_modules/
- bower_components/
before_script:
# Install Chrome
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
@svparijs
svparijs / FormErrors.php
Created October 9, 2017 09:04 — forked from dework/FormErrors.php
Symfony 2 Get All Form Errors
<?php
namespace Chyrius\SiteBundle\Form;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Form\Form;
/**
* @todo Обрабатывать так же ошибки детей-детей
*/
class FormErrors
@svparijs
svparijs / nginx.conf
Created March 28, 2017 17:15 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
<?php
namespace Sfi\Migration\Command;
/* *
* This script belongs to the TYPO3 Flow package "Sfi.Migration". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Cli\CommandController;
@svparijs
svparijs / Caches.yaml
Last active August 29, 2015 14:22 — forked from aertmann/Caches.yaml
Flow_Session_Storage:
backendOptions:
cacheDirectory: '%FLOW_PATH_DATA%Session/Flow_Session_Storage'
Flow_Session_MetaData:
backendOptions:
cacheDirectory: '%FLOW_PATH_DATA%Session/Flow_Session_MetaData'
URL:
http://example.com/nodename.html?
--vendor_name-fooplugin[package]=vendor.name&
--vendor_name-fooplugin[controller]=standard&
--vendor_name-fooplugin[action]=index&
--vendor_name-fooplugin[object][__identity]=4de2cc9c-79c0-55e7-310e-91c5ae2fea19
should result in
http://example.com/nodename/custom-part/objectname.html
@svparijs
svparijs / PdfJob.php
Last active August 29, 2015 14:06 — forked from bwaidelich/PdfJob.php
<?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;
<?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
<?php
namespace My\Package\Service;
use TYPO3\Flow\Annotations as Flow;
/**
* @Flow\Scope("singleton")
*/
class EmailService {