Skip to content

Instantly share code, notes, and snippets.

View dusansimic's full-sized avatar
🫠
Working 3.5 jobs at the moment

Dušan Simić dusansimic

🫠
Working 3.5 jobs at the moment
View GitHub Profile
@moleike
moleike / http-errors.js
Last active December 22, 2019 21:13 — forked from justmoon/custom-error.js
HTTP Error classes in Node.js
'use strict';
const statusCodes = require('http').STATUS_CODES;
function createError(code, name) {
return function(message) {
Error.captureStackTrace(this, this.constructor);
this.name = name;
this.message = message;
this.statusCode = code;
}
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a