Skip to content

Instantly share code, notes, and snippets.

View flashjpr's full-sized avatar

Alex flashjpr

View GitHub Profile
jexchan /
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts
plentz / nginx.conf
Last active September 26, 2023 09:55
Best nginx configuration for improved security(and performance)
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
soheilhy /
Last active September 25, 2023 20:18
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for,, and on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

javierarques /
Last active January 31, 2023 08:51
Protractor API Cheatsheet
vespertilian / conditional_effects.ts
Created February 9, 2017 04:09
Two options for conditional ngrx effects
View conditional_effects.ts
selectAndLoadStore$: Observable<Action> = this.actions$
.map(([action, storeState]) => [action.payload, storeState])
.switchMap(([storeName, storeState]) => {
const existsInStore = Boolean(storeState.urlNameMap[storeName]);
return Observable.if(
() => existsInStore,
Observable.of(new storeActions.SetSelectedStore(storeName)),