Skip to content

Instantly share code, notes, and snippets.

View cedricziel's full-sized avatar
🥸

Cedric Ziel cedricziel

🥸
View GitHub Profile
# Configuration/Production/Settings.yaml
# ...
TYPO3:
Flow:
core:
phpBinaryPathAndFilename: '/usr/local/bin/php7-70STABLE-CLI'
@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 / ContactFormPlugin.ts2
Created July 21, 2016 08:54
Neos CMS Plugin with inline-editable content areas
prototype(Websight.Project:ContactFormPlugin) < prototype(TYPO3.Neos:Plugin)
prototype(Websight.Project:ContactFormPlugin) {
package = 'Websight.Project'
controller = 'ContactRequest'
action = 'new'
node = ${node}
titleLeft = ${q(node).property('titleLeft')}
titleRight = ${q(node).property('titleRight')}
textLeft = ${q(node).property('textLeft')}
}
<?php
namespace Vendor\InfraBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Output\BufferedOutput;
@cedricziel
cedricziel / MemcachedFactory.php
Created April 7, 2016 08:28
AppEngine flexible environment memcached handling for sessions and doctrine cache
<?php
namespace Vendor\InfraBundle\Cache;
use Memcached;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* @package Vendor\InfraBundle\Cache
@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 / post-receive
Created January 7, 2016 20:27
Uberspace Laravel 5.2 Zero downtime deployments as a post-receive hook.
#!/bin/bash
source ~/.bash_profile
VERSION=$(date +%Y%m%d%H%M%S)
BASE_DIRECTORY=/var/www/virtual/foxyzor/html/application
SOURCE_ROOT=$BASE_DIRECTORY/versions/$VERSION
SHARED_FOLDER=$BASE_DIRECTORY/shared
STORAGE_FOLDER=$BASE_DIRECTORY/shared/storage
CURRENT_LINK=$BASE_DIRECTORY/current
@cedricziel
cedricziel / ext_tables.php
Last active September 7, 2015 09:24
TYPO3 Module label
<?php
// ..
if (TYPO3_MODE === 'BE') {
// Moves the new main module to a new position (after 'web' in this case)
$modulName = 'mymod'; // the main module name from below
if (!isset($TBE_MODULES[$modulName])) {
$temp_TBE_MODULES = array();
foreach ($TBE_MODULES as $key => $val) {
if ($key == 'web') {
$temp_TBE_MODULES[$key] = $val;
@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
server {
server_name foo.bar;
listen xx.xx.xx.xx;
location / {
if ($http_cf_visitor != '{"scheme":"https"}'){
add_header X-From-NGINX yes;
rewrite ^(.*)$ https://www.foo.bar$1 redirect;
}
proxy_pass http://127.0.0.1:62500;
proxy_redirect off;