Skip to content

Instantly share code, notes, and snippets.

View meetAhmed's full-sized avatar
🌍
Working from home

Ahmed Ali meetAhmed

🌍
Working from home
View GitHub Profile
@meetAhmed
meetAhmed / email.js
Created August 17, 2019 07:58
Code for sending the verification emails in node js using the nodemailer and uuid library. This script exports the sendVerificationEmail method that takes two parameters email address and callback for the response to the calling agent.
var nodemailer = require('nodemailer');
const uuid = require('uuid');
var transporter = nodemailer.createTransport({
service : 'gmail',
auth : {
user : '',
pass : ''
}
});
@meetAhmed
meetAhmed / app.js
Last active August 31, 2019 17:22
Demo
var command;
const fs = require('fs');
function some(){
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
var ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
command = ffmpeg();
createVideo(command);