Skip to content

Instantly share code, notes, and snippets.

View spoonerWeb's full-sized avatar

Thomas Löffler spoonerWeb

View GitHub Profile
### 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 / FacebookVideoHelper.php
Last active August 6, 2019 07:31
Facebook video integration in TYPO3 (needs some love for FE rendering)
<?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 / RteHtmlParser.php
Last active July 14, 2016 17:15
Use wildcard in allowedClasses RTE
<?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)
#!/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 / HelpfulToolsToConcentrate.md
Last active October 2, 2019 09:16
Helpful tools to concentrate on important things

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 / .gitlab-ci.yml
Last active February 12, 2024 10:54
GitLab CI (version >= 9) configuration for testing and TER uploading TYPO3 extensions
cache:
key: "$CI_COMMIT_REF_NAME/$CI_JOB_STAGE"
paths:
- .composer/
before_script:
# Install git on machine
- apk add git --update
stages:
@spoonerWeb
spoonerWeb / GitLab CI Links
Created June 24, 2018 08:19
Summary of links regarding GitLab CI/CD configurations
@spoonerWeb
spoonerWeb / DataController.php
Created July 20, 2018 12:47
Sending an AJAX request to get Extbase objects
<?php
namespace Vendor\Extension\Controller;
use SJBR\StaticInfoTables\Domain\Repository\CountryZoneRepository;
class DataController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
/**
* @var \TYPO3\CMS\Extbase\Mvc\View\JsonView
*/
@spoonerWeb
spoonerWeb / package.json
Created November 2, 2018 14:08
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 / .gitlab-ci.yml
Last active October 1, 2024 08:23
GitLab CI for building and deploying TYPO3 websites with deployer
cache:
paths:
- /cache/composer
stages:
- composer
- deploy
build:
stage: composer