Skip to content

Instantly share code, notes, and snippets.

@froemken
froemken / docker-compose.override.yaml
Last active August 8, 2022 15:00
How to exclude typo3temp directory from ddev to get more performance
# Move typo3temp into RAM-Disk. Do not sync vendor and TYPO3-Directory.
# For MAC: 'nocopy' will only work correct, if nfs_mount_enabled is true
version: '3.6'
services:
web:
volumes:
- type: tmpfs
tmpfs:
size: 268435456
# TYPO3 8
# Delete all duplicate sys_file_records, where one and the same sys_file UID
# is related to the same tt_content record
DELETE t_orig
FROM sys_file_reference t_orig
INNER JOIN sys_file_reference t_copy
WHERE t_orig.tablenames='tt_content'
AND t_orig.fieldname='image'
AND t_orig.deleted=0
AND t_copy.tablenames='tt_content'
AND t_copy.fieldname='image'
@tomasnorre
tomasnorre / README.md
Last active September 26, 2019 15:10

What does it do?

This littel script fetches all packages, listed on packagist with type typo3-cms-extension, and iterates over them and collect download data for every single packages.

It will echo it as csv, so it can easily be parsed into a .csv file for better sorting etc.

How to generate csv file

$ php fetchExtensionDownloadDataFromPackagist.php > downloadData.csv
@cepheiVV
cepheiVV / TYPO3-ckeditor-arabic-rtl-direction
Last active March 15, 2022 11:30
Add RTL Text direction for e.g. Arabic language support in CKEditor for TYPO3
# 1
# ---------------------------------------------
#
# Add tsconfig to load the custom RTE config:
`RTE.default.preset = Custom`
# 2
@froemken
froemken / ShowDBSize.sql
Created August 3, 2021 09:23
SQL Query to get size in MB for data and index of given database name
SELECT table_name AS "Table", ROUND((data_length / 1024 / 1024), 2) AS "Data size (MB)", ROUND((index_length / 1024 / 1024), 2) AS "Index size (MB)"
FROM information_schema.TABLES
WHERE table_schema = "[database_name]"
ORDER BY data_length DESC
@ErHaWeb
ErHaWeb / README.md
Last active May 25, 2025 09:38
TYPO3 Auto-Installation

TYPO3 Auto-Installation

Since I need a TYPO3 test environment from time to time, I use these bash scripts for the automatic installation and removal of TYPO3. The installation script currently supports TYPO3 versions 10, 11, 12, 13 and dev.

Installation

I have stored the scripts under:

~/.shellscripts/typo3/

I use the following aliases:

@eliashaeussler
eliashaeussler / archive_gitlab_group_projects.sh
Last active February 28, 2025 14:37
Bulk archiving of projects of a GitLab group
#!/usr/bin/env bash
# shellcheck disable=SC2155
set -e
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[0;33m"
CYAN="\033[1;36m"
GRAY="\033[0;90m"
NC="\033[0m"