Skip to content

Instantly share code, notes, and snippets.

@KaffDaddy
KaffDaddy / gist:81e503bb2bb3b743ac819d488cf884f3
Created November 22, 2021 14:54
CKEditor specialChars Default configuration
config.specialChars: ['!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', ']', '^', '_', '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '{', '|', '}', '~', '€', ''', ''', '"', '"', '–', '—', '¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', '®', '¯', '°', '²', '³', '´', 'µ', '¶', '·', '¸', '¹', 'º', '»', '¼', '½', '¾', '¿', 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ', 'Œ', 'œ', 'Ŵ', 'Ŷ', 'ŵ', 'ŷ', '‚', '‛', '„
@KaffDaddy
KaffDaddy / LanguageRedirect.php
Created May 26, 2020 18:59 — forked from einpraegsam/LanguageRedirect.php
TYPO3: Simply redirect a visitor to secondary language if browser does not support default language using PSR-15 Middleware
<?php
declare(strict_types=1);
namespace In2code\In2template\Middleware;
use CodeZero\BrowserLocale\BrowserLocale;
use CodeZero\BrowserLocale\Filters\LanguageFilter;
use In2code\In2template\Utility\ObjectUtility;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
@KaffDaddy
KaffDaddy / ddev.sh
Created March 25, 2019 08:58 — forked from dacostafilipe/ddev.sh
bitbar Plugin for ddev
#!/bin/bash
# Display status of DDEV configs
#
#
# <bitbar.title>DDEV List</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>DA COSTA Filipe</bitbar.author>
#
<?php
namespace VENDOR\EXTENSION\ViewHelpers;
class DebugbarViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
{
/**
* Displays the debug informationen in the PHP Debug Bar
*
* @param null $content
@KaffDaddy
KaffDaddy / gist:e41db9ea5288bbc7be91c00e69b761cb
Last active February 7, 2018 12:51
composer.json without TLS/SSL
"config": {
"disable-tls": true,
"secure-http": false
}
@KaffDaddy
KaffDaddy / gist:7d1e4d9e8427129557adca6bdca40f54
Created May 9, 2017 09:24
TYPO3 Backend Module (mod1) in TYPO3 7.6
t3lib_SCbase => \TYPO3\CMS\Backend\Module\BaseScriptClass
t3lib_BEfunc => \TYPO3\CMS\Backend\Utility\BackendUtility
$this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('template'); => $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');

Keybase proof

I hereby claim:

  • I am kaffdaddy on github.
  • I am kaffdaddy (https://keybase.io/kaffdaddy) on keybase.
  • I have a public key whose fingerprint is 980B 4A83 34DE C158 90A7 C7DC C6CE 1B56 E4DD EB3F

To claim this, I am signing this object: