Skip to content

Instantly share code, notes, and snippets.

View amarema's full-sized avatar

Vitalii amarema

View GitHub Profile
@amarema
amarema / multiple_ssh_setting.md
Created April 17, 2018 19:42 — 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]"
@amarema
amarema / ext.js
Last active August 13, 2019 13:26
Get file extension
const getExtension = str => str.substring(str.lastIndexOf('.') + 1);
const str = getExtension('some.class.jsx');
@amarema
amarema / commas.js
Last active August 13, 2019 13:27
Divide number into groups
const numberWithCommas = x => x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');