Skip to content

Instantly share code, notes, and snippets.

@jakzal
jakzal / FindPackageListsCommand.php
Created January 16, 2014 14:19
How to spec a Symfony2 console command?
<?php
namespace Zalas\Bundle\PackagistBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
class FindPackageListsCommand extends ContainerAwareCommand
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
<VirtualHost *:80>
   DocumentRoot /mnt/project/web
   RewriteEngine On
   RewriteCond %{DOCUMENT_ROOT}/$1 !-f
   RewriteRule ^/direcory/(.*)$ /direcory/app_dev.php [QSA,L,PT]
   Alias /direcory /mnt/project/web
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 13, 2024 14:35
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@beberlei
beberlei / Document.php
Created May 18, 2011 10:46
My Symfony2 File Upload workflow
<?php
use Symfony\Component\HttpFoundation\File\File;
use Symfony\Component\HttpFoundation\File\UploadedFile;
/**
* @Entity
*/
class Document
{