Skip to content

Instantly share code, notes, and snippets.

View lptai's full-sized avatar
🏃‍♂️

Tài Lê lptai

🏃‍♂️
View GitHub Profile
#!/bin/bash
issuerIds=('100000000000000000000001'
'100000000000000000000002'
'100000000000000000000003'
'100000000000000000000004'
'100000000000000000000005'
'100000000000000000000006'
'100000000000000000000007'
'100000000000000000000008'
@lptai
lptai / generate-txn.js
Last active August 12, 2021 07:25
generate-txn.js
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];
@lptai
lptai / History|-10081aac|6IlU.json
Last active January 8, 2024 08:20
Visual Studio Code Settings Sync Gist
{
"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",
@lptai
lptai / cors-nginx.conf
Created August 11, 2019 08:50 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@lptai
lptai / nginx.conf
Created August 9, 2019 07:52 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# 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