Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alexander Schnitzler alexanderschnitzler

🏠
Working from home
View GitHub Profile
@alexanderschnitzler
alexanderschnitzler / rsync.sh
Created Oct 9, 2020 — forked from garethrees/rsync.sh
rsync & scp through jump host
View rsync.sh
# Upload
rsync -av -e "ssh -A JUMP_HOST ssh" FILE_TO_SEND DEST_HOST:/home/gareth/
# Download
rsync -av -e "ssh -A JUMP_HOST ssh" DEST_HOST:~/FILE_TO_DOWNLOAD ~/Downloads/
@alexanderschnitzler
alexanderschnitzler / MethodToConstructorInjectionRector.php
Last active Aug 29, 2020
MethodToConstructorInjectionRector.php
View MethodToConstructorInjectionRector.php
<?php
declare(strict_types=1);
namespace FriendsOfTYPO3\Rector\TYPO3\Rector\Extbase;
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use PHPStan\Type\ObjectType;
use Rector\Core\PhpParser\Node\Manipulator\ClassDependencyManipulator;
View switchable-controller-actions-deprecation.md

Deprecation of Switchable Controller Actions

To understand what the deprecation of SCA's means, one has to understand what they are and why they are used. And to describe this, we need to start at the very beginning, the definition of a plugin which is split into two different calls to static methods.

  1. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin()
  2. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin()

The naming of those methods is bit irritating as registerPlugin does indicate that it needs to be called

View typo3_composer_integration_wishlist.md

TYPO3 Composer Integration (Wishlist)

This document gives an overview of the issues I see in the current composer implementation in TYPO3. First of all I'll write it in the form of user stories and afterwards write an actual text.

Composer Related Wishes

As a developer I want to:

  • composer init and require typo3/cms
  • install TYPO3 extensions via composer
View templavoila_key.md
View TYPO3.Surf.md

TYPO3.Surf

This is statement regarding my tweet:

Still don't get that #TYPO3 Surf Hype. It's a NIH product and resembles everything we try to avoid in the community recently.

People started asking me about what I use instead, what NIH means and why exactly the problem with TYPO3.Surf is. As twitter only allows 140 chars, I decided to shortly write down this gist.

What is NIH and why does it harm?

View templavoila_crowdfunding.md

History

  • Extension created by Kaspar, then Robert Lemke, Steffen Kamper, Dmitry Dulepov.
  • Later managed by Tolleiv Nietsch.
  • Applause for a dying open source project during TYPO3 Camp Stuttgart 2013 made me think.
  • Took over the development for 6.2 together with Wouter Wolters.

Why?

  • I am feelancer and code for a living.
View Seperate Ways.md

Seperate Ways

Well, earlier this day I read an interview with Robert Lemke on the website of the german PHP magazine about the split off of Neos.

There is one quote from the article I used in one of my tweets. https://twitter.com/alex_schnitzler/status/600672348900065280 It says "Neos und TYPO3 haben sich zu unterschiedlichen Produkten entwickelt." which can be translated to "Neos and TYPO3 have evolved into different products." and I commented it as such "Falsch, Neos wurde nicht als Nachfolger für TYPO3 entwickelt." which means "Wrong, Neos has not been developed as a successor of TYPO3."

Later that day I received a direct message with the hint, that Neos actually has been developed as a successor of TYPO3. It's the moment I realized (again) that 140 chars maybe really are made for telling people how awesome your food is. However, I never intended to say that Neos wasn't planned to be the successor of TYPO3 – the Berlin Manifesto would p

View the future of templavoila.md
View flow-performance.md

TYPO3 Flow Performance

Yesterday evening our beloved @t3popcorn accoutn did post this tweet https://twitter.com/T3Popcorn/status/582994007858368512. For all that cannot see it as the account is private: It has a link to https://github.com/kenjis/php-framework-benchmark in it and asked why Flow isn't part of the benchmark.

I then checked out the repository and tried to get Flow benchmarked as well and after some minutes it already worked quite well, though it just ran in the development context. But what exactly did I do? I just install Flow in a subdirectory with this command: composer create-project --dev --keep-vcs typo3/flow-base-distribution typo3flow as stated in http://docs.typo3.org/flow/TYPO3FlowDocumentation/Quickstart/Index.html. At this moment of writing this command installs Flow 2.3. To test a real world sc

You can’t perform that action at this time.