Skip to content

Instantly share code, notes, and snippets.

View greg-han's full-sized avatar

Gregory Han greg-han

View GitHub Profile
@greg-han
greg-han / samplerest.js
Created July 24, 2018 17:18 — forked from joshbirk/samplerest.js
Sample of using passport w/ mult strategies
var fs = require("fs")
var ssl_options = {
key: fs.readFileSync('privatekey.pem'),
cert: fs.readFileSync('certificate.pem')
};
var port = process.env.PORT || 3000;
var express = require('express');
var ejs = require('ejs');
var passport = require('passport')
@greg-han
greg-han / export_sqlite.sh
Created July 31, 2018 16:19 — forked from zeroc0d3/export_sqlite.sh
Export data from sqlite3 file using bash script
#!/bin/sh
#################
# ZeroC0D3 Team #
#################
### STEP ###
# 1) Download binary file "sqlite3" from
# https://www.sqlite.org/
# 2) Extract binary "sqlite3" to your PATH_BIN
# 3) Set your file name in PATH_TARGET_DUMP for all schema & data