Skip to content

Instantly share code, notes, and snippets.

@winmillwill
winmillwill / drupal_vagary.sh
Created May 22, 2013 17:06
simple bash script to download gists to
#!/usr/bin/env bash
#get the Vagrantfile
curl https://gist.github.com/winmillwill/5629071/raw/98351386ee2bf068a585153a7c2c59d0f76d1e59/Vagrantfile -o Vagrantfile
#get the Berksfile
curl https://gist.github.com/winmillwill/5629140/raw/c53e901d95244562d4d6190feadebb70eb4b4d41/Berksfile -o Berksfile
#install the necessary plugins
vagrant plugin install vagrant-berkshelf
@winmillwill
winmillwill / Berksfile
Created May 22, 2013 16:58
An example Berksfile for local development with vagrant and drupal
site :opscode
cookbook "drupal", git: "https://github.com/promet/drupal_cookbook"
cookbook "solo-helper", git: "https://github.com/glennpratt/solo-helper_cookbook.git"
@winmillwill
winmillwill / Vagrantfile
Last active December 17, 2015 15:08
Example Vagrantfile for drupal, specifically github.com/promet/drupal_cookbook
Vagrant.configure("2") do |config|
config.berkshelf.enabled = true
config.berkshelf.berksfile_path = "./Berksfile"
config.vm.box = "squeeze"
config.vm.box_url = "https://s3.amazonaws.com/wa.milton.aws.bucket01/sqeeze.box"
config.ssh.max_tries = 40
config.ssh.timeout = 120
require 'rake/clean'
DRUPAL_ROOT = "#{File.dirname(__FILE__)}/www"
PROJECT = "airbox"
DRUPAL_URI = "#{PROJECT}.dev"
DATABASE_PATH = "archives/current/database.sql"
FILES_PATH = "archives/current/files"
ARCHIVE_DIR = "/var/drupals/archives/#{PROJECT}"
DRUSH_DIR = "#{ENV['HOME']}/.drush"
BUILD_DIR = "build"
@winmillwill
winmillwill / gist:2410110
Created April 18, 2012 00:32
provision-install error
$ drush provision-save '@dev01.airbox.ld' --context_type='site' --uri='dev01.airbox.ld' --platform='@platform_drupal712' --server='@server_master' --db_server='@server_master' --profile='default' --client_name='admin'
$ cat ~/.drush/dev01.airbox.ld.alias.drushrc.php
<?php
$aliases['dev01.airbox.ld'] = array (
'context_type' => 'site',
'platform' => '@platform_drupal712',
'server' => '@server_master',
'db_server' => '@server_master',
@winmillwill
winmillwill / silex-mongo-example.php
Created April 5, 2012 16:32
Using the silex-extensions mongo extension
<?php
require __DIR__ . '/vendor/.composer/autoload.php';
$app = new Silex\Application();
$app['autoloader']->registerNamespace('SilexExtension', __DIR__ . '/vendor/fate/silex-extensions/src');
$app->register(new SilexExtension\MongoDbExtension(),
array(
'mongodb.class_path' => __DIR__ . 'vendor/doctrine/mongodb/lib',
'mongodb.connection' => array(
@winmillwill
winmillwill / ruleset.xml
Created April 3, 2012 15:22
my symfony phpcs ruleset
<?xml version="1.0"?>
<ruleset name="Symfony">
<description>Symfony coding standards code sniffer ruleset.</description>
<rule ref="PEAR">
<exclude name="PEAR.Commenting.FunctionComment"/>
<exclude name="PEAR.Commenting.FileComment"/>
<exclude name="PEAR.Commenting.ClassComment"/>
</rule>
</ruleset>