Skip to content

Instantly share code, notes, and snippets.

ravibhure /
Last active Dec 18, 2022
Git rebase from remote fork repo

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

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

git fetch upstream

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 / A: Secure Sessions Howto
Last active Dec 19, 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:
Edit for express 4.X and >: Express no longer uses Connect as its middleware framework, it implements its own now.