Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,
import firebase from 'firebase'; | |
firebase.initializeApp({ | |
serviceAccount: `${__dirname}/../../server/config/firebase.json`, | |
databaseURL: 'https://pontuali-dev.firebaseio.com/', | |
}); | |
const db = firebase.database(); | |
const dataRef = db.ref('/data'); | |
dataRef.on('child_added', (snapshot) => { | |
console.log('addedded, child', snapshot.val()); | |
}); |
import angular from 'angular'; | |
// fn | |
const normaliz = ( entities ) => ( { | |
entities: entities.reduce( (r, e) => Object.assign( r, { [e._id]: e } ), {} ), | |
ids: entities.map( d => d._id ) | |
} ); | |
const storeItem = ( item ) => ( value ) => |
-----> Node.js app detected | |
-----> Creating runtime environment | |
NPM_CONFIG_LOGLEVEL=error | |
NPM_CONFIG_PRODUCTION=false | |
NODE_ENV=production | |
NODE_MODULES_CACHE=true | |
-----> Installing binaries | |
engines.node (package.json): >=4.2.0 | |
engines.npm (package.json): ^3.0.0 |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 |
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,
input { | |
tcp { | |
'port' => "9998" | |
codec => json | |
} | |
udp { | |
'port' => "9999" | |
codec => json | |
} |
var pmx = require('pmx').init({ | |
http : true, | |
network : true, | |
ports : true | |
}); | |
var pm2 = require('pm2'); | |
var path = require('path'); | |
var MACHINE_NAME = process.env.APP_NAME; |
// /modules/console/utils | |
import co from 'co'; | |
import { returnAsPromise } from '../../lib/commons'; | |
export default { | |
koaReq: (params, next) => { | |
console.log('koaReq: starting'); | |
function* chain(next) { | |
this.params = params; |
'use strict'; | |
module.exports = function(grunt) { | |
// load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// configurable paths | |
var paths = { |