Skip to content

Instantly share code, notes, and snippets.

@ravibhure
ravibhure / git_rebase.md
Last active May 21, 2022
Git rebase from remote fork repo
View git_rebase.md

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@hakimelek
hakimelek / us_institutions.json
Created Sep 28, 2016
A List of American Colleges and Universities in JSON format
View us_institutions.json
[
{
"institution": "Alabama A & M University"
},
{
"institution": "University of Alabama at Birmingham"
},
{
"institution": "Amridge University"
},
@nikmartin
nikmartin / A: Secure Sessions Howto
Last active Apr 20, 2022
Secure sessions with Node.js, Express.js, and NginX as an SSL Proxy
View A: Secure Sessions Howto
Secure sessions are easy, but not very well documented.
Here's a recipe for secure sessions in Node.js when NginX is used as an SSL proxy:
The desired configuration for using NginX as an SSL proxy is to offload SSL processing
and to put a hardened web server in front of your Node.js application, like:
[NODE.JS APP] <- HTTP -> [NginX] <- HTTPS -> [PUBLIC INTERNET] <-> [CLIENT]
Edit for express 4.X and >: Express no longer uses Connect as its middleware framework, it implements its own now.