Ecosystem of tools related to @coreoslinux:
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 OAuth = require('oauth') | |
// `npm install oauth` to satisfy | |
// website: https://github.com/ciaranj/node-oauth | |
var KEY = "<INSERT KEY HERE>" | |
var SECRET = "<INSERT SECRET HERE>" | |
var oauth = new OAuth.OAuth( | |
'http://api.thenounproject.com', | |
'http://api.thenounproject.com', |
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
Wednesday June 10, 2014: | |
19:26 < rektide> how should/could a webapp container get info about the database container it needs? | |
Thursday June 11, 2014: | |
10:32 < rektide> is there any means in kubernetes where coordination can happen? how ought my webapp node get the information about where the db node lies? | |
12:51 < vmarmol> rektide: bburns' demo showcased that. You point it at the generic "DB service" backend and it will discover and send requests to it | |
12:55 < jbeda> rektide: It works like this. You specify a ‘service’ that has a name and a ‘label query’. This then sets up configuration for a small proxy that runs on every worker node. That proxy will listen on a port per service and forward (simple round robin for now) to one of the backends specified by the ‘label query’. A set of env variables are set before jobs are started that gives the port for each service based on the name. | |
Brendan Burns talking about service availability: | |
https://www.youtube.com/watch?v=tsk0pWf4ipw#t=1620 |
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 _ = require('lodash'); | |
var node = require('when/node'); | |
function liftNodeModule(o){ | |
return _.chain(o) | |
.pairs() // break into [key,value] | |
.filter(function(fn, slot){ // remove '*Sync' methods | |
var key = slot[0]; | |
var firstLetter = key.charAt(0); | |
return ! (/Sync$/.test(key) || firstChar.toUpperCase() == firstChar); |
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 path = require('path'); | |
var mongoose = require('mongoose'); | |
var when = require('when'); | |
var whenNode = require('when/node'); | |
var glob = whenNode.lift(require('glob')); | |
var config = require('./config'); | |
// exports a 'done' promise | |
var done = when.defer(); | |
module.exports = done.promise; |
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
lodash.chain([1,1,2,3,5,8,13,21]) | |
.map(function(data){ | |
return [data, data*2, data*3] | |
}) | |
.flatten(true) | |
.value() |
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
./compileOpus.sh | |
+ cd libopus | |
+ [ ! -f configure ] | |
+ ./autogen.sh | |
Updating build configuration files, please wait.... | |
libtoolize: putting auxiliary files in `.'. | |
libtoolize: linking file `./ltmain.sh' | |
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. | |
libtoolize: linking file `m4/libtool.m4' | |
libtoolize: linking file `m4/ltoptions.m4' |
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 fs= require('when/node').liftAll(require('fs')) | |
var gulp= require('gulp'), | |
when= require('when') | |
//// configuration registry //// | |
exports.resourceDir = 'resources' | |
//// util //// |
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
--- | |
- hosts: all | |
gather_facts: False | |
vars: | |
foo: "one" | |
bar: "{{tbd}}" | |
tasks: | |
# this first line will fail, saying: fatal: [127.0.0.1] => One or more undefined variables: 'tbd' is undefined | |
- debug: msg="{{vars['foo']|default('nope')}}" | |
# but these would have been fine |
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
ÈÜx | |
ràà @ø° @ | |
á(þ'ð Q½ q | |
Rq D0~øÐ ÎÐ | |
° Ž P~µØ | |
l@ `~ð » | |
° +:Hp~(½ | |
ZÀ@ Àe`~0 Ïà | |
°½ ·¦P | |
ðè( °Ð |