I hereby claim:
- I am joaofnds on github.
- I am joaofnds (https://keybase.io/joaofnds) on keybase.
- I have a public key whose fingerprint is 1D72 95B2 7D3B C292 068A 6533 064E 0BAC E988 9F9C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| func main() { | |
| memAddress := uint(26) |
| require 'json' | |
| from_app, to_app = ARGV | |
| envs_to_ignore = ['DATABASE_URL'] | |
| config = | |
| JSON.parse(`heroku config --app #{from_app} --json`) | |
| .reduce('') do |memo, (key, value)| | |
| if envs_to_ignore.include? key |
| require 'json' | |
| app = ARGV[0] | |
| envs_to_ignore = ['DATABASE_URL'] | |
| keys = | |
| JSON.parse(`heroku config --app #{app} --json`) | |
| .reduce('') do |memo, (key, _value)| | |
| if envs_to_ignore.include? key |
| const customers = [ | |
| { name: 'foo', orders: 4 }, | |
| { name: 'bar', orders: 3 }, | |
| { name: 'baz', orders: 2 }, | |
| { name: 'qux', orders: 1 } | |
| ] | |
| const arrayReducer = (arr, elem) => arr.concat(elem) | |
| const tmap = |
| total 24 | |
| drwxr-xr-x+ 15 joaofnds staff 480 Sep 14 23:56 . | |
| drwxr-xr-x 5 root admin 160 Sep 14 23:52 .. | |
| -r-------- 1 joaofnds staff 7 Sep 14 23:52 .CFUserTextEncoding | |
| -rw-r--r--@ 1 joaofnds staff 6148 Sep 14 23:55 .DS_Store | |
| drwx------ 2 joaofnds staff 64 Sep 14 23:55 .Trash | |
| -rw------- 1 joaofnds staff 0 Sep 14 23:56 .bash_history | |
| drwx------ 11 joaofnds staff 352 Sep 15 00:25 .bash_sessions | |
| drwx------@ 8 joaofnds staff 256 Sep 15 00:25 Desktop | |
| drwx------@ 16 joaofnds staff 512 Sep 15 00:12 Documents |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const { promisify } = require("util"); | |
| const matter = require("gray-matter"); // required since notable use it to encode | |
| const glob = promisify(require("glob")); | |
| const mkdir = promisify(fs.mkdir); | |
| const readFile = promisify(fs.readFile); | |
| const writeFile = promisify(fs.writeFile); |
| (defmacro -> (args &body forms) | |
| (flet ((ensure-list (arg) (if (listp arg) arg (list arg)))) | |
| (reduce | |
| (lambda (args f) | |
| (ensure-list | |
| (case (type-of f) | |
| (function (apply f args)) | |
| (symbol (apply f args)) | |
| (cons (apply (car f) (append (cdr f) args)))))) | |
| forms |
| git clone https://github.com/eulerto/wal2json -b master --single-branch \ | |
| && cd wal2json \ | |
| && git checkout d2b7fef021c46e0d429f2c1768de361069e58696 \ | |
| && make && make install \ | |
| && cd .. \ | |
| && rm -rf wal2json |