create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |
<?php | |
/* | |
Plugin Name: WooCustom My Account | |
Plugin URI: http://wpbeaches.com/ | |
Description: WooCustom - add a custom area in my-account | |
Author: Neil Gee | |
Version: 1.0.0 | |
Author URI: http://wpbeaches.com | |
License: GPL-2.0+ |
@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)), |
@Effect({dispatch: false}) | |
entityCreationSuccess$: Observable<Action> = this.actions$.pipe( | |
ofType(UserActions.CREATE_USER_SUCCESS, PostActions.CREATE_POST_SUCCESS), | |
tap(action => { | |
this.router.navigate(['../'], {relativeTo: this.route}) | |
}) | |
); |
public function search(Request $request) | |
{ | |
if($request->has('text') && $request->input('text')) { | |
// Search for given text and return data | |
$data = $this->searchMovies($request->input('text')); | |
$moviesArray = []; | |
// If there are any movies that match given search text "hits" fill their id's in array | |
if($data['hits']['total'] > 0) { |
interface Layouts { | |
[name: string]: LayoutRoot; | |
} | |
const layouts: Promise<Layouts> = new Promise(resolve => { | |
Promise.all([ | |
Icon.getImageSource("people"), | |
Icon.getImageSource("message") | |
]).then(icons => { | |
resolve({ |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
const _ = require('lodash') | |
function genrows(groups, groupKey) { | |
return _.toPairs(groups) | |
.map(([key, data]) => ({[groupKey]: key, data})) | |
} | |
function gengroups(arr, iteratee, key) { | |
const grouped = _.groupBy(arr, iteratee) | |
return genrows(grouped, key) |
# pull the official mongo docker container | |
docker pull mongo | |
# create network | |
docker network create my-mongo-cluster | |
# create mongos | |
docker run -d --net my-mongo-cluster -p 27017:27017 --name mongo1 mongo mongod --replSet my-mongo-set --port 27017 | |
docker run -d --net my-mongo-cluster -p 27018:27018 --name mongo2 mongo mongod --replSet my-mongo-set --port 27018 | |
docker run -d --net my-mongo-cluster -p 27019:27019 --name mongo3 mongo mongod --replSet my-mongo-set --port 27019 |
The only way I've succeeded so far is to employ SSH.
Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config
file in a .ssh
directory. The config
file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh
directory by default. You can navigate to it by running cd ~/.ssh
within your terminal, open the config
file with any editor, and it should look something like this:
Host * AddKeysToAgent yes
> UseKeyChain yes