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\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 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 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 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 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 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 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 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' |
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
# First step | |
docker run -d --restart=always \ | |
-v /var/run/docker.sock:/tmp/docker.sock:ro \ | |
-v /Users/clement.bertillon/.dinghy/certs:/etc/nginx/certs \ | |
-p 80:80 -p 443:443 -p 19322:19322/udp \ | |
-e DNS_IP=192.168.99.100 -e CONTAINER_NAME=http-proxy \ | |
--name http-proxy \ | |
codekitchen/dinghy-http-proxy | |
# After that inside the container |
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 | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__.'/src') | |
->in(__DIR__.'/app') | |
; | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules([ |
NewerOlder