Skip to content

Instantly share code, notes, and snippets.

View dconroy's full-sized avatar

David Conroy dconroy

View GitHub Profile
@dconroy
dconroy / aptos-oidb-zk-ceremony_attestation.log
Created February 26, 2024 22:49
Attestation for aptos-oidb-zk-ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm dconroy-4235274 and I have contributed to the aptos-oidb-zk-ceremony.
The following are my contribution signatures:
Circuit # 1 (main)
Contributor # 100
Contribution Hash: bc10e21f ab408ebf e472c7c6 e6cdfa73
49bcbe21 9f6cd08e 31a59384 db4ec8f3
33577cfa 4a056225 4165fc5b e4e477e2
bcabe5a9 92ce6742 9c83155c e57bbfa0
@dconroy
dconroy / gist:b72978f634aea086a80678a6c821c3a0
Created February 6, 2024 16:26
OVH Scale A5 - Aptos Validator Benchmark results
Scale A5
AMD EPYC GENOA 9554 - 64c/128t - 3.1GHz/3.75GHz
ubuntu 22.04 LTS
kernel 6.5.0-15-generic
tuned-adm profile throughput-performance
Results:
{"grep": "grep_json_single_node_perf", "transaction_type": "token-v2-ambassador-mint", "module_working_set_size": 20, "executor_type": "VM", "block_size": 6800, "expected_tps": 6800, "waived": false, "tps": 9470.480458697759, "gps": 104175.28504567535, "gpt": 11.0, "code_perf_version": "v4", "test_index": 41}
transaction_type module_working_set executor block_size expected t/s t/s
@dconroy
dconroy / gist:4b462832843f911f4a145071ce673155
Created February 6, 2024 16:25
Aptos Validator Benchmark Scale A5 AMD EPYC GENOA 9554 - 64c/128t - 3.1GHz/3.75GHz
Scale A5
AMD EPYC GENOA 9554 - 64c/128t - 3.1GHz/3.75GHz
ubuntu 22.04 LTS
kernel 6.5.0-15-generic running
sudo tuned-adm profile throughput-performance
Results:
{"grep": "grep_json_single_node_perf", "transaction_type": "token-v2-ambassador-mint", "module_working_set_size": 20, "executor_type": "VM", "block_size": 6800, "expected_tps": 6800, "waived": false, "tps": 9470.480458697759, "gps": 104175.28504567535, "gpt": 11.0, "code_perf_version": "v4", "test_index": 41}
transaction_type module_working_set executor block_size expected t/s t/s
@dconroy
dconroy / gist:f355b7d3f11d6d865fbd955321c3e42e
Created February 6, 2024 16:03
Aptos Validator Benchmark results
{"grep": "grep_json_single_node_perf", "transaction_type": "token-v2-ambassador-mint", "module_working_set_size": 20, "executor_type": "VM", "block_size": 6800, "expected_tps": 6800, "waived": false, "tps": 9380.630973777212, "gps": 103186.94071154932, "gpt": 11.0, "code_perf_version": "v4", "test_index": 41}
transaction_type module_working_set executor block_size expected t/s t/s
--------------------------------------- -------------------- ---------- ------------ -------------- -----
warmup 1 VM 10000 0 18536
no-op 1 VM 10000 24000 32900
no-op 1000 VM 3600 3600 4875
coin-transfer 1 VM 10000 15000 20519
coin-transfer

0x07d3e5ed1c93e19e7409d98bdf8b441fc17ca8d16af9ae2669ef28a5367d058e

@dconroy
dconroy / get-pokt-balance.js
Last active February 13, 2022 16:18
Simple Get Balance Query on Pokt Network
const PocketJS = require('@pokt-network/pocket-js');
const { Pocket, Configuration, HttpRpcProvider, PocketAAT } = PocketJS;
// The dispatcher provides information about your Pocket session so that your
// application can then connect to the decentralized network of nodes.
// You can use one of our dispatchers or any node connected to the Pocket blockchain.
const dispatchURL = new URL("https://node1.mainnet.pokt.network:443")
const rpcProvider = new HttpRpcProvider(dispatchURL)
@dconroy
dconroy / script-template.sh
Created December 15, 2020 18:06 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@dconroy
dconroy / updateTags.js
Last active January 1, 2020 02:51
Query mongo collection for hashtags, update collection with tag field
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
function queryArtwork() {
MongoClient.connect(url, function (err, db) {
if (err) throw err;
var dbo = db.db("streettagged");
dbo.collection("artworks").find({
isActive: true,
about: /#/ //find posts that have hashtags in the description
@dconroy
dconroy / get-moderation-level.js
Last active September 24, 2019 03:05
rekognition script
var rekognition = new AWS.Rekognition({apiVersion: '2016-06-27'});
var params = {
Image: { /* required */
S3Object: {
Bucket: 'street-art-uploads',
Name: 'sam.png'
}
},
MinConfidence: '50'
@dconroy
dconroy / keybase.md
Created April 16, 2019 01:54
keybase.md

Keybase proof

I hereby claim:

  • I am dconroy on github.
  • I am dconroy (https://keybase.io/dconroy) on keybase.
  • I have a public key ASDEjtLS6YGRin8_qJx4KFfw-iUO76slOP7JrXFA5SjQwgo

To claim this, I am signing this object: