Skip to content

Instantly share code, notes, and snippets.

View isabolic's full-sized avatar

isabolic99 isabolic

View GitHub Profile
@isabolic
isabolic / http-error.js
Created September 13, 2019 08:10 — forked from TooTallNate/http-error.js
HTTPError class for JavaScript HTTP errors
import { format } from 'url';
import { STATUS_CODES } from 'http';
import uppercamelcase from 'uppercamelcase';
class HTTPError extends Error {
constructor(code, message, extras) {
super(message || STATUS_CODES[code]);
if (arguments.length >= 3 && extras) {
Object.assign(this, extras);
}
@isabolic
isabolic / multiple_ssh_setting.md
Created May 31, 2017 06:48 — 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 "your_email@youremail.com"