Skip to content

Instantly share code, notes, and snippets.

ubuntu@ip-172-31-56-171:~$ wget -qO- https://get.docker.com/ | sh
modprobe: FATAL: Module aufs not found.
+ sudo -E sh -c sleep 3; apt-get update
Ign http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
Get:1 http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com trusty-backports InRelease [65.9 kB]
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release
Get:3 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources [384 kB]
@bdombro
bdombro / index.js
Last active April 19, 2016 15:31
Hirely Thumbnail Lambda.index.js
// Tutorial at http://docs.aws.amazon.com/lambda/latest/dg/with-s3-example-deployment-pkg.html
// dependencies
var async = require('async');
var AWS = require('aws-sdk');
var gm = require('gm')
.subClass({ imageMagick: true }); // Enable ImageMagick integration.
var util = require('util');
// constants
@bdombro
bdombro / JS Async puzzle.js
Last active February 4, 2016 14:00
JS Async puzzle
roles = {
"23432": {
"243.3432.5322": {"monthCount": "25"}
},
...
}
// Build the roles object
roles.forEach(function(meta, oid) {
@bdombro
bdombro / LeafletExample.php
Last active August 29, 2015 14:20
LeafletExample.php
<?php
$points = [];
$points[]=array("lat"=>30.8282,"lon"=>-98.5795,"text"=>"Hello world!");
$points[]=array("lat"=>40.8282,"lon"=>-110.5795,"text"=>"Hello world!");
$points[]=array("lat"=>30.8282,"lon"=>-85.5795,"text"=>"Hello world!");
?>
<!DOCTYPE html>
@bdombro
bdombro / Drupal_Text_to_Textarea.drush.php
Last active May 23, 2016 18:29
Drupal_Text_to_Textarea.drush.php
<?php
/**
* Change a field from textfield to textarea
* Unlike other guides online, this one actually corrects the blob values
* Run this using drush: `drush scr <filepath>`
*/
$field_name = "field_test_text_field_2";
<?php
// ************ This script can be run from drush, like `drush scr <name of script>`
print "\n*************** Delete Nodes en mass V1.1 *******************";
print "\nThis program will delete nodes en mass.\nBe very careful when configuring to not accidently delete nodes.\n";
global $count1;
global $total;
$count1 = 0;
<?php
// ************ This script can be run from drush, like `drush scr <name of script>`
print "\n*************** Delete Files en mass V1.0 *******************";
print "\nThis program will delete files en mass.\nBe very careful when configuring to not accidently delete files.\n";
global $count1;
global $total;
$count1 = 0;
#!/bin/bash
# Version 0.1.0
# What it does: Checks for dependencies, clones a dev site from the dev server to local folder, clones db, and configures local OS to serve <devsite>.local. Works on osx and ubuntu.
# What it doesn't do: Install dependencies, work with cms's other than Drupal or Wordpress, work with CiviCRM
# TODO: Experiment with mass find and replace of DEVURL to LOCALURL. See _FixSettingsFile for hints
# TODO: Experiment with mass find and replace of DEVWEBROOT to LOCALWEBROOT. See _FixSettingsFile for hints
# TODO: Auto-install of dependencies

Fee Layouts

The Fee Layouts extension allows for alternative fee layouts on donation and membership pages, and adds an config tab to select the layout. For now, there are only two layouts: Standard and a custom layout for ConvertResponse.

Requirements:

  1. CiviCRM 4.4.6 (current at time of development)
git remote rm origin
git remote add origin [email protected]:confluencecorp/ota.git
git config master.remote origin
git config master.merge refs/heads/master