Skip to content

Instantly share code, notes, and snippets.

@ntlk
ntlk / upload_to_elasticsearch.js
Last active November 3, 2016 10:44
Upload MOH reports to elasticsearch
const elasticUrl = 'xxx';
const exec = require('child_process').exec;
const sleep = require('sleep');
const fs = require('fs');
const path = require('path');
const batchSize = 2;
let sliceBeg = 0;
let sliceEnd = sliceBeg + batchSize;
<html>
<head>
<title>Confetti</title>
<style>
#confettotainer {
position: absolute;
width: 100vw;
height: 100vh;
overflow: hidden;
}