Skip to content

Instantly share code, notes, and snippets.

View YWHo's full-sized avatar

Brian Ho YWHo

View GitHub Profile
@YWHo
YWHo / httpsExpressApp.js
Created April 18, 2020 10:29 — forked from ryanhanwu/httpsExpressApp.js
Express JS HTTP + HTTPs server (including auto redirect)
var express = require('express'),
routes = require('./routes'),
upload = require('./routes/upload'),
http = require('http'),
https = require('https'),
fs = require('fs'),
path = require('path'),
httpApp = express(),
app = express(),
certPath = "cert";
@YWHo
YWHo / terminal-git-branch-name.md
Created March 24, 2020 00:34 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Mac)

Add Git Branch Name to Terminal Prompt (Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {