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 | |
namespace Tests\Infrastructure\Action\Channel; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
use Tests\TestCase\OpenApiTrait; | |
class ExampleTest extends WebTestCase | |
{ | |
use OpenApiTrait; |
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\Reporting\Core\ReportAggregator; | |
interface AggregatorInterface | |
{ | |
/** | |
* @param $value int|float |
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\HttpClient; | |
use App\HttpClient\Response\RetryResponse; | |
use Psr\Log\LoggerInterface; | |
use Symfony\Contracts\HttpClient\HttpClientInterface; | |
use Symfony\Contracts\HttpClient\ResponseInterface; |
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 | |
namespace App\Core\Pipeline; | |
class Queue | |
{ | |
/** | |
* @var \AppendIterator | |
*/ | |
private $iterator; |
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
parameters: | |
env(SENTRY_DSN): ~ | |
services: | |
sentry: | |
dsn: '%env(resolve:SENTRY_DSN)%' // note the resolve directive |
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 | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - |
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
#!/bin/bash | |
# Script to simplify the release flow. | |
# 1) Fetch the current release version | |
# 2) Increase the version (major, minor, patch) | |
# 3) Add a new git tag | |
# 4) Push the tag | |
# Parse command line options. | |
while getopts ":Mmpd" Option |
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
#!/bin/sh | |
URL="https://file.io" | |
DEFAULT_EXPIRE="14d" # Default to 14 days | |
if [ $# -eq 0 ]; then | |
echo "Usage: file.io FILE [EXPIRE]" | |
echo " Example: file.io path/to/my/file 1w" | |
echo " This example upload your file for 1 download and expires until 7 days if not downloaded." | |
echo "\nSee documentation at https://www.file.io/#one" |
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
#!/bin/sh | |
set -e | |
IP=`sudo docker inspect -f '{{ .NetworkSettings.IPAddress }}' ${1}` | |
HOST=$2 | |
[ -z "$HOST" ] && exit 1; | |
sudo sed -i "s/.*\s${HOST}$/${IP} ${HOST}/" /etc/hosts |
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
var | |
path = require('path'), | |
_ = require('lodash'), | |
gulp = require('gulp'), | |
gulpUtil = require('gulp-util'), | |
log = gulpUtil.log, | |
colors = gulpUtil.colors, | |
glob = require('glob'), | |
fs = require('fs'), | |
gulpNotify = require('gulp-notify'), |
NewerOlder