Skip to content

Instantly share code, notes, and snippets.

View highelf's full-sized avatar
😃

amir modiri highelf

😃
View GitHub Profile
@highelf
highelf / gist:1733b726930e7ce7a81ad594b9ac788d
Last active May 21, 2016 13:02
parse-server-simple-ses-adapter with test file
var awsSesMail = require('aws-ses-mail');
var SimpleSESAdapter = sesConfig => {
if (!sesConfig || !sesConfig.accessKeyId || !sesConfig.secretAccessKey || !sesConfig.region || !sesConfig.fromAddress) {
throw 'SimpleSESAdapter requires an API Key, Secret Key, region and fromAddress.';
}
var sesMail = new awsSesMail();
sesMail.setConfig(sesConfig);
var sendMail = mail => {
@highelf
highelf / gist:c26ce77cbbfda48c80e6
Last active December 21, 2015 08:14
bash for create install and config nodejs nginx app server
#!/bin/bash
##[] install node
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
##[] install forever
sudo npm install npm -g
sudo npm install forever -g
##[] install nginx