This file contains 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
# 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 |
This file contains 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
'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) { |
This file contains 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
'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(); |
OlderNewer