Skip to content

Instantly share code, notes, and snippets.

View JelteMX's full-sized avatar
👋
Moved to @j3lte, not getting notifications here

Jelte Lagendijk JelteMX

👋
Moved to @j3lte, not getting notifications here
  • Rotterdam, The Netherlands
View GitHub Profile
@JelteMX
JelteMX / ssh.md
Created October 26, 2017 14:55 — forked from quintanilhar/ssh.md
SSH keys

Creating a ssh key

$ 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 @
@JelteMX
JelteMX / .eslintrc.js
Created November 17, 2016 12:55 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {
@JelteMX
JelteMX / auto-deploy.md
Created September 8, 2016 14:01 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

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.

Create a compile script

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.

@JelteMX
JelteMX / multiple_ssh_setting.md
Created August 11, 2016 13:32 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
@JelteMX
JelteMX / triangulate.js
Created April 29, 2016 11:15 — forked from alanchrt/triangulate.js
Triangulation of three points and radii
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