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
| ->kubectl create ns logging | |
| serviceaccount "tiller" created | |
| ->kubectl create -f tiller-clusterrolebinding.yaml | |
| clusterrolebinding.rbac.authorization.k8s.io "tiller-clusterrolebinding" created | |
| ->helm init --service-account tiller | |
| Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster. | |
| ->helm ls | |
| Error: could not find tiller |
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
| proxyTimer = async function (delay,callback) { | |
| return new Promise((resolve, reject) => { | |
| var timeleft = delay; | |
| var proxyTimer = setInterval(function(){ | |
| timeleft--; | |
| if(timeleft <= 0){ | |
| clearInterval(proxyTimer) | |
| callback() | |
| }else{ | |
| resolve(true) |
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
| isAcc = await page.evaluate(async (domain,account_id,time) => { | |
| response = await fetch(`${domain}/api/p/a?account_id=${account_id}&timer=${time}`,{ | |
| method: 'GET', | |
| }).then(function(response) { | |
| return response.json(); | |
| }).then(function(res) { | |
| if(res.isAcc){ | |
| return res.isAcc; | |
| }else{ |
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 { Sender } = require('@questdb/nodejs-client'); | |
| var moment = require("moment"); | |
| const axios = require('axios'); | |
| const marketname = process.env.MARKETNAME || 'US 2000 - Rolling Cash' | |
| const marketid = parseInt(process.env.MARKETID) || 68744 | |
| const quoteid = parseInt(process.env.QUOTEID) || 875464 | |
| const bucket = process.env.BUCKET || 'minute' | |
| const candle_length = process.env.CANDLE_LENGTH || 10000 | |
| const run_once = process.env.RUN_ONCE || true |
OlderNewer