This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host servername.whatever.edu | |
User zach | |
Port 2130 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Emails weekly updates to an email | |
# | |
# usage: ./gdocs_email [email protected] | |
# | |
google=/usr/local/bin/google | |
mail=/usr/bin/mail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
google=/usr/local/bin/google | |
$google docs edit "Work $(date +%V)" --editor=vim --folder=weekly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_cron_queue_info() | |
*/ | |
function thing_cron_queue_info() { | |
$queues['EmailQueue'] = array( | |
'worker callback' => 'email_queue_worker', | |
'time' => 3600, | |
); |