Skip to content

Instantly share code, notes, and snippets.

View ErHaWeb's full-sized avatar
🏠
Working from home

Eric Harrer ErHaWeb

🏠
Working from home
View GitHub Profile
@tehplague
tehplague / .Renovate configuration example.md
Last active December 12, 2024 19:21
Renovate example configuration for TYPO3

Example Configuration for Renovate in TYPO3 Projects (as shown at #T3CRR24)

This Gist provides an example configuration for Renovate, designed to automate updates in TYPO3 projects.
Note: This configuration is a starting point and should be adjusted to fit your specific requirements. The update behavior, in particular, likely has room for improvement depending on your workflow.

Key Assumptions

  1. Git Hosting: The example assumes the use of either GitLab or GitHub for managing TYPO3 projects.
  2. Shared Configuration: A shared GitLab project (gitlab/renovate-config) is used to store general configuration files (.json). This setup allows reusing shared rules across all TYPO3 projects.
  3. Project-Specific Configuration: The renovate.json file must reside in the TYPO3 project repository you wish to update. This file references the shared configuration and defines project-specific overrides.
@PKuhlmay
PKuhlmay / importdatabase
Created March 4, 2024 16:21
Command for importing external database into own DDEV project
#!/usr/bin/env bash
## Description: Imports the database from the remote host
## Usage: importdatabase
## Example: "ddev importdatabase"
#!/bin/bash
# read .env file
if [ -f .env ]; then
@sebkln
sebkln / RequestMiddlewares.php
Created January 6, 2024 15:48
Middleware for web manifest in TYPO3 v12. Adjusted version of the solution provided by Kevin Appelt in TYPO3 Slack: https://typo3.slack.com/archives/C025BQLFA/p1680299950579649
<?php
return [
'frontend' => [
'yourvendor/webmanifest' => [
'target' => \YourVendor\Sitepackage\Middleware\Webmanifest::class,
'before' => [
'typo3/cms-frontend/page-resolver',
],
'after' => [
@xperseguers
xperseguers / ext_tables.php
Last active April 26, 2024 19:33
Generic override XLIFF in TYPO3 CMS
<?php
/**
* Following snippet lets you easily override XLIFF-based localization files for any extension.
*
* Create localization files within your extension in:
*
* Resources/Private/Language/Overrides/<extension-key>.<original-name>.xlf
* Resources/Private/Language/Overrides/<locale>.<extension-key>.<original-name>.xlf
*