Skip to content

Instantly share code, notes, and snippets.

<template name="sortableTableHeaderIcons">
<i class="icon-caret-down sortIcon desc pull-right"></i><i class="icon-caret-up sortIcon asc pull-right"></i>
</template>
<template name="xxx">
<table class="table table-striped table-bordered table-hover">
<thead>
{{#constant}}
<tr>
<th class="sortableTableHeader" data-field="name">
var events = [
{ name: 'submit', from: 'pending', to: 'processing' },
{ name: 'update', from: 'processing', to: 'processing' },
{ name: 'finish', from: 'processing', to: 'finished' },
{ name: 'fail', from: '*', to: 'failed' }
];
var callbacks = {
onsubmit: function(event, from, to, obj) {
log.info("submit: " + obj.title);
@nate-strauser
nate-strauser / af-deploy.sh
Created March 3, 2013 01:31
meteorite deploy to appfog with bundled dependencies
#!/bin/bash
app=${1}
npm install
echo "Bundling $app"
mrt bundle bundle.tar.gz
tar -xzf bundle.tar.gz
rm -rf bundle.tar.gz
pushd bundle
echo "Fixing bundle for appfog"
rm -rf server/node_modules/fibers
@nate-strauser
nate-strauser / meteor-ses-heorku.md
Created January 17, 2013 21:37
Email configuration to Amazon SES with Meteor on Heroku

Follow instructions below to get meteor emails sending correctly from heroku using amazon ses

  1. set up smtp access via aws console, get your smtp credentials

  2. using a javascript console (chrome dev tools / firebug) run

encodeURIComponent("SES_SMTP_USERNAME")

encodeURIComponent("SES_SMTP_PASSWORD")

@nate-strauser
nate-strauser / churnQueue.ps1
Created April 9, 2012 21:33 — forked from bmccormack/churnQueue.ps1
Churn through the Kiln Queue with restarts
function get-queueLength(){
try {
$s = (New-Object net.webclient).DownloadString('http://localhost:56785/stats.json')
}
catch {
return "queue length unavailable"
}
$queueLength = $s -split (',') | foreach{if ($_ | select-string "queueLength" -quiet){ ($_ -split ":")[1]}}
return $queueLength
}