Skip to content

Instantly share code, notes, and snippets.

View tPl0ch's full-sized avatar
💭
I may be slow to respond.

Thomas Ploch tPl0ch

💭
I may be slow to respond.
View GitHub Profile
@tPl0ch
tPl0ch / Vagrantfile
Created October 30, 2012 15:06 — forked from jmather/Vagrantfile
Vagrant setup
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.provision OnHostProvisioner
end
class OnHostProvisioner < Vagrant::Provisioners::Base
def provision!
env[:vm].channel.execute("/home/vagrant/provision.sh")
end
@tPl0ch
tPl0ch / LoadArticleData.php
Created September 12, 2012 08:12 — forked from anonymous/gist:3705051
ODMFixtureWithReference
<?php
namespace Schuh\BlogBundle\DataFixtures\ODM;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\Persistence\ObjectManager;
use Schuh\BlogBundle\Document\Article;
use Schuh\BlogBundle\Document\Comment;