I hereby claim:
- I am tlbdk on github.
- I am tlbdk (https://keybase.io/tlbdk) on keybase.
- I have a public key ASAB_oFgFvmbAFHKJIQ5SlTtdcKSJhOw2qMitqe_fQDvkQo
To claim this, I am signing this object:
/* eslint-disable no-console */ | |
const promise = new Promise<void>((resolve, reject) => { | |
reject(new Error()) | |
}) | |
async function throwsFromPromiseOutside(): Promise<void> { | |
return await promise | |
} |
const zlib = require('zlib') | |
const fs = require('fs') | |
if (process.argv.length < 3) { | |
console.error('./unpack.js filename') | |
process.exit(255) | |
} | |
let filePath = process.argv[2] |
#!/bin/bash | |
# set ACCESS_TOKEN with gcloud auth print-access-token | |
UPLOAD_URL="https://storage.googleapis.com/<project>-npmcache" | |
SCRIPT_PATH=$(cd `dirname ${0}`; pwd) | |
YARN_LOCK_HASH=`cat yarn.lock package.json|sha1sum|cut -d' ' -f1` | |
if [ ! -d "node_modules" ]; then | |
echo "Trying to extract cached yarn dump" |
var fs = require('fs'); | |
// Dump your collection with: mongoexport --collection collectionname --db dbname --out output.json --query '{ "myprop": "test" }' | |
var stream = fs.createReadStream("output.json", {flags: 'r', encoding: 'utf-8'}); | |
var buf = ''; | |
var count = 0; | |
stream.on('data', function(data) { | |
buf += data.toString(); |
var obj = { | |
a: 1, | |
b: null, | |
c: [ | |
{ | |
d: null, | |
e: 'something' | |
} | |
] | |
}; |
I hereby claim:
To claim this, I am signing this object: