Skip to content

Instantly share code, notes, and snippets.

View dickolsson's full-sized avatar

Dick Olsson dickolsson

View GitHub Profile
@dickolsson
dickolsson / drupal-provisioner
Last active June 8, 2017 15:55
Provisioning script for a simple PHP/Drupal development environment
#!/bin/bash
#
# Configure your IDE to listen to connections with these settings:
#
# * Max simultaneous connections: 3
# * Xdebug port: 9001
# * DBGp host: <blank>
# * DBGp port: 9001
# * IDE key: MYIDE
#
@dickolsson
dickolsson / puppet-provisioner
Last active October 10, 2015 19:58
Puppet bootstrap script for Ubuntu servers.
#!/bin/bash
# Puppet bootstrapping. Currently only supports Ubuntu 12.04.
#
# TODO:
# - Make idempotent
# - Support Ubuntu 10.04 and Debian 6
version_os=`expr match "$(lsb_release -c)" '.*\<\(.*\)$'`
version_stdlib=03ec16e291a70ac5ac412be36ae3b86a771b98af