This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"template" : "fusion-log-*", | |
"settings" : { | |
"index.refresh_interval" : "5s", | |
"analysis" : { | |
"analyzer" : { | |
"default" : { | |
"type" : "standard", | |
"stopwords" : "_none_" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. * | |
* * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* General Adjustmens to the Neos Backend - we only do that if "neos-controls" is visible, that is we are NOT in full-screen mode. */ | |
/* Bootstrap gives the "container" specific widths (inside media queries); which breaks the margins Neos adds to the body. | |
Thus, we need to reset these settings. */ | |
.neos-controls .container { | |
width: inherit !important; | |
} | |
/* The topbar of neos needs some space, so we push the top navigation lower */ | |
.neos-controls .page-topNavigation { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by IntelliJ IDEA. | |
* User: sebastian | |
* Date: 18.07.15 | |
* Time: 11:19 | |
*/ | |
namespace TYPO3\NeosDemoTypo3Org; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Returns the content specified by $locale. | |
* | |
* This function tries to return a content object which strictly matches the locale of the given | |
* context. If no such content exists it will try to find a content object which is suggested by | |
* the context's fallback strategy. | |
* | |
* @param \F3\TYPO3\Domain\Service\ContentContext $contentContext Context the content should match | |
* @return \F3\TYPO3\Domain\Model\Content\ContentInterface The content object or NULL if none matched the given context |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Asdf | |
sad | |
fs | |
sd | |
dsfs | |
fdsf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$controllerObjectName = 'F3\Foo\Bla\Controller\Abc\Xyz\QuuxController'; | |
$controllerObjectName = 'F3\Foo\Service\Rest\V1\QuuxController'; | |
$matches = array(); | |
preg_match('/ | |
^F3 | |
\\\\(?P<packageKey>[^\\\\]+) | |
( | |
\\\\Controller |
OlderNewer