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
@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
*