Skip to content

Instantly share code, notes, and snippets.

@amitbend
amitbend / proxy.js
Created August 15, 2018 18:45
Proxy example for botframework botbuilder (node)
const request = require('request');
server.get('/fw',(req,res)=>{
let query = req.query
if (query['hub.verify_token'] === '<yourverifytoken>') {
return res.end(query['hub.challenge'])
}
return res.end('Error, wrong validation token')
})
@amitbend
amitbend / nodemailer with Zoho
Last active October 17, 2022 12:32
nodemailer with Zoho
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'smtp.zoho.com',
port: 465,
secure: true, //ssl
auth: {
user: '[email protected]',
pass: 'yourpassword'
}
});
@amitbend
amitbend / cloudSettings
Last active November 7, 2017 08:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-11-07T08:21:44.537Z","extensionVersion":"v2.8.5"}