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
#!/bin/bash | |
issuerIds=('100000000000000000000001' | |
'100000000000000000000002' | |
'100000000000000000000003' | |
'100000000000000000000004' | |
'100000000000000000000005' | |
'100000000000000000000006' | |
'100000000000000000000007' | |
'100000000000000000000008' |
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 TRANSACTIONS_PER_ISSUER = 100000; | |
const INSERT_BATCH_SIZE = 5000; | |
const LOG_PROGRESS_EVERY_PASSED_PERCENTAGE = 5; | |
const startTime = Date.now(); | |
printjson(ISSUERS) | |
printWithDateTime("### START creating TXN data for all Issuers ###"); | |
for (var i = 0; i < ISSUERS.length; i++) { | |
var issuer = ISSUERS[i]; |
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
{ | |
"name": "interceptors-opentelemetry-sample", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"build": "tsc --build", | |
"build.watch": "tsc --build --watch", | |
"lint": "eslint .", | |
"start": "ts-node src/worker.ts", | |
"start.watch": "nodemon src/worker.ts", |
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
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
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
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your **location** block(s): | |
# | |
# include cors_support; | |
# | |
# As of Nginx 1.7.5, add_header supports an "always" parameter which |