Skip to content

Instantly share code, notes, and snippets.

View chessai's full-sized avatar

chessai chessai

View GitHub Profile
This file has been truncated, but you can view the full file.
Jun 08 21:24:36 ip-172-31-29-0.ec2.internal chainweb-node[589066]: 2023-06-08T21:24:36.966Z [Info] [chainwebVersion=mainnet01|type=ChainwebApp] start ServiceDate
Jun 08 21:24:36 ip-172-31-29-0.ec2.internal chainweb-node[589066]: 2023-06-08T21:24:36.966Z [Warn] [chainwebVersion=mainnet01|type=ChainwebApp] This version of chainweb node will stop working at 2023-09-07 00:00:00 UTC. Please upgrade to a new version before that date.
Jun 08 21:24:38 ip-172-31-29-0.ec2.internal chainweb-node[589066]: 2023-06-08T21:24:38.412Z [Info] [chainwebVersion=mainnet01|type=ChainwebApp] opened rocksdb in directory "/var/lib/chainweb-node/mainnet01/0/rocksDb"
Jun 08 21:24:38 ip-172-31-29-0.ec2.internal chainweb-node[589066]: 2023-06-08T21:24:38.412Z [Info] [chainwebVersion=mainnet01|type=ChainwebApp] backup config: BackupConfig {_configBackupApi = EnableConfig {_enableConfigEnabled = False, _enableConfigConfig = BackupApiConfig}, _configBackupDirectory = Nothing}
Jun 08 21:24:38 ip-172-31-29-0.ec2.internal chainweb-node[589066]
This file has been truncated, but you can view the full file.
Jun 08 20:10:02 ip-172-31-29-0.ec2.internal chainweb-node[572800]: 2023-06-08T20:10:02.622Z [Info] [chainwebVersion=mainnet01|type=ChainwebApp] start ServiceDate
Jun 08 20:10:02 ip-172-31-29-0.ec2.internal chainweb-node[572800]: 2023-06-08T20:10:02.622Z [Warn] [chainwebVersion=mainnet01|type=ChainwebApp] This version of chainweb node will stop working at 2023-09-07 00:00:00 UTC. Please upgrade to a new version before that date.
Jun 08 20:10:03 ip-172-31-29-0.ec2.internal chainweb-node[572800]: 2023-06-08T20:10:03.730Z [Info] [chainwebVersion=mainnet01|type=ChainwebApp] opened rocksdb in directory "/var/lib/chainweb-node/mainnet01/0/rocksDb"
Jun 08 20:10:03 ip-172-31-29-0.ec2.internal chainweb-node[572800]: 2023-06-08T20:10:03.730Z [Info] [chainwebVersion=mainnet01|type=ChainwebApp] backup config: BackupConfig {_configBackupApi = EnableConfig {_enableConfigEnabled = False, _enableConfigConfig = BackupApiConfig}, _configBackupDirectory = Nothing}
Jun 08 20:10:04 ip-172-31-29-0.ec2.internal chainweb-node[572800]
import requests
import time
import threading
import json
from queue import Queue
port_p2p = '1789'
port_service = '1848'
base_url_p2p = 'https://localhost:' + port_p2p + '/chainweb/0.0/mainnet01'
[{"rowkey": "k:b4e753c510efbc02e73baf743a38197b3ef48077d376e3ad600903e15b9ded7c", "txid": 5413890, "rowdata": {"$base64": true, "encoded": "eyIkZCI6eyJndWFyZCI6eyIkdCI6ImciLCIkdiI6eyJwcmVkIjoia2V5cy1hbGwiLCJrZXlzIjpbImI0ZTc1M2M1MTBlZmJjMDJlNzNiYWY3NDNhMzgxOTdiM2VmNDgwNzdkMzc2ZTNhZDYwMDkwM2UxNWI5ZGVkN2MiXX19LCJiYWxhbmNlIjo1MDAwMH0sIiR2IjoxfQ=="}},
{"rowkey": "k:903e1eb7a04180ca6311dfb174541c51ed4ec20907bfe1d55849f82038839203", "txid": 5414570, "rowdata": {"$base64": true, "encoded": "eyIkZCI6eyJndWFyZCI6eyIkdCI6ImciLCIkdiI6eyJwcmVkIjoia2V5cy1hbGwiLCJrZXlzIjpbIjkwM2UxZWI3YTA0MTgwY2E2MzExZGZiMTc0NTQxYzUxZWQ0ZWMyMDkwN2JmZTFkNTU4NDlmODIwMzg4MzkyMDMiXX19LCJiYWxhbmNlIjo1MDAwMH0sIiR2IjoxfQ=="}},
{"rowkey": "k:87736aa881b83227861a0a9f78e642e490b9cddd049dff69ad1c45ba93d41b49", "txid": 5414646, "rowdata": {"$base64": true, "encoded": "eyIkZCI6eyJndWFyZCI6eyIkdCI6ImciLCIkdiI6eyJwcmVkIjoia2V5cy1hbGwiLCJrZXlzIjpbIjg3NzM2YWE4ODFiODMyMjc4NjFhMGE5Zjc4ZTY0MmU0OTBiOWNkZGQwNDlkZmY2OWFkMWM0NWJhOTNkNDFiNDkiXX19LCJiYWxhbmNlIjo1MD
# Images
CHAINWEB_NODE_IMAGE=ghcr.io/kadena-io/chainweb-node:sha-8a7ef72
# latest: ghcr.io/kadena-io/chainweb-node/ubuntu:latest
# openapi-validation: # ghcr.io/kadena-io/chainweb-node:sha-8a7ef72
MINING_CLIENT_IMAGE=ghcr.io/kadena-io/chainweb-mining-client:latest
# Ports that are exposed on the host system
HOST_SERVICE_PORT=8080
HOST_STRATUM_PORT=1917
@chessai
chessai / bench_report_no_simd.html
Last active April 19, 2023 22:10
Criterion Benchmark HTML reports (Just encoding right now)
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>criterion report</title>
<script>
/*!
* Chart.js v2.9.4
* https://www.chartjs.org
* (c) 2020 Chart.js Contributors
/nix/store/m1kb6fz7sbilmqw96w74aswgbqc9kiim-bash-4.4-p23-dev
/nix/store/dpiqx8km6kaf9v1kpavdmmy1yb149c98-bash-4.4-p23-doc
/nix/store/fky90f457av1jf9jlrlh7r60zcd8fpfs-bash-4.4-p23-info
/nix/store/mwvrsjsca4wbnwdggdn30bdmrc8ssxf3-bash-4.4-p23-man
/nix/store/qvm6bs79rsychid8xxwpyn23kapszmk5-bash-4.4-p23
/nix/store/128cyl1jys9nb3a373cx6j1mhx2rgpga-coreutils-8.31-info
/nix/store/sc8d93z8sc776j1qh1f8cq4y3cngmsbb-coreutils-8.31
/nix/store/hsgl306w10wnrqsmrjb3824g1bhx3n1c-gnused-4.8-info
/nix/store/wf9x52iznlnb9kq8i86dd1mx56j7f6mg-gnused-4.8
/nix/store/n6zydd3937r8fx2dppw10lhz4vsxjzpf-stdenv-darwin
//swiftlint:disable line_length type_name
//
// DO NOT EDIT THIS FILE
// IT HAS BEEN AUTOMATICALLY GENERATED
// BY THE FOLLOWING CODE: https://github.com/MercuryTechnologies/mercury-web-backend
// AT TIME: 2021-01-25T19:56:58 UTC
//
import Foundation
{-# language QuasiQuotes #-}
import Examples.Sudoku
import Text.RawString.QQ (r)
-- | The world's hardest sudoku problem, with only 4 starting numbers.
-- Found here: youtube.com/watch?v=hAyZ9K2EBF0
ultimateProblem :: String
ultimateProblem = [r|
.........
@chessai
chessai / haskell.hs
Created January 15, 2020 03:12
Swift typegen
data M (a :: k) = MkM
getShwifty ''M
data OneTyVar a = OneTyVar
{ one :: Either (Maybe a) (Maybe a)
, two :: Maybe (Maybe (Maybe (Maybe a)))
}
getShwifty ''OneTyVar
data K a = K { getK :: a, getInt :: Int }