Skip to content

Instantly share code, notes, and snippets.

View ASKozienko's full-sized avatar

Alexander Kozienko ASKozienko

  • Kharkiv, Ukraine
View GitHub Profile
@ASKozienko
ASKozienko / docker-compose.yml
Created March 22, 2019 08:50
Traefic for dev
version: '3.4'
services:
traefik:
image: traefik
command:
- "--docker"
- "--defaultentrypoints=http,https"
- "--entrypoints=Name:http Address::80"
- "--entrypoints=Name:https Address::443 TLS"
# app/config/config.yml
doctrine:
    orm:
        entity_managers:
            default:
                repository_factory: doctrine.orm.repository_factory.container_aware
id3iconv() {
FILE="$@"
if [ -z $FILE ]; then
FILE="."
fi
if [ -d $FILE ]; then
find $FILE -iname "*.mp3" -exec java -jar ~/Applications/id3iconv-0.2.1.jar -d -e cp1251 {} \;
return 0
fi
xdebug() {
if [ "$1" = "-e" ]; then
export XDEBUG_CONFIG="idekey=PHPSTORM"
echo "xdebug enabled"
return
fi
if [ "$1" = "-d" ]; then
unset XDEBUG_CONFIG
<?php
namespace Nelmio\HomeBundle\Tests\Controller;
use Nelmio\HomeBundle\Controller\ContactController;
use Liip\FunctionalTestBundle\Test\WebTestCase;
class ContactControllerTest extends WebTestCase
{
public function testEmail()