This file contains hidden or 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
[ | |
{ | |
"_id": "1e77cfde831f4bda9dccb0b2cb1c750c", | |
"_rev": "2-d6e07398c8bcf97e8eba7f2f7de760ba", | |
"available": true, | |
"clouds": {}, | |
"contents": { | |
"access_key": "xxx", | |
"owner_id": "xxx", | |
"secret_key": "xxx", |
This file contains hidden or 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/sh -x | |
# C2 build script which runs as "root" on first boot | |
# | |
# NOTE: variables that start with a percent-sign will be substituted | |
# using /var/cache/c2/build-inputs.json. | |
# | |
# Use double-percent to escape percent signs. | |
# Update System |
This file contains hidden or 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
fs = require('fs') | |
{dirname} = require('path') | |
compilers = {} | |
compilers.js = compilers.css = (path) -> | |
fs.readFileSync path, 'utf8' | |
require.extensions['.css'] = (module, filename) -> | |
source = JSON.stringify(compilers.css(filename)) | |
module._compile "module.exports = #{source}", filename |
This file contains hidden or 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
fs = require 'fs' | |
{exec} = require 'child_process' | |
util = require 'util' | |
uglify = require 'uglify-js' | |
uglifycss = require 'uglifycss' | |
growl = require 'growl' | |
coffee_src_dir = 'app' | |
js_src_dir = 'public/js' |
This file contains hidden or 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 strata = require("strata"), | |
path = require('path'), | |
multipart = strata.multipart; | |
var app = new strata.Builder; | |
app.use(strata.commonLogger); | |
app.use(strata.static, path.resolve('.')); | |
app.use(strata.contentType); | |
app.use(strata.contentLength); |
This file contains hidden or 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
[ | |
{ | |
"id": 1, | |
"foo": "bar", | |
"biz": "baz" | |
}, | |
{ | |
"id": 2, | |
"foo": "bar", | |
"biz": "baz" |
This file contains hidden or 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
$.when( myCollection1.deferred, myCollection2.deferred ) | |
.then( successCallback, errorCallback ); |
This file contains hidden or 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
# Dependencies | |
fs = require('fs') | |
{_} = require('underscore') | |
path = require('path') | |
tmpl = require('handlebars-jst') | |
{log} = require('util') | |
growl = require('growl') | |
stitch = require('stitch') | |
uglify = require('uglify-js') |
This file contains hidden or 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
sam@batman:~/dev | |
% pip install pyzmq :( 1 12-02-03 - 10:50:16 | |
Downloading/unpacking pyzmq | |
Running setup.py egg_info for package pyzmq | |
Installing collected packages: pyzmq | |
Running setup.py install for pyzmq | |
****************************************** | |
Configure: Autodetecting ZMQ settings... | |
Custom ZMQ dir: None |
This file contains hidden or 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
importTemplate: => | |
if C2.user.credentials.length | |
@renderImportConfig() | |
# when creds are missing, create an error popup | |
else | |
content = | |
message: "Warning: Missing Credentials" | |
body: "AWS Credentials are required to import Templates" |