I hereby claim:
- I am jeromecovington on github.
- I am jeromecovington (https://keybase.io/jeromecovington) on keybase.
- I have a public key ASC4pu-ETjvaaYvxasiq7rySsmD1x6032HnwvJq82pmWswo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| tmux new-session -s my_session | |
| tmux ls | |
| tmux attach-session -t my_session | |
| Ctrl+b c | |
| Create a new window (with shell) | |
| Ctrl+b w | |
| Choose window from a list | |
| Ctrl+b 0 | |
| Switch to window 0 (by number) |
$ brew tap nodesource/nsolid$ brew install nsolid-console$ nsolid-console$ NSOLID_APPNAME="my-app" NSOLID_COMMAND="localhost:9001" nsolid my-app/index.js| "word" motions (no special chars) | |
| w | |
| forward by word | |
| b | |
| backward by word | |
| e | |
| end of word | |
| ge | |
| end of word (backward) |
| AWSTemplateFormatVersion: "version date" | |
| " String | |
| Description: | |
| " template metadata | |
| " arbitrary yaml | |
| " CloudFormation helper scripts | |
| " cfn-init, cfn-signal, cfn-get-metadata, cfn-hup | |
| " Resources can have Metadata (install scripts, etc.) |
| Matchers | |
| ^ | |
| Match starting position | |
| . | |
| Match any single character, enclose in bracket for literal dot | |
| a.c -> "abc", etc. | |
| [a.c] -> "a", ".", "c" | |
| [ ] | |
| Match single character, or character within range | |
| [abc], [a-c] -> "a", "b", "c" |
| type PartiallyRequired<T, K extends keyof T> = Pick<T, K> & Partial<T>; | |
| type Test = { | |
| foo: string; | |
| bar: string; | |
| baz: string; | |
| }; | |
| type Test1 = PartiallyRequired<Test, "foo">; |
$ redis-cli --rdb dump-before.rdb save
$ redis-cli --rdb dump-after.rdb save
$ pip install rdbtools python-lzf
$ rdb --command diff dump-before.rdb | sort > sorted-dump-before.out
$ rdb --command diff dump-after.rdb | sort > sorted-dump-after.out
$ diff sorted-dump-before.out sorted-dump-after.out
| // Naive recursion. | |
| function fib1(n) { | |
| if (n <= 1) { | |
| return n | |
| } | |
| return fib1(n - 1) + fib1(n - 2) | |
| } | |
| { | |
| console.log('fib1') |