This file contains 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 Api\Controller; | |
use Api\Model\User\TokenDTO; | |
use Api\RequestValidator\RequestHandler; | |
use Api\RequestValidator\Security\RefreshTokenRequestValidator; | |
use Api\RequestValidator\ValidationFailed; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; |
This file contains 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
#!/usr/bin/env bash | |
GAME_DOWNLOAD_URL=https://static.tibia.com/download/tibia.x64.tar.gz | |
MAPS_DOWNLOAD_URL=https://tibiamaps.io/downloads/minimap-with-markers | |
TEMP_DIR=$(mktemp -d) | |
APP_DIR=/opt/Tibia | |
USER_DIR=${HOME}/.local/share/CipSoft\ GmbH/Tibia/packages/Tibia | |
echo "Install Tibia Linux Client with maps" |
This file contains 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
.PHONY: add-git-hooks test-backend test-frontend | |
add-git-hooks: | |
rm -rf .git/hooks | |
ln -sf ../_misc/hooks .git/hooks | |
test-backend: | |
docker rm back_test || true | |
docker build --file _misc/docker-test/backend/Dockerfile --tag back_test . | |
docker run --name=back_test back_test |
This file contains 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
date | value | |
---|---|---|
2019-09-02 | 8 | |
2019-09-03 | 12 | |
2019-09-04 | 4 | |
2019-09-05 | 5 | |
2019-09-06 | 27 | |
2019-09-09 | 8 | |
2019-09-10 | 22 | |
2019-09-11 | 25 | |
2019-09-12 | 19 |
This file contains 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
#!/usr/bin/env python3 | |
import os | |
import subprocess | |
# Enter config variables here | |
start_date = '2023-01-01' | |
log_dir = '.sonarlogs' | |
branch = 'main' | |
# Get all commits (last commit of day) and run sonar-scanner |
This file contains 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 App\Http\Response; | |
use App\Http\Request\ListPageRequest; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Serializer\Encoder\JsonEncoder; |
This file contains 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 App\Http\Event; | |
use App\Http\Exception\JsonMalformedException; | |
use Symfony\Component\EventDispatcher\Attribute\AsEventListener; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Event\RequestEvent; |