create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
http://angular.github.io/protractor/#/api
Note: Most commands return promises, so you only resolve their values through using jasmine expect API or using .then(function()) structure
Based on this post: https://spagettikoodi.wordpress.com/2015/01/14/angular-testing-cheat-sheet/ by @crystoll
browser.get('yoururl'); // Load address, can also use '#yourpage'
@Effect() | |
selectAndLoadStore$: Observable<Action> = this.actions$ | |
.ofType(storeActions.SELECT_AND_LOAD_STORE) | |
.withLatestFrom(this.store.select(ngrx.storeState)) | |
.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)), |