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
#!/usr/bin/env php | |
<?php | |
declare(strict_types=1); | |
/** | |
* Minimal, PSR-ish, Windows-friendly. | |
* Requires Symfony CLI presence via SYMFONY_DOCKER_ENV (simple check, as requested). | |
*/ |
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
#!/usr/bin/env php | |
<?php | |
declare(strict_types=1); | |
function getSymfonyBinary(): string|null | |
{ | |
return $_SERVER['SYMFONY_CLI_BINARY_NAME'] ?? 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
<?php | |
namespace App\ModelBundle\Controller; | |
use ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException; | |
use App\ModelBundle\Model\ApiBatchItem; | |
use Psr\Log\LoggerAwareInterface; | |
use Psr\Log\LoggerAwareTrait; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
use Symfony\Component\HttpFoundation\Request; |
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 | |
namespace App\Command; | |
class ImportSynchronisationCommand extends Command | |
{ | |
/** @var string */ | |
private $tableName; | |
/** @var string */ |
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 | |
use Behat\Gherkin\Node\TableNode; | |
use Behat\Mink\Element\NodeElement; | |
use Behat\Mink\Exception\ElementNotFoundException; | |
use Behat\Mink\Exception\ExpectationException; | |
use Behat\MinkExtension\Context\MinkContext; | |
use WebDriver\Exception\StaleElementReference; | |
use WebDriver\Key; |
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
[alias] | |
st = status | |
ci = commit -v | |
cim = commit -v -m "--" | |
co = checkout | |
br = branch -v | |
bra = branch -v -a | |
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative | |
lga = log --graph --pretty=tformat:'%Cred%h%Creset -%C(cyan)%d %Creset%s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative --all | |
di = diff |
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
# In order to quickly see in which container and which SF environment we are | |
# The default BASH prompt is overridden. | |
# example: | |
# Product 🔥 www-data(dev)> | |
# Product 🔥 www-data(test)> | |
# Supplier 🔥 www-data(prod)> | |
PROMPT_COMMAND=prompter | |
function prompter() { |
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
.DEFAULT_GOAL := help | |
ifndef CI_JOB_ID | |
# COLORS | |
GREEN := $(shell tput -Txterm setaf 2) | |
YELLOW := $(shell tput -Txterm setaf 3) | |
WHITE := $(shell tput -Txterm setaf 7) | |
RESET := $(shell tput -Txterm sgr0) | |
TARGET_MAX_CHAR_NUM=30 | |
endif |
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 | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\MinkExtension\Context\RawMinkContext; | |
use Behat\Symfony2Extension\Context\KernelAwareContext; | |
use Symfony\Component\HttpKernel\KernelInterface; | |
use Symfony\Component\Process\Process; | |
class CommandContext extends RawMinkContext implements KernelAwareContext | |
{ |
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
# Personal | |
alias p="pwd" | |
alias vm="cd /Users/bertillon/Sites/developmentVM && vagrant" | |
alias vmssh="vm ssh" | |
alias pg="ping 8.8.8.8" | |
alias hacksensio="sudo ifconfig en0 lladdr #taCruLustucru" | |
alias t="multitail" | |
alias mo='meteor' | |
alias gremot='git remote show origin' | |
alias fig='docker-compose' |
NewerOlder