Skip to content

Instantly share code, notes, and snippets.

View digibeuk's full-sized avatar

Martin Beukman digibeuk

  • Zaltbommel, Gelderland, The Netherlands
View GitHub Profile
#!/usr/bin/env php
<?php
define('MIGRATIONS_DIR', 'app/DoctrineMigrations');
list(, $previousHead, $currentHead) = $argv;
$excessMigrations = getExcessMigrations($previousHead, $currentHead);
rsort($excessMigrations);
removeExcessMigrations($excessMigrations, $previousHead);
addMissingMigrations();
@satooshi
satooshi / DirectoryStructure
Last active September 26, 2021 20:03
Directory structure of Domain Driven Design application with Symfony2, Doctrine2.
sf2-ddd
├── app
├── bin
├── build
├── lib
├── src
│   └── __VendorPrefix
│   ├── Application
│   │   └── __DomainNameBundle
│   │   ├── Command
@bhumphrey
bhumphrey / gist:3764983
Created September 22, 2012 03:10
Cherry-picking from another fork
git checkout <branch>
git fetch <other-fork-alias>
git cherry-pick <commit-hash>
git push <your-fork-alias>