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
[ | |
"/resources", | |
"/resources/charts", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)/chartFormat", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)/chartUrl", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)/description", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)/geohash", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)/identifier", | |
"/resources/charts/(^[A-Za-z0-9_-]{8,}$)/name", |
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
{ | |
"vessels": { | |
"vessels.urn:mrn:imo:mmsi:230099999": { | |
"navigation": { | |
"course": { | |
"crossTrackError": { | |
"value": -8.67, | |
"timestamp": "(...)", | |
"$source": "(...)" |
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
{ | |
"vessels": { | |
"vessels.urn:mrn:imo:mmsi:230099999": { | |
"navigation": { | |
"course": { | |
"crossTrackError": { | |
"value": -8.67, | |
"timestamp": "(...)", | |
"$source": "(...)" |
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
{ | |
"vessels": { | |
"vessels.urn:mrn:imo:mmsi:230099999": { | |
"navigation": { | |
"course": { | |
"crossTrackError": { | |
"value": -8.67, | |
"timestamp": "(...)", | |
"$source": "(...)" | |
}, |
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
{ | |
"vessels": { | |
"vessels.urn:mrn:imo:mmsi:230099999": { | |
"navigation": { | |
"course": { | |
"trackMode": "RhumbLine", | |
"crossTrackError": { | |
"value": -8.67, | |
"timestamp": "(...)", |
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/bash | |
# Lock DB | |
mongo admin --eval "printjson(db.fsyncLock())" | |
MONGO_DUMP="/usr/bin/mongodump" | |
MONGO_HOST="localhost" | |
MONGO_PORT="27017" | |
TIMESTAMP=`date +%F-%H%M` |
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
Error: HTTP Error: 404 | |
at ClientRequest.<anonymous> (/Users/fabdrol/Desktop/Projects/Zwoeger/Zwoeger/node_modules/http-get/lib/http-get.js:493:16) | |
at ClientRequest.emit (events.js:67:17) | |
at HTTPParser.onIncoming (http.js:1261:11) | |
at HTTPParser.onHeadersComplete (http.js:102:31) | |
at Socket.ondata (http.js:1150:24) | |
at TCP.onread (net.js:374:27) | |
Error: HTTP Error: 404 | |
at ClientRequest.<anonymous> (/Users/fabdrol/Desktop/Projects/Zwoeger/Zwoeger/node_modules/http-get/lib/http-get.js:493:16) | |
at ClientRequest.emit (events.js:67:17) |
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
/** REQUIREMENTS **/ | |
var Kue = require('kue') | |
, Http = require('http-get') | |
, Messenger = require('../lib/messenger') | |
, parse = require('../lib/parser') | |
, models = require('../models') | |
; | |
/** APP VARS **/ | |
var jobs = Kue.createQueue() |
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
/** REQUIREMENTS **/ | |
var Step = require('step') | |
, Messenger = require('./lib/messenger') | |
, messenger = new Messenger() | |
, util = require('util') | |
, models = require('./models') | |
, queue = require('./queue') | |
; | |
var total = 0 |