Skip to content

Instantly share code, notes, and snippets.

View Wipster's full-sized avatar
🐟
Wir bringen dich zum Angelschein!

Florian Wipster

🐟
Wir bringen dich zum Angelschein!
View GitHub Profile
@Wipster
Wipster / CspHeaderMiddleware
Last active February 1, 2023 13:13
Content-Security-Policy (CSP) header in TYPO3
<?php
namespace Vendor\Sitepackage\Middleware;
use Exception;
use Vendor\Sitepackage\Context\CspNonceAspect;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
@Wipster
Wipster / gist:6ebc31b301d4db233639308d57e05f3e
Last active September 25, 2017 09:22 — forked from vxnick/gist:380904
PHP array of country codes (ISO 3166-1 alpha-2) and corresponding names - deutsch / german
<?php
$countries = array
(
'AF' => 'Afghanistan',
'EG' => 'Ägypten',
'AL' => 'Albanien',
'DZ' => 'Algerien',
'AD' => 'Andorra',
'AO' => 'Angola',