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
{% if app.session.flashbag.peekAll|length > 0 %} | |
{% set flashbag = app.session.flashbag.all %} | |
<script> | |
init.push(function () { | |
{% for type,messages in flashbag %} | |
{% for message in messages %} | |
PixelAdmin.plugins.alerts.add('<strong>{{ message[0]|trans }}</strong> {{ message[1]|trans(message[2], 'backend')|raw }}', { | |
type: '{{ type }}', |
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
var chart = c3.generate({ | |
data: { | |
columns: [ | |
['data3', 19, 17, 10, 15, 12, 11], | |
['data1', 11, 15, 14, 13, 17, 17], | |
['data2', 17, 12, 18, 13, 15, 23], | |
['data4', 14, 11, 19, 18, 12, 15] | |
], | |
type: 'bar', | |
groups: [ |
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
/sbin/ip route|awk '/default/ { print $3 }' |
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
docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' | xargs -L1 docker pull |
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
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") |
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
## add me to /etc/bash_completion.d/ | |
## cp FILE /etc/bash_completion.d/ | |
## reload completion | |
## exec bash | |
_available_commands() | |
{ | |
bin/console list --raw | awk '{print $1}' | |
} |
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 App\Command; | |
use App\Symfony\EventDispatcher; | |
use Doctrine\DBAL\Driver\Connection; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\ConsoleEvents; |
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 -z $(find -name "*.php" -type f -not -path "./src/Migrations/*" -not -path "./tests/*" | while read -r file; do cat $file | grep '.\{121\}'; done) || ((find -name "*.php" -type f -not -path "./src/Migrations/*" -not -path "./tests/*" | while read -r file; do cat $file | grep '.\{121\}'; done) && exit 1) |
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 AppBundle\Extensions\Doctrine\ORM; | |
use Doctrine\DBAL\Cache\QueryCacheProfile; | |
use Doctrine\DBAL\Connections\MasterSlaveConnection; | |
use Doctrine\DBAL\DBALException; | |
class ReopeningConnectionWrapper extends MasterSlaveConnection | |
{ |
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 App\Product\Quality; | |
use App\Entity\Product\Segment; | |
use Generator; | |
use InvalidArgumentException; | |
use Money\Money; |
OlderNewer