most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
function onport(){ | |
lsof -n -i4TCP:$1 | grep LISTEN | |
} | |
function tmuxhelp() { | |
open "https://gist.github.com/henrik/1967800" | |
} |
{ | |
"scripts": "mocha -r should '*.spec.js'" | |
} |
export function simple(num) { | |
return { | |
type: 'add', | |
payload: { | |
num | |
} | |
}; | |
} | |
export function withDispatch(num) { |
(function (window, document, script, raven, el, first, loaded) { | |
raven = []; | |
window.onerror = function e(message, file, line, colno, ex) { | |
if (loaded) { | |
return; | |
} | |
raven.push([message, file, colno, ex]); | |
}; | |
el = document.createElement(script); | |
first = document.getElementsByTagName(script)[0]; |
var express = require('express'); | |
var app = express(); | |
var bodyParser = require('body-parser'); | |
// chrome sends application/csp-report | |
// firefox sends application/json | |
// it seems chrome is doing it well: https://w3c.github.io/webappsec/specs/content-security-policy/ | |
app.use(bodyParser.json({ | |
type: ['json', 'application/csp-report'] | |
})); |
<!DOCTYPE html><!-- | |
about:version template page | |
--><html xmlns="http://www.w3.org/1999/xhtml" id="t" dir="ltr" lang="en" i18n-processed=""><head> | |
<meta charset="utf-8" /> | |
<title>About Version</title> | |
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css" /> | |
<link rel="stylesheet" href="chrome://version/about_version.css" /> | |
npm i https://github.com/purposeindustries/yslow-nodejs | |
curl "https://www.webpagetest.org/export.php?test=170710_HJ_1AD8&run=2&cached=0&bodies=1&pretty=1" -o blog.intellyo.com.har | |
$(npm bin)/yslow-nodejs blog.intellyo.com.har |
made with esnextbin
linters: with_defaults(line_length_linter(120)) | |
exclusions: list("lint.R") |