Skip to content

Instantly share code, notes, and snippets.

@korotovsky
korotovsky / IdToObjectTrasformer.php
Last active September 29, 2016 06:24
IdToObjectTrasformer
<?php
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
/**
* Class IdToObjectTransformer
*/
@xleliberty
xleliberty / install.md
Created June 12, 2014 20:10
Graylog2 UDP logger setup for symfony2 via monolog

Graylog 2 gelf installation

  • Add composer source: "graylog2/gelf-php": "~1.0"

Services Setup

parameters.yml

graylog.hostname: you.host.name

graylog.port: 12201

@sgergely
sgergely / gist:3793166
Created September 27, 2012 09:43
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name