Skip to content

Instantly share code, notes, and snippets.

View skurfuerst's full-sized avatar
☀️

Sebastian Kurfürst skurfuerst

☀️
View GitHub Profile
# This stylesheet is only loaded when the Neos UI is shown
page.head.stylesheets.backend = TYPO3.TypoScript:Tag {
tagName = 'link'
attributes {
rel = 'stylesheet'
href = TYPO3.TypoScript:ResourceUri {
package = 'Acme.Demo'
path = 'Styles/Backend.css'
}
}
@skurfuerst
skurfuerst / gist:33b403422f4fa2bf23f1
Created September 3, 2014 09:19
Neos Package.php - prepopulate content collection
<?php
namespace TYPO3\Neos\NodeTypes;
/* *
* This script belongs to the TYPO3 Flow package "TYPO3.Neos". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU General Public License, either version 3 of the *
* License, or (at your option) any later version. *
* *
{
"template" : "fusion-log-*",
"settings" : {
"index.refresh_interval" : "5s",
"analysis" : {
"analyzer" : {
"default" : {
"type" : "standard",
"stopwords" : "_none_"
}
require "cjson"
local dt = require 'date_time'
-- Generic decoder for JSON logs. This will extract all JSON
-- keys and add them to the `Fields` variable of the created
-- Heka message.
--
-- Example use:
--
-- [NginxJsonLogDecoder]
@skurfuerst
skurfuerst / 1_ResetClientCallbackUriModule.groovy
Last active August 29, 2015 14:04
Make Pac4j in Ratpack Name-Based-Hosting aware
import com.google.inject.AbstractModule
import com.google.inject.Injector
import org.pac4j.core.client.Client
import ratpack.guice.HandlerDecoratingModule
import ratpack.handling.Handler
import ratpack.handling.Handlers
/**
* Pac4j does not properly support "Name-based Virtual Hosts". After some debugging, I could find the
* root-cause of the issue:
@skurfuerst
skurfuerst / SerializableMixin.coffee
Created January 5, 2014 11:42
SerializableMixin for Ember.JS
define [
'lib/ember'
], (
E
) ->
# # SerializableMixin
#
# Makes persistent parts of an `Ember.Object` serializable and deserializable into a string:
#
editPreviewModes:
## ORIGINAL (Aske's Patch)
inPlace:
editingMode: TRUE
previewMode: FALSE
renderingMode: 'default'
title: 'In-place'
position: 100
env[FLOW_ROOTPATH] = /var/www/new_sandstorm_website/flow/releases/current/
env[FLOW_WEBPATH] = /var/www/new_sandstorm_website/htdocs/
env[FLOW_CONTEXT] = Production
env[FLOW_REWRITEURLS] = 1'
includeDefaultConfiguration false
extraConfiguration '
location ~ "^/_Resources/Persistent/" {
rewrite "(.{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break;
/**
Renders the named template in the current context using the singleton
instance of the same-named controller.
If a view class with the same name exists, uses the view class.
If a `model` is specified, it becomes the model for that controller.
The default target for `{{action}}`s in the rendered template is the
named controller.
/* Buttons
Use the standard, but classy, .button for form actions and primary actions.
foo `bar`
```
<h2>Foo</h2>
a
```