Skip to content

Instantly share code, notes, and snippets.

View vivekteega's full-sized avatar
💭
Booyakasha

Vivek Teega vivekteega

💭
Booyakasha
View GitHub Profile
@vivekteega
vivekteega / multifetch.html
Last active October 25, 2019 15:10
Fetching data from multiple backup apis
<html>
<body>
<script>
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
import time
for i in range(99999999):
print('Hey whatsup')
time.sleep(1)
@vivekteega
vivekteega / flosight-30May2020.logs
Created May 30, 2020 05:05
Flosight crash logs - 30 May 2020 10:34AM
[2020-05-30T04:11:03.032Z] info: Block Service: The best block hash is: 2b1de4781376dcff5df300378793b262535991038353d077baaafc1a50cf15c0 at height: 4135985. Time between the last 2 blocks (adjusted): 42 second(s). 0 millisecond(s).
[2020-05-30T04:11:04.375Z] info: ::ffff:127.0.0.1 "GET /api/block/2b1de4781376dcff5df300378793b262535991038353d077baaafc1a50cf15c0" 200 653 10.547 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37"
[2020-05-30T04:11:04.391Z] info: ::ffff:127.0.0.1 "GET /api/blocks?limit=5" 200 - 11.234 "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 Edg/83.0.478.37"
[2020-05-30T04:11:09.281Z] info: ::ffff:127.0.0.1 "GET /api/sync" 200 121 0.414 "curl/7.52.1"
[2020-05-30T04:11:15.527Z] info: ::ffff:127.0.0.1 "GET /api/status?q=getBestBlockHash" 200 84 0.313 "curl/7.52.1"
[info] (chain) Block b86e96c193f5717f66a073b6697e264e873d8776167fb701a949e0993c6da
@vivekteega
vivekteega / jun7-flosight.log
Last active June 7, 2020 04:27
Jun 7 - Flosight logs - last 10000 lines
[info] (chain) Block 35a988f24e47525736a3f785fcb413eac19ee81ae163429ec42436a2c29e4b28 (4149588) added to chain (size=356 txs=1 time=3.020122).
[2020-06-06T05:39:39.034Z] info: Block Service: The best block hash is: 35a988f24e47525736a3f785fcb413eac19ee81ae163429ec42436a2c29e4b28 at height: 4149588. Time between the last 2 blocks (adjusted): 1 second(s). 0 millisecond(s).
[2020-06-06T05:39:39.061Z] info: ::ffff:127.0.0.1 "GET /api/block/35a988f24e47525736a3f785fcb413eac19ee81ae163429ec42436a2c29e4b28" 200 687 0.915 "python-requests/2.23.0"
[2020-06-06T05:39:39.068Z] info: ::ffff:127.0.0.1 "GET /api/tx/7abacf215c26c68022a2ce63285a1ecc560eea0dbb977f5eb2c56debc174497f" 200 - 1.485 "python-requests/2.23.0"
[2020-06-06T05:39:42.355Z] info: ::ffff:127.0.0.1 "GET /api/sync" 200 121 0.306 "curl/7.52.1"
[info] (chain) Block 8ce947332afc4fb6a92592819038c629d037b649955931ee628f35593eaa54cd (4149589) added to chain (size=355 txs=1 time=2.324802).
[2020-06-06T05:39:43.636Z] error: Error: block not in index
at /flosi
@vivekteega
vivekteega / flosight-restart.log
Created June 7, 2020 04:51
Jun 7th - Flosight restart logs
This file has been truncated, but you can view the full file.
[2020-06-05T15:55:47.903Z] info: ::ffff:127.0.0.1 "GET /api/block/cdd5b7b6e0ece9453793e725a02bd138d0ca2ff95a60972a0609c4db4e55094d" 200 714 1.046 "python-requests/2.23.0"
[2020-06-05T15:55:47.907Z] info: ::ffff:127.0.0.1 "GET /api/tx/6f3a6975f7276893194b0ff888c7af287bd64c4efff9fc885e6e0ae4a8a333f3" 200 - 1.291 "python-requests/2.23.0"
[2020-06-05T15:55:47.913Z] info: ::ffff:127.0.0.1 "GET /api/tx/c3c946a7cf246eb7d51c246c29fadae2ce1441295c740d37c8ef4b51c991bf16" 200 - 2.567 "python-requests/2.23.0"
[2020-06-05T15:56:12.960Z] info: ::ffff:127.0.0.1 "GET /api/sync" 200 121 0.299 "curl/7.52.1"
[2020-06-05T15:56:13.557Z] info: ::ffff:127.0.0.1 "GET /api/status?q=getBestBlockHash" 200 84 1.148 "curl/7.52.1"
[info] (chain) Block d888da8807121fdf3bf4b83497a2079806b12f4c9a76cf27828718d82758993f (4148479) added to chain (size=249 txs=1 time=2.541104).
[2020-06-05T15:56:25.178Z] info: Block Service: The best block hash is: d888da8807121fdf3bf4b83497a2079806b12f4c9a76cf27828718d82758993f at height: 4148479. Time bet
@vivekteega
vivekteega / jun7-0730pm-crash.log
Created June 7, 2020 14:06
June 7th, 7:30pm flosight crash log
This file has been truncated, but you can view the full file.
[info] (chain) Block c7120e296d8b5568285fa4c85041fdb95a727fcb74d0a31af4946938e5b9d71a (4126971) added to chain (size=586 txs=2 time=1.766475).
[info] (chain) Block 3e4618cf2e02fc12fcbea7ee83a79ef1bb8bf664efc1db393789fc541c18c8d2 (4126972) added to chain (size=249 txs=1 time=0.874889).
[info] (chain) Block e81c8e7d5ed39e54892ad9a714001c9f7e394410a96dd3fbba24cb54e9c4ec84 (4126973) added to chain (size=241 txs=1 time=0.759103).
[info] (chain) Block 2b94955aa05fed906d0588a39aa97b47991b8e13e7adbed44a62a731695409bf (4126974) added to chain (size=235 txs=1 time=0.594388).
[info] (chain) Block 3309ab71e2d21d3af98daab94927fb16f6ff00f1e8f65ea18caa6b9268946a1e (4126975) added to chain (size=249 txs=1 time=0.602221).
[info] (chain) Block eb1e262efe179baf2615c25de5cad9232c68e29884d1b389266e20b28df34c8b (4126976) added to chain (size=249 txs=1 time=0.586882).
[info] (chain) Block a0aeb733618d7329036885fd6aef670585f7f529352ef28bac9683c9da5ac4ec (4126977) added to chain (size=249 txs=1 time=0.541752).
[info] (chain) Block bd
@vivekteega
vivekteega / jun7-0730-crash-abridged.log
Created June 7, 2020 14:22
jun7-0730-crash-abridged
[info] (chain) Block 17cbc75f66afa928f5415b40dfbd47ab02d5cdb3f1aa6d61fab88335dfbaf3e9 (4149279) added to chain (size=249 txs=1 time=0.621528).
[info] (chain) Block 29b25e9d0078ac0eeaf4f18b617ed5ffe642b885331c8ec1295e47d4df8e5285 (4149280) added to chain (size=241 txs=1 time=0.60814).
[info] (chain) Block 489d41aff14cfcd2f02d2617376b54974fe75ac04915f49f1c1c03946af9f9f3 (4149281) added to chain (size=249 txs=1 time=0.552798).
[info] (chain) Block 00bb0f0b1d930a4d9f3001eb891623352e700fee376d974d26e07470dd0450bb (4149282) added to chain (size=235 txs=1 time=4.234112).
[info] (chain) Block 259b978057f6494bca2b6b12f52aac4284d170e89af9b107a24a7d54cb359c02 (4149283) added to chain (size=249 txs=1 time=1.043404).
[info] (chain) Block 83a50c81299b45622b12fdab4ab5aed4f1a61b21e4d826f4fd8649786b9dcb76 (4149284) added to chain (size=249 txs=1 time=0.873379).
[info] (chain) Block 1d0f07198b91491250842c1ea4c2ac9687ea1274641c842b7fd36cb813791062 (4149285) added to chain (size=243 txs=1 time=0.697612).
[info] (chain) Block 9df
@vivekteega
vivekteega / jun8-0900am-err.log
Created June 8, 2020 03:56
June 8, 9:00 am | Flosight crash error
[2020-06-07T17:19:54.371Z] info: Header Service: download progress: 2710000/4150823 (65.29%)
[2020-06-07T17:19:54.924Z] info: Header Service: download progress: 2712000/4150823 (65.34%)
[2020-06-07T17:19:55.473Z] info: Header Service: download progress: 2714000/4150823 (65.38%)
[2020-06-07T17:19:56.078Z] info: Header Service: download progress: 2716000/4150823 (65.43%)
[2020-06-07T17:19:56.757Z] info: Header Service: download progress: 2718000/4150823 (65.48%)
[2020-06-07T17:19:57.408Z] info: Header Service: download progress: 2720000/4150823 (65.53%)
[2020-06-07T17:19:58.038Z] info: Header Service: download progress: 2722000/4150823 (65.58%)
[2020-06-07T17:19:58.671Z] info: Header Service: download progress: 2724000/4150823 (65.63%)
[2020-06-07T17:19:59.320Z] info: Header Service: download progress: 2726000/4150823 (65.67%)
[2020-06-07T17:19:59.957Z] info: Header Service: download progress: 2728000/4150823 (65.72%)
@vivekteega
vivekteega / parseplot.js
Created June 12, 2020 07:24
Parse plot
function parsePlot(plottext){
var sectionArray = plottext.split('->');
//
return sectionArray;
}
@vivekteega
vivekteega / parseplot.js
Created June 13, 2020 04:06
parsePlot discussion
var plotDiagram = `(Hooghly, Calcutta, 2020, Painting Hooghly with words-Build background and bridge to Writers Building) ->
(Writers Building, 2020, Calcutta, Painting Writers)