Skip to content

Instantly share code, notes, and snippets.

View kitsunet's full-sized avatar
:octocat:

Christian Müller kitsunet

:octocat:
View GitHub Profile
@kitsunet
kitsunet / RouteCachingAspect.php
Created October 26, 2018 09:17
Neos Flow Aspect to fill match cache when resolve cache is filled to speed up matching with many childern.
<?php
namespace Vendor\Package\Routing\Aspects;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Aop\JoinPointInterface;
use Neos\Flow\Core\Bootstrap;
use Neos\Flow\Http\HttpRequestHandlerInterface;
use Neos\Flow\Mvc\Routing\RouterCachingService;
use Neos\Neos\Controller\Frontend\NodeController;
use Neos\ContentRepository\Domain\Model\NodeInterface;
@kitsunet
kitsunet / google_docs_eve_api.gs
Last active January 2, 2024 08:27
Some Google Docs EVE Online code
/*
see https://www.fuzzwork.co.uk/2017/03/14/using-esi-google-sheets/ for install details.
Needs work, as it reauths for each call. As it can't store the access token or expiry in the sheet.
*/
function getSetup(charid) {
var config = {};
var documentProperties = PropertiesService.getDocumentProperties();
var characterData = SpreadsheetApp.getActiveSpreadsheet().getRangeByName('char_' + charid);
var config = {
@kitsunet
kitsunet / UpgradePackages.json
Last active January 23, 2017 20:12
Upgrade distribution stuff from Flow 3.0 to Flow 4.0
{
"typo3/neos": {
"replacement": "neos/neos",
"version": "~3.0.0"
},
"typo3/typoscript": {
"replacement": "neos/fusion",
"version": "~3.0.0"
},
"typo3/typo3cr": {
@kitsunet
kitsunet / MyCustomEditor.js
Last active October 19, 2016 12:26
Using custom editors in Neos
define(
[
'emberjs',
'Library/jquery-with-dependencies',
'Content/Inspector/Editors/ImageEditor'
],
function (Ember, $, ImageEditor) {
return ImageEditor.extend({
categorization: [],
@kitsunet
kitsunet / composer.json
Last active October 13, 2017 22:19
Neos Collection Install
{
"name": "typo3/neos-base-distribution",
"description" : "TYPO3 Neos Base Distribution",
"license": "GPL-3.0+",
"support": {
"email": "neos@typo3.org",
"irc": "irc://irc.freenode.org/typo3-neos",
"forum": "http://forum.typo3.org/index.php/f/121/",
"issues": "https://jira.typo3.org/",
"source": "https://git.typo3.org/"
@kitsunet
kitsunet / tracklist.md
Last active August 29, 2015 14:26
T3CHH Music Session

Tracks

Artists

  • Tangerine Dreams
  • System Of A Down
  • Felix Meyer (Menschen des 21. Jahrhunderts)
  • Seelig
  • Seelig + Ina Müller
  • Trio Elf
// $path sollte das Verzeichnis mit den Bildern sein
$images = \TYPO3\Flow\Utility\Files::readDirectoryRecursively($path)
foreach($images as $imageFilePath) {
$resource = $this->resourceManager->importResource($imageFilePath);
$image = new \TYPO3\Media\Domain\Model\Image($resource);
$this->assetRepository->add($image);
unlink($imageFilePath);
}
<?php
class Scripts {
/**
* @param string $commandIdentifier E.g. typo3.flow:cache:flush
* @param array $settings The TYPO3.Flow settings
* @param array $commandArguments Command arguments
@kitsunet
kitsunet / NodeTypes.yaml
Last active August 29, 2015 14:17
Neos Workshop
# If you need more than just the "main" content area you can uncomment the snippet below. It will add a "sidebar" area
# to your pages. You can add as many areas as you like, still only those that are rendered in your TypoScript and
# Template are visible on your page.
---
#'TYPO3.Neos.NodeTypes:Page':
# childNodes:
# 'sidebar':
# type: 'TYPO3.Neos:ContentCollection'
'Inspiring.NeosWorkshop:SectionPage':
'Foo.Bar':
superTypes:
'TYPO3.Neos:Node': 'TYPO3.Neos:Node'