I hereby claim:
- I am ohader on github.
- I am oliverhader (https://keybase.io/oliverhader) on keybase.
- I have a public key ASCgxOJEqyHBxnXOt2ow3t9IPa5HSnVLIqlQyYeaGkjA3Qo
To claim this, I am signing this object:
<?php | |
declare(strict_types = 1); | |
namespace OliverHader\IndependentUtility; | |
/** | |
* Duplicate file reducer. Searches for files having duplicate content and | |
* clones them to a dedicated directory. | |
* | |
* @author Oliver Hader <oliver.hader@typo3.org> | |
* @license MIT |
@echo off | |
rem ------------------------------------------------------------------------------------- | |
rem + Scope: Docker/DDEV environment using TYPO3 & Composer | |
rem + to be executed in CMD shell of project root directory | |
rem ------------------------------------------------------------------------------------- | |
rem + This script resolves symbolic links that have been created inside a Linux/Unix | |
rem + environment (and can be resolved there), but should actually be using the system | |
rem + features of their host operating file system. | |
rem ------------------------------------------------------------------------------------- |
I hereby claim:
To claim this, I am signing this object:
# Additions to existing Apache's .htaccess rules | |
# Security: Enforce file types matching at end of filename only | |
# see https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/Security/GuidelinesAdministrators/Index.html#file-extension-handling | |
# see https://httpd.apache.org/docs/2.4/mod/mod_mime.html#multipleext | |
<IfModule mod_mime.c> | |
RemoveType .html .htm | |
<FilesMatch ".+\.html?$"> | |
AddType text/html .html | |
AddType text/html .htm |
<?php | |
class MyClass | |
{ | |
/** | |
* @var string | |
*/ | |
protected $dontTouch; | |
public function __destruct() | |
{ |
C:\Program Files\WindowsPowerShell
Refresh-Proxy
(same name as module)Refresh-Proxy.psm1
moduleRefresh-Proxy
powershell
Refresh-Proxy
<?php | |
// in my_extension/Classes/MyDefaultBuilder.php | |
namespace OliverHader\MyExtension; | |
class MyDefaultBuilder extends \TYPO3\CMS\Core\Html\DefaultSanitizerBuilder | |
{ | |
protected function createBehavior(): \TYPO3\HtmlSanitizer\Behavior | |
{ | |
// overrides TYPO3's default builder | |
// allows `iframe` tag with attrs `src` and `sandbox` |
#!/bin/bash | |
# | |
# replace `GITHUBTOKEN` with custom token from https://github.com/settings/tokens, having `repo` admin access | |
# | |
for repo in $(curl -s -H "Authorization: token GITHUBTOKEN" 'https://api.github.com/orgs/TYPO3-CMS/repos?per_page=100' | jq -r '.[] | .url' | sort) | |
do | |
echo "Renaming ${repo}..." | |
response=$(curl -s -X POST \ |
<?php | |
class Node | |
{ | |
/** | |
* @var list<Node> | |
*/ | |
public array $prev = []; | |
/** | |
* @var list<Node> |