Skip to content

Instantly share code, notes, and snippets.

View aniket91's full-sized avatar

Aniket Thakur aniket91

View GitHub Profile
@aniket91
aniket91 / node-https.js
Created August 11, 2018 05:47
A sample nodejs code to make https call using standard https module
/**
* Node.js code to demonstrate https calls.
* @author athakur
*/
const https = require("https");
var startDemo = function () {
console.log("starting demo code");
executeHttps(function (err, data) {
if (err) {
@aniket91
aniket91 / email_ses.js
Created August 16, 2018 15:32
Node.js code snippet to send email using AWS SES service
const aws = require('aws-sdk');
aws.config.loadFromPath('./config.json');
const ses = new aws.SES();
/**
* author: athakur
* aws ses create-template --cli-input-json fileb://test_template.json --region us-east-1 --profile osfg
* aws ses update-template --cli-input-json fileb://test_template.json --region us-east-1 --profile osfg
* @param {*} callback
*/