Skip to content

Instantly share code, notes, and snippets.

View DavidBruchmann's full-sized avatar
💭
It's all about compatibility

David Bruchmann DavidBruchmann

💭
It's all about compatibility
  • Webdevelopment Barlian
  • Bandung, West Java, Indonesia
View GitHub Profile
@DavidBruchmann
DavidBruchmann / ConvertApplicationAreaValuesToBinaryDataProcessor.php
Created May 1, 2019 09:31 — forked from h3nn3s/ConvertApplicationAreaValuesToBinaryDataProcessor.php
TYPO3 powermail DataProcessor: Convert checkbox positions to there decimal represenation
<?php
namespace HenrikZiegenhain\MyExt\DataProcessor;
/***************************************************************
* Copyright notice
*
* (c) 2018 Henrik Ziegenhain <[email protected]>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
@DavidBruchmann
DavidBruchmann / info-tca.md
Last active May 3, 2020 15:02
TCA related things
@DavidBruchmann
DavidBruchmann / .gitattributes
Last active January 26, 2022 10:26 — forked from dpalomar/.gitattributes
Fixing CRLF with gitattributes
# Handle line endings automatically for files detected as text
# and leave all files detected as binary untouched.
* text=auto
# Force the following filetypes to have unix eols, so Windows does not break them
*.* text eol=lf
# Windows forced line-endings
/.idea/* text eol=crlf
@DavidBruchmann
DavidBruchmann / combining_composer_git_pear.md
Last active October 13, 2023 17:58
Combining Composer, Git repositories and Pear

Combining composer, git repositories and pear

Problem

Pear is the the old PHP-packagemanager, but most 'packages' are nowadays managed with composer on base of git-repositories.
Adding pear-packages to a composer based installation is a little challenge that shall be explained below.

Solution

Prerequisites

@DavidBruchmann
DavidBruchmann / index.php
Created September 23, 2021 15:13
TYPO3 emergency
<?php
/*
* 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.
*
* For the full copyright and license information, please read the
@DavidBruchmann
DavidBruchmann / CsvUtility.php
Created October 14, 2021 19:50
CsvUtility to detect delimiters and other properties of CSV files
<?php
declare(strict_types = 1);
namespace WDB\PHP\Csv2content\Utility;
defined('TYPO3_MODE') || die();
class CsvUtility
{
@DavidBruchmann
DavidBruchmann / gist:598fc0ebe92efd6f18a7cf6bfbaf7e96
Last active January 28, 2022 18:10 — forked from alexsegura/gist:9895452
Get MySQL error code with Doctrine DBAL
<?php
protected function executeQueryBuilder($queryBuilder, string $debugHeader)
{
$resource = null;
try {
$resource = $queryBuilder->execute();
} catch (\Doctrine\DBAL\DBALException $e) {
$previous = $e->getPrevious();
@DavidBruchmann
DavidBruchmann / TypoScript.xml
Created May 13, 2022 14:02 — forked from janikvonrotz/TypoScript.xml
TypoScript Syntax Highlight #Typo3 #NotepadPlusPlus #XML
<NotepadPlus>
<?xml version="1.0" encoding="UTF-8" ?>
<AutoComplete>
<KeyWord name="absRefPrefix" />
<KeyWord name="accessibility" />
<KeyWord name="accessKey" />
<KeyWord name="ACT" />
<KeyWord name="ACTIFSUB" />
<KeyWord name="ACTIFSUBRO" />
<KeyWord name="ACTRO" />
## Configuration options with # in front are not active and they were
## valid at install time. Updating the package does not update this file
## automatically.
## Latest options listed at:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template
## Url on which GitLab will be reachable.
## For more details on configuring external_url see:
## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/configuration.md#configuring-the-external-url-for-gitlab
Running bash [-c /tmp/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project test: [/media/david/DataLinux/___DDEV___/TYPO3/t3-screenshots/test/.ddev/config.yaml]
name: test
type: typo3
docroot: public
php_version: 8.1
webserver_type: nginx-fpm
webimage: drud/ddev-webserver:v1.21.5