$ ssh-keygen -t rsa -b 4096 -C '<me>@<domain>'
Installing your ssh key in a remote server (it will add your key.pub in the authorized_keys from the remote server basically)
$ ssh-copy-id @
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.
The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| var distancePoints = function(p1, p2) { | |
| // Find the distance between two points | |
| return Math.sqrt(Math.pow(p2[0] - p1[0], 2) + Math.pow(p2[1] - p1[1], 2)); | |
| }; | |
| var intersectCircles = function (c1, r1, c2, r2) { | |
| // Find the points of intersection for two circles | |
| // Based on: http://stackoverflow.com/a/3349134 | |
| var d = distancePoints(c1, c2); | |
| if (d > r1 + r2) // Circles do not overlap |