Skip to content

Instantly share code, notes, and snippets.

View wowplus2's full-sized avatar

Daniel Myung wowplus2

View GitHub Profile
@wowplus2
wowplus2 / passport.js
Created June 28, 2018 11:05 — forked from manjeshpv/passport.js
Passport.js using MySQL for Authentication with Express
// config/passport.js
// load all the things we need
var LocalStrategy = require('passport-local').Strategy;
var mysql = require('mysql');
var connection = mysql.createConnection({
host : 'localhost',
user : 'root',
@wowplus2
wowplus2 / main.go
Created February 12, 2020 12:15 — forked from guinso/main.go
Sample SMTP with attachment
package main
import (
"crypto/tls"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"net/smtp"
"strings"