Skip to content

Instantly share code, notes, and snippets.

View zachseifts's full-sized avatar
🏠
Working from home

Zach Seifts zachseifts

🏠
Working from home
  • Appalachian State University
  • Boone, NC
View GitHub Profile
<?php
$imce_profiles = array(
1 => array(
'name'=> 'User-1',
'usertab'=> 1,
'filesize'=> 0,
'quota'=> 0,
'tuquota'=> 0,
'extensions'=> '*',
<?php
/**
* Implements hook_cron_queue_info()
*/
function thing_cron_queue_info() {
$queues['EmailQueue'] = array(
'worker callback' => 'email_queue_worker',
'time' => 3600,
);
<?php
/**
* Worker function for the EmailQueue
*
* @param
* An associative array containing:
* - to: A valid email address that the message will be sent to.
* - subject: The subject of the email message
* - body: The body of the email message
<?php
$email_queue = drupal_queue_get('EmailQueue');
$email_queue->createQueue();
// Sending email to a user
$message = array(
'to' => '[email protected]',
'subject' => 'The subject of this email',
'body' => 'The body of this email',
<?php
$email_queue = drupal_queue_get('EmailQueue');
$email_queue->createQueue();
// Sending email to a user
$message = array(
'to' => '[email protected]',
'subject' => 'The subject of this email',
'body' => 'The body of this email',
#!/bin/bash
google=/usr/local/bin/google
$google docs edit "Work $(date +%V)" --editor=vim --folder=weekly
#!/bin/bash
#
# Emails weekly updates to an email
#
# usage: ./gdocs_email [email protected]
#
google=/usr/local/bin/google
mail=/usr/bin/mail
var jsdom = require('jsdom');
var growl = require('growl');
jsdom.env("http://appstatealert.com/", [
'http://code.jquery.com/jquery-1.5.min.js'
],
function(errors, window) {
var $ = window.$
var stat = $("#wrapper-content-inner strong:first").text();
growl('Campus is operating under: ' + stat);
api = 2
core = "6.x"
projects[drupal][version] = 6.22
projects[drupal][patch][] = "http://www1.appstate.edu/~seiftsze/drupal/patches/readme-app-drupal.patch"
projects[rcoe][type] = "profile"
projects[rcoe][download][type] = "git"
projects[rcoe][download][url] = "/path/to/install_profile_repo"
projects[rcoe][download][branch] = "master"
zach@brains projects/cams.appstate.edu (develop ~*+) » ./bin/build.sh
10:18:12 hyde.engine Reading site configuration from [/Users/zach/projects/cams.appstate.edu/src/site.yaml]
10:18:12 hyde.engine Reading site contents
10:18:12 hyde.engine Generating site at [/Users/zach/projects/cams.appstate.edu/src]
10:18:12 hyde.engine Configuring the template environment
10:18:12 hyde.engine Generating site to [/Users/zach/projects/cams.appstate.edu/www]
10:18:13 hyde.engine.Jinja2 Error parsing[media/libs/bootstrap/docs/build/node_modules/hogan.js/README.md]
Traceback (most recent call last):
File "/Users/zach/projects/cams.appstate.edu/env/bin/hyde", line 8, in <module>
load_entry_point('hyde==0.8.4', 'console_scripts', 'hyde')()