Skip to content

Instantly share code, notes, and snippets.

View htuscher's full-sized avatar

Hans Tuscher htuscher

View GitHub Profile
@htuscher
htuscher / 10-php.conf
Created May 14, 2017 16:54
Webdevops FastCGI params
# etc/nginx/vhost.common.d/10-php.conf
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_read_timeout 1000;
<FOO_BAR>
}
@htuscher
htuscher / Root.fusion
Last active May 20, 2017 19:11
Neos Atomic.Fusion example atom and molecule
prototype(Onedrop.Demo:Atom.Button) < prototype(PackageFactory.AtomicFusion:Component) {
text = ''
type = 'default'
size = ''
renderer = Neos.Fusion:Tag {
tagName = 'button'
attributes.class = PackageFactory.AtomicFusion:ClassNames {
btn = true
btn-default = ${props.type == 'default'}
@htuscher
htuscher / PhppassSaltedHashingStrategy.php
Created April 26, 2017 10:59
Neos Flow account login with TYPO3 fe_user login with PhppassSalt
<?php
namespace Onedrop\Login\Security\Cryptography;
use Neos\Flow\Security\Cryptography\PasswordHashingStrategyInterface;
class PhpassSaltedHashingStrategy implements PasswordHashingStrategyInterface
{
@htuscher
htuscher / composer.json
Created April 4, 2017 07:16
TYPO3 8 LTS prep with introduction package
{
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" }
],
"name": "typo3/cms-base-distribution",
"description" : "TYPO3 CMS Base Distribution",
"license": "GPL-2.0+",
"require": {
"typo3/cms": "dev-master as 8.7.0",
"typo3-ter/introduction": "*"
@htuscher
htuscher / FusionLintCommandController.php
Created March 23, 2017 15:41
Neos.Fusion syntax check
<?php
namespace Onedrop\FusionSyntax\Command;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Cli\CommandController;
use Neos\ContentRepository\Domain\Service\ContextFactoryInterface;
use Neos\Neos\Domain\Service\FusionService;
use Onedrop\FusionSyntax\Service\StandaloneFusionService;
@htuscher
htuscher / composer.json
Created March 7, 2017 09:00
Composer external package manual
{
"repositories": [
{
"type": "package",
"package": {
"version": "2.0",
"type": "neos-plugin",
"name": "networkteam/neos-mailobfuscator",
"source": {
"url": "https://github.com/ComiR/Networkteam.Neos.MailObfuscator.git",
@htuscher
htuscher / NodeTypes.Mixin.InheritCollection.yaml
Created February 10, 2017 14:31
Neos Conditional inherited ContentCollection
---
'Onedrop.Demo:InheritFooterMixin':
abstract: true
childNodes:
sidebar:
type: 'TYPO3.Neos:ContentCollection'
properties:
inheritSidebar:
type: boolean
defaultValue: true
@htuscher
htuscher / Root.fusion
Last active February 8, 2017 15:16
Neos Fusion JSON
jobData = Neos.Fusion:RawArray {
'@context' = 'http://schema.org'
'@type' = 'JobPosting'
baseSalary = 10000
industry = 'Some thing'
title = ${q(node).property('title')}
jobLocation = Neos.Fusion:RawArray {
'@type' = 'Place'
address = Neos.Fusion:RawArray {
'@type' = 'PostalAddress'
@htuscher
htuscher / cleanup.sh
Created August 8, 2016 13:48
Cleanup docker engine
#!/bin/bash
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
docker volume ls -qf dangling=true
@htuscher
htuscher / DfsHelper.php
Created June 14, 2016 12:00
Neos Menu DFS
<?php
namespace Onedrop\Manuals\TypoScript\Helper;
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Eel\ProtectedContextAwareInterface;
use TYPO3\TYPO3CR\Domain\Model\NodeInterface;
/***************************************************************
* Copyright notice
*