This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OS Information: Linux Seeker 5.10.43.3-microsoft-standard-WSL2 #1 SMP Wed Jun 16 23:47:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux | |
DDEV-Local version v1.18.0-alpha1 | |
architecture amd64 | |
db drud/ddev-dbserver-mariadb-10.3:20210709_mariadb_versions | |
dba phpmyadmin:5 | |
ddev-ssh-agent drud/ddev-ssh-agent:v1.17.0 | |
docker 20.10.7 | |
docker-compose 1.29.2 | |
mutagen 0.12.0-beta4 | |
os linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 ------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Psychomieze\Examples; | |
use Negotiation\AcceptLanguage; | |
use Negotiation\LanguageNegotiator; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use Symfony\Component\Validator\Constraint; | |
class ArrayClassMetaData extends \Symfony\Component\Validator\Mapping\ClassMetadata | |
{ | |
public function __construct(string $name) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# per URL | |
cat access.log | awk -F\" '{print $2}' | awk '{print $2}' | sed '/^$/d' | sed 's/\?.*//g' | sort | uniq -c | sort -rn | |
# per Status Code | |
cat access.log | cut -d '"' -f3 | cut -d ' ' -f2 | sort | uniq -c | sort -rn | |
# find URLs with status code (404) | |
awk '($9 ~ /404/)' access.log | awk '{print $7}' | sort | uniq -c | sort -rn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE t3.dbo.backend_layout | |
( | |
uid int PRIMARY KEY NOT NULL IDENTITY, | |
pid int DEFAULT 0 NOT NULL, | |
t3ver_oid int DEFAULT 0 NOT NULL, | |
t3ver_id int DEFAULT 0 NOT NULL, | |
t3ver_wsid int DEFAULT 0 NOT NULL, | |
t3ver_label nvarchar(255) DEFAULT '' NOT NULL, | |
t3ver_state smallint DEFAULT 0 NOT NULL, | |
t3ver_stage int DEFAULT 0 NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test: | |
100.000 random strings in words array: | |
foreach($words as $word) { | |
StringUtility::beginsWith($word, 'abc'); | |
} | |
$time = microtime(true) - $now; | |
echo $time * 100 . ' | mem:' . memory_get_usage() . ' | peak mem:' . memory_get_peak_usage(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
public function intHint(int $baz) | |
{ | |
return $baz; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://composer.typo3.org/" | |
} | |
], | |
"require": { | |
"typo3/cms": "~6.2", | |
"typo3-ter/news": "*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apache: | |
install: '1' | |
settings: | |
user: www-data | |
group: www-data | |
default_vhost: true | |
manage_user: false | |
manage_group: false | |
sendfile: 0 | |
modules: |
NewerOlder