Skip to content

Instantly share code, notes, and snippets.

View tekante's full-sized avatar

Chris Johnson tekante

View GitHub Profile
@tekante
tekante / docker-compose.yml
Created June 5, 2017 12:53
Adding a local mount option for devcloud
version: '2.1'
services:
# Main Application service.
www:
container_name: vtest
image: outrigger/apache-php:php70
network_mode: "bridge"
environment:
DOCROOT: /var/www/html
if (TRUE && function_exists('xhprof_sample_enable')) {
xhprof_sample_enable();
register_shutdown_function(function () {
$filename = '/var/www/vhosts/anninc-atrium/htdocs/sites/default/files/xhprof_samples/' . uniqid() . '.' . strtr($_GET['q'], array('/' => '--')) . '.sample_xhprof';
file_put_contents($filename, serialize(xhprof_sample_disable()));
//chmod($filename, 0777);
});
}
@tekante
tekante / lsd.make
Created July 30, 2012 18:05
LSD Makefile
; A Drush makefile with modules relating to the Large Scale Drupal project
; After doing a standard install, enable the modules
; Interactive Info Bar
; X Autoload
; SPS ERS Integration
; Site Preview System
; Entity API
; Entity Tokens
; Collection SPS Integration
; Collection Field