Skip to content

Instantly share code, notes, and snippets.

View spoonerWeb's full-sized avatar

Thomas Löffler spoonerWeb

View GitHub Profile
View gist:05554febb2d790340401
### Keybase proof
I hereby claim:
* I am SpoonerWeb on github.
* I am spoonerweb (https://keybase.io/spoonerweb) on keybase.
* I have a public key whose fingerprint is 1546 09BD 23E0 774A 218F 1AD6 FD07 5A11 56B5 F86D
To claim this, I am signing this object:
@spoonerWeb
spoonerWeb / RteHtmlParser.php
Last active July 14, 2016 17:15
Use wildcard in allowedClasses RTE
View RteHtmlParser.php
<?php
namespace Vendor\ExtensionKey\Html;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
@spoonerWeb
spoonerWeb / pre-receive-php-lint
Created August 11, 2016 08:56
Pre-Receive Hook (php-lint)
View pre-receive-php-lint
#!/usr/bin/php
<?php
$ref = trim($argv[2]);
$diff = array();
$return = 0;
exec("git diff --name-only $argv[1] $ref 2> /dev/null", $diff, $return);
@spoonerWeb
spoonerWeb / package.json
Created November 2, 2018 14:08
package.json
View package.json
{
"name": "gitlab-website-test",
"version": "1.0.0",
"description": "",
"main": "Gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
@spoonerWeb
spoonerWeb / FacebookVideoHelper.php
Last active August 6, 2019 07:31
Facebook video integration in TYPO3 (needs some love for FE rendering)
View FacebookVideoHelper.php
<?php
namespace Vendor\ExtensionKey\Helpers;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@spoonerWeb
spoonerWeb / HelpfulToolsToConcentrate.md
Last active October 2, 2019 09:16
Helpful tools to concentrate on important things
View HelpfulToolsToConcentrate.md

Helpful tools to concentrate on important things

devdocs.io

It's a bundle of documentation of languages, projects and other stuff. Easily searchable and can be used offline.

Download: https://devdocs.io

postman

@spoonerWeb
spoonerWeb / composer.json
Created October 9, 2019 17:50
WordPress composer.json
View composer.json
{
"name": "spooner/wordpress",
"type": "project",
"config": {
"vendor-dir": "content/vendor"
},
"extra": {
"wordpress-install-dir": "wp",
"installer-paths": {
"content/plugins/{$name}/": [
@spoonerWeb
spoonerWeb / config.yaml
Last active April 20, 2020 15:56
"ddev logs web" output
View config.yaml
APIVersion: v1.13.1
name: typo3.org
type: typo3
docroot: public
php_version: "7.4"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
@spoonerWeb
spoonerWeb / GitLab CI Links
Created June 24, 2018 08:19
Summary of links regarding GitLab CI/CD configurations
View GitLab CI Links
@spoonerWeb
spoonerWeb / ext_localconf.php
Created January 12, 2021 11:54
Add PageTS configuration to FlexForm elements
View ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfig::class] = [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfigMerged::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfig::class,
]
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultValues::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfigMerged::class
]