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
# Fediverse Hints
The fediverse is a decentral hosted network, which is working based on the ActivityPub protocol.
There are Servers with different Apps, whereas the kind of the app might serve a special purpose like (Micro)Blogging, Video-streaming, etc.
This page is for getting a quick overview and doesn't claim to have the right links for everyone.
Instead it's perhaps only a base to search for a better fitting solution.
## The Apps
Examples:
@DavidBruchmann
DavidBruchmann / t3d.php
Created October 10, 2023 12:41 — forked from garvinhicking/t3d.php
TYPO3 T3D uncompress / extract / deflate / extrahieren / entpacken
<?php
# Execute:
# php -d memory_limit=2G t3d.php file.t3d > output.txt
$fd = fopen($argv[1], 'rb');
function getNextFilePart($fd, $unserialize = false, $name = '') {
$headerLength = 32 + 1 + 1 + 1 + 10 + 1;
$headerString = fread($fd, $headerLength);
if (empty($headerString)) {
echo 'File does not contain data for "' . $name . '"';
@DavidBruchmann
DavidBruchmann / meta-tags.md
Last active May 26, 2023 05:32 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
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
## 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
@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" />
@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 / 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 / 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 / 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