Skip to content

Instantly share code, notes, and snippets.

@dkl4
dkl4 / gist:5135777
Created March 11, 2013 17:08
This is a simple file which will show sample output from Amazon Web Services PHP SDK 2. Sample focuses on EC2 "Describe" commands.
<?php
// Sample "Hello AWS PHP SDK 2" script
// March, 2013
require '/your-path/vendor/autoload.php';
require '/your-path/vendor/aws/aws-sdk-php/src/Aws/Ec2/Ec2Client.php';
use Aws\Common\Aws;
use Aws\Common\Enum\Region;
{
"Description" : "RadiantBlue Drupal 7 CloudFormation template from a make file V.0.0.1",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances",
"Type" : "String",
@dkl4
dkl4 / gist:3983697
Created October 30, 2012 23:10
drush initiation on a new Dev site - D&
#!/bin/bash
# 2012-10-30
# This is suitable for setting up a quick working site
drush pm-enable -y admin_menu
drush pm-enable -y coder
drush pm-enable -y devel
drush pm-disable -y color
drush pm-disable -y overlay
@dkl4
dkl4 / makeExamples.sh
Created October 27, 2012 05:15
Create subdirs and initiate Git repos - Drupal examples
#!/bin/bash
# 2012-10-26
# This needs to be run from sites/all/examples with LICENSE.TXT in that directory
examples="action ajax batch block cache cron email field field_permission js node_access nodeapi pager queue simpletest tabledrag token trigger"
#examples="action ajax"
i=0
for example in $examples
do