Skip to content

Instantly share code, notes, and snippets.

Thomas Löffler spoonerWeb

Block or report user

Report or block spoonerWeb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@spoonerWeb
spoonerWeb / Solr.php
Last active Nov 11, 2019
Get result count of Solr search without facets in TYPO3
View Solr.php
<?php
namespace Vendor\ExtensionName\Slot;
/*
* This file is part of a TYPO3 extension.
*
* 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 / .gitlab-ci.yml
Last active Nov 7, 2019
GitLab CI (version >= 9) configuration for testing and TER uploading TYPO3 extensions
View .gitlab-ci.yml
cache:
key: "$CI_COMMIT_REF_NAME/$CI_JOB_STAGE"
paths:
- .composer/
before_script:
# Install git on machine
- apk add git --update
stages:
@spoonerWeb
spoonerWeb / composer.json
Created Oct 9, 2019
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 / HelpfulToolsToConcentrate.md
Last active Oct 2, 2019
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 / FacebookVideoHelper.php
Last active Aug 6, 2019
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 / .gitlab-ci.yml
Last active Feb 18, 2019
GitLab CI for building and deploying TYPO3 websites with deployer
View .gitlab-ci.yml
cache:
paths:
- /cache/composer
stages:
- composer
- deploy
build:
stage: composer
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 / DataController.php
Created Jul 20, 2018
Sending an AJAX request to get Extbase objects
View DataController.php
<?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 / GitLab CI Links
Created Jun 24, 2018
Summary of links regarding GitLab CI/CD configurations
View GitLab CI Links
@spoonerWeb
spoonerWeb / pre-receive-php-lint
Created Aug 11, 2016
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);
You can’t perform that action at this time.