Skip to content

Instantly share code, notes, and snippets.

@rafaelhdr
rafaelhdr / Netperf
Created October 2, 2017 20:00
Netperf script for running on Ubuntu
# Installing (on both servers)
apt update && apt -y upgrade &&
apt install -y wget build-essential &&
wget https://github.com/HewlettPackard/netperf/archive/netperf-2.7.0.tar.gz &&
tar -zxvf netperf-2.7.0.tar.gz &&
cd netperf-netperf-2.7.0/ &&
./configure && make && make install
# Run only at server
netserver
'use latest';
import sendgrid from 'sendgrid';
import { MongoClient } from 'mongodb';
const helper = sendgrid.mail;
const collection = 'users';
/**
* @param context {WebtaskContext}
*/
const sendReminder = function(context, cb, user) {
'use latest';
import bodyParser from 'body-parser';
import express from 'express';
import Webtask from 'webtask-tools';
import { MongoClient } from 'mongodb';
import { ObjectID } from 'mongodb';
const collection = 'tasks';
const server = express();