Skip to content

Instantly share code, notes, and snippets.

View AdamMagaluk's full-sized avatar
🚀

Adam Magaluk AdamMagaluk

🚀
View GitHub Profile
@AdamMagaluk
AdamMagaluk / test.js
Created July 17, 2014 20:17
Go Zetta Go
var test = require('./test/fixture/zetta_test');
var Scout = require('./test/fixture/example_scout');
var cluster = test({startPort : 22000});
cluster.server('cloud');
for (var i=0; i< process.env.PEERS; i++) {
cluster.server('peer-'+(i+1), [Scout], ['cloud']);
}
cluster.run(function(err){
@AdamMagaluk
AdamMagaluk / api.md
Created September 1, 2014 23:58
EpicMix Mobile API
http://www.epicmix.com/vailresorts/sites/epicmix/api/mobile/weather.ashx
http://www.epicmix.com/vailresorts/sites/epicmix/api/mobile/terrain.ashx
http://www.epicmix.com/vailresorts/sites/epicmix/api/mobile/lifts.ashx
http://www.epicmix.com/vailresorts/sites/epicmix/api/mobile/mountaincams.ashx
http://www.epicmix.com/vailresorts/sites/epicmix/api/mobile/roadconditions.ashx

Query Param

- using `npm install zetta --save`
- Remove bonescript dep from repo
- missing linking
- app looks confusing for a workshop.
- missing building a driver
ssh [email protected] 'echo 'robot16' > /etc/hostname && sync && reboot'
@AdamMagaluk
AdamMagaluk / device_registry.js
Created January 30, 2015 14:57
Zetta With Custom DB Locations
var util = require('util');
var zetta = require('zetta');
var DeviceRegistry = module.exports = function(path) {
zetta.DeviceRegistry.call(this, { path: path, collection: 'devices' });
};
util.inherits(DeviceRegistry, zetta.DeviceRegistry);
@AdamMagaluk
AdamMagaluk / server.js
Created February 3, 2015 15:40
Papertrail with Zetta
var zetta = require('zetta');
var winston = require('winston');
var Papertrail = require('winston-papertrail').Papertrail;
winston.add(Papertrail, { hostname: 'hub-hostname',
host: process.env.PAPERTRAIL_HOST,
port: process.env.PAPERTRAIL_PORT });
zetta()
.logger(function(log) {
var program = require('commander');
program
.command('create [name]', 'install one or more packages')
.command('delete [query]', 'search with optional query')
.parse(process.argv);
console.log(program.args)
@AdamMagaluk
AdamMagaluk / example.js
Last active August 29, 2015 14:24
Example Zetta Properties
var zetta = require('zetta');
var LED = require('zetta-led-mock-driver');
zetta()
.properties({ location: 'Home' })
.use(LED)
.listen(1337);
zetta()
.use(function(server) {
var spdy = require('spdy');
var http = require('http');
var agent = spdy.createAgent({
host: 'localhost',
port: 3000,
spdy: {
plain: true,
ssl: false
}
@AdamMagaluk
AdamMagaluk / README.md
Last active May 8, 2017 14:09 — forked from leesheppard/README.md
Homebrew Formula patching old ImageMagick release 6.9.7-10

Install

brew install https://gist.githubusercontent.com/AdamMagaluk/6d190d95839387d7ebbfcdc7cfbad2f8/raw/6d190d95839387d7ebbfcdc7cfbad2f8/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.

brew pin imagemagick