Skip to content

Instantly share code, notes, and snippets.


Aaron Couch acouch

  • Philadelphia, PA
View GitHub Profile
acouch / gist:9784746
Created Mar 26, 2014
Click on a leaflet map icon in behat using a custom assumption
View gist:9784746
// Leaflet icons don't haave ids (at least the ones I'm using). Here we can click them by the z-index which is
// the only unique id.
* Click on map icon as identified by its z-index.
* @Given /^I click map icon number "([^"]*)"$/
public function iClickMapIcon($num) {
$session = $this->getSession();
acouch / drushrc.php
Last active Aug 29, 2015
drush alias lookup
View drushrc.php
function findFiles($base_dir, $asset_dir, $extensions = array()) {
function glob_recursive($base_dir, &$directories = array()) {
foreach(glob($base_dir, GLOB_ONLYDIR | GLOB_NOSORT) as $folder) {
$directories[] = $folder;
glob_recursive("{$folder}/*", $directories);
glob_recursive($base_dir, $directories);
$files = array();
acouch / gist:93dee6b51b2da4178aaf
Created Dec 17, 2014
ckan puppet vagrant extra
View gist:93dee6b51b2da4178aaf
curl -L | sh
sudo apt-get install curl
curl -L | sh
sudo curl -L | sh
cd npm/
sudo scripts/
npm install less nodewatch
acouch / index.html
Last active Aug 29, 2015
Madison Tree Data and Map
View index.html
<!doctype html>
<meta charset="UTF8">
<title>Madison Tree Types</title>
<link rel="stylesheet" href="">
<script src="" charset="utf-8"></script>
<script src=""></script>
<script src=""></script>
<link href="" rel="stylesheet">
View acouch_nvd3-recline.js
This file has been truncated, but you can view the full file.
// //
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// //
// If you are using Chrome, open the Developer Tools and click the gear //
// icon in its lower right corner. In the General Settings panel, turn //
// on 'Enable source maps'. //
// //
acouch / ubuntu puppet server passenger install.txt
Created Sep 12, 2012 — forked from andys/ubuntu puppet server passenger install.txt
Steps for installing puppet master in Ubuntu 10.04 with ruby 1.8 and passenger
View ubuntu puppet server passenger install.txt
# Puppet Install steps for Ubuntu 10.04, ruby 1.8, and passenger
apt-get -y install build-essential
apt-get -y install bsubversion apache2 libcurl4-openssl-dev libssl-dev mysql-server
apt-get -y install zlib1g-dev apache2-prefork-dev libapr1-dev libaprutil1-dev
apt-get -y install ruby ruby-dev libxmlrpc-ruby libopenssl-ruby libshadow-ruby1.8 irb rdoc libopenssl-ruby1.8 libruby
tar -xvzf rubygems*z
cd rubygems-1.3.7
acouch / pressflow.diff
Last active Dec 23, 2015
Drupal 7.23 vs Pressflow 7
View pressflow.diff
diff --git a/includes/ b/includes/
index d27f8d1..44f3c72 100644
--- a/includes/
+++ b/includes/
@@ -717,6 +717,22 @@ function drupal_settings_initialize() {
$is_https = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
+ // Load environmental config, if present.
+ if (isset($_SERVER['PRESSFLOW_SETTINGS'])) {
View build-dkan.make
api = 2
core = 7.x
includes[core] = drupal-org-core.make
; Profile
projects[dkan][type] = profile
projects[dkan][download][type] = git
projects[dkan][download][url] =
projects[dkan][download][branch] = 7.x-1.11-RC2
acouch / index.html
Created Dec 11, 2014
NVD3 Stacked Area Chart using CartoDBs SQL API
View index.html
<!doctype html>
<meta charset="UTF8">
<title>Tornadoes total versus max damage</title>
<meta name = "viewport" content = "initial-scale = 1, user-scalable = no">
<script src=""></script>
<link rel="stylesheet" href="">
<script src="" charset="utf-8"></script>
<script src=""></script>
View elections.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 15 columns, instead of 6. in line 3.
md-2012-04-03-primary-democratic,2012,4/3/2012,4/3/2012,ocd-division/country:us/state:md,Certified,Primary,Democratic,FALSE,President,Senate,House,"Early Voting,Early Voting, Absentee and Provisional vote counts are not reported at the precinct level; those counts are only included in the county level files.",,2013-05-24 00:00:00-05:00
md-2012-04-03-primary-republican,2012,4/3/2012,4/3/2012,ocd-division/country:us/state:md,Certified,Primary,Republican,FALSE,President,Senate,House,Absentee and Provisional vote counts are not reported at the precinct level; those counts are only included in the county level files.,,2013-05-24 00:00:00-05:00