Install Redis RDB Tools from here:
Take a snapshot of each redis db
$ redis-cli save
Copy the snapshots to somewhere else
$ cp ~/dump.rdb ./dump-a.rdb
# npm publish with goodies | |
# prerequisite: `npm install -g trash` | |
# `np` with an optional argument `patch`/`minor`/`major`/`<version>` | |
# defaults to `patch` | |
np() { | |
trash node_modules &>/dev/null; | |
git pull --rebase && | |
npm install && | |
npm test && | |
npm version ${1:-patch} && |
Install Redis RDB Tools from here:
Take a snapshot of each redis db
$ redis-cli save
Copy the snapshots to somewhere else
$ cp ~/dump.rdb ./dump-a.rdb
// array utils | |
// ================================================================================================= | |
const combine = (...arrays) => [].concat(...arrays); | |
const compact = arr => arr.filter(Boolean); | |
const contains = (() => Array.prototype.includes | |
? (arr, value) => arr.includes(value) | |
: (arr, value) => arr.some(el => el === value) |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
Held by Balázs Suhajda and Glenn Jorde in Malmö 2015-02-21 @ FooCafe. Sponsored by tretton37.
Permalink here: http://bit.ly/polymer-malmo
node_modules/ |
import Cycle, {Rx, h} from 'cyclejs'; | |
Cycle.registerCustomElement('TodoList', (rootElem$, props) => { | |
let vtree$ = props.get('items$').map(items => | |
h('div', h('ul', items.map((itemText, index) => | |
h('li', { key: index + itemText }, itemText))))); | |
rootElem$.inject(vtree$); | |
}); | |
let vtree$ = Cycle.createStream(function (interaction$) { |
import fs from 'fs'; | |
import path, { resolve } from 'path'; | |
import assert from 'assert'; | |
import Module from 'module'; | |
import jsdom from 'jsdom'; | |
import Mocha from 'mocha'; | |
import chokidar from 'chokidar'; | |
// Let's import and globalize testing tools so | |
// there's no need to require them in each test |
tap phinze/cask | |
tap caskroom/versions | |
tap KevinSjoberg/formulas | |
install brew-cask | |
install git | |
# install node | |
install imagemagick | |
install m | |
install n |
Should be work with 0.18
Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !
myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))