Skip to content

Instantly share code, notes, and snippets.

@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>
@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 / 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',
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 / 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
@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 / 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 / apache rewrite proxy for drupal files
Created November 5, 2013 15:31
Keep your Drupal files in s3
<VirtualHost>
# ...
SSLProxyEngine On
# Since Drupal has infinite terrible file i/o already, doing a stat before proxying and avoiding it doesn't make me feel bad
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/sites/.*/files/(.*)$ https://s3.amazonaws.com/my.sweet.bucket.aws.bucket01/files/$1 [P]
ProxyPassReverse /sites/mysite.dev/files/ https://s3.amazonaws.com/my.sweet.bucket.aws.bucket01/files/
</VirtualHost>
@winmillwill
winmillwill / export_features.sh
Created January 8, 2014 15:31
simple features export example in le script avec bash
#! /bin/bash
set -ex
# Pass all arguments to drush
while [ $# -gt 0 ]; do
drush_flags="$drush_flags $1"
shift
done
@winmillwill
winmillwill / Support.md
Created February 1, 2014 19:28 — forked from itendo/Support

Support

Authors

Prometsource

Michelle Krejci, Greg Pamier, Will Milton, Doug Dobrzynski, Matthew Gilboy

Client Paths