Skip to content

Instantly share code, notes, and snippets.

View simonschaufi's full-sized avatar
👨‍💻

Simon Schaufelberger simonschaufi

👨‍💻
View GitHub Profile
@kiselev-dv
kiselev-dv / gtfs_sources.yml
Last active November 1, 2025 15:38
GTFS Feeds
gtfsSources:
- name: halifax-city
url: https://gtfs.halifax.ca/static/google_transit.zip
tripUpdates: https://gtfs.halifax.ca/realtime/TripUpdate/TripUpdates.pb
- name: netherlands
url: https://gtfs.ovapi.nl/nl/gtfs-nl.zip
tripUpdates: https://gtfs.ovapi.nl/nl/tripUpdates.pb
- name: swiss-opendata
url: https://data.opentransportdata.swiss/dataset/6cca1dfb-e53d-4da8-8d49-4797b3e768e3/resource/b57705bc-6ddf-40b6-b46b-2fbddef14142/download/gtfs_fp2025_20250925.zip
- name: dublinbus
@xperseguers
xperseguers / README.md
Last active March 23, 2024 18:21
Create composer patch from a pending TYPO3 patch on Gerrit

Following structure is expected for your TYPO3 project (adapt script if it differs):

.
├── composer.json
├── composer.lock
├── patches
│   ├── ...
│   └── ...
└── scripts
@derhansen
derhansen / SwitchableControllerActionsPluginUpdater.php
Created March 20, 2021 11:23
SwitchableControllerActionsPluginUpdater for TYPO3 extension "Plain FAQ"
<?php
declare(strict_types=1);
/*
* This file is part of the Extension "plain_faq" for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*/
@marble
marble / gist:b02c753abf19368e0f34678601c157f3
Last active January 6, 2021 01:36
render-typo3-viewhelper-docs-from-php-code-whiptail-menu.sh
#! /bin/bash
# This software is MIT licensed.
# Available from https://gist.github.com/marble/b02c753abf19368e0f34678601c157f3/edit
# Designed for a Linux like system that has the 'whiptail' command installed.
# Copyright <2020> <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
@einpraegsam
einpraegsam / NotAuthorized.php
Last active October 23, 2024 20:07
Individual 403 and 404 handling in TYPO3 9 and 10. Show a 404 page but keep wrong URL. In case of a missing frontend login, redirect to login page and redirect back after login.
<?php
declare(strict_types=1);
namespace Vendor\Sitepackage\PageHandler;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use TYPO3\CMS\Core\Error\PageErrorHandler\PageErrorHandlerInterface;
use TYPO3\CMS\Core\Http\RedirectResponse;
use TYPO3\CMS\Core\Http\Uri;
use TYPO3\CMS\Core\Site\Entity\Site;
@mpdude
mpdude / fix-cs-php.yml
Last active August 27, 2024 07:31
GitHub Actions workflow to run PHP-CS-Fixer and push changes back to the branch
# Update this by running
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml
on:
push:
branches:
- master
pull_request:
name: Coding Standards
@t3easy
t3easy / .gitlab-ci.yml
Last active October 26, 2023 10:09
TYPO3 Surf in GitLab CI
cache:
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
paths:
- .cache/
.dedicated-runner:
tags:
- docker
- linux
@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active November 21, 2025 10:25
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
config.contentObjectExceptionHandler = 0
# Default PAGE object:
page = PAGE
page.10 = FLUIDTEMPLATE
page.10.file = fileadmin/template.html
page.10 {
dataProcessing.10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor
dataProcessing.10 {
table = pages
pidInList = 1
@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