This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
o = { | |
ACCTOUNT_NUMBER: '1234567890', | |
CUSTOMER_NAME: 'ACME Products and Services, Inc.', | |
ADDRESS: '123 Main Street', | |
CITY: 'Albuquerque', | |
STATE: 'NM', | |
ZIP: '87101-1234' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Convert an "old" stream to AsyncIterable. | |
// | |
// Stream are "push" interfaces and iterators are "pull" interfaces. So there needs | |
// to be some kind of queue to accumulate the pushed data while waiting for "pulls", | |
// i.e, calls to next(). In this implementation the queue is the pendingValues array. | |
// | |
// Note: Not needed for current implementations of NodeJS Readable stream, as they are | |
// already AsyncIterable. | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk') | |
const fs = require('fs') | |
const path = require('path') | |
const s3 = new AWS.S3() | |
const BUCKET = 'gil-test-bucket' | |
const PREFIX = 'Clarizen/salesforce/' | |
const OUTDIR = '/tmp/aa' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
mkdir linux | |
pushd linux | |
git init | |
git config extensions.partialClone true | |
git config core.sparseCheckout true | |
echo "kernel/acct.c" >> .git/info/sparse-checkout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.log | |
0 | |
1 | |
1234 | |
12345 | |
123456 | |
18Renmeng | |
2 | |
ACrenshaw | |
AGorg |