Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
BlinkyStitt / Keybase proof
Created March 29, 2024 17:14
Keybase proof
### Keybase proof
I hereby claim:
* I am blinkystitt on github.
* I am bwstitt (https://keybase.io/bwstitt) on keybase.
* I have a public key ASDZ27x4LzEitzFHSbTRT-fAhUOh11BqflAU2TdY5Sl_kAo
To claim this, I am signing this object:
@BlinkyStitt
BlinkyStitt / multicall.rs
Last active February 8, 2024 21:30
I'll make this into a proper PR. But figured I would share what I have so far now
use async_trait::async_trait;
use ethers::{
contract::{
multicall_contract::{Call3, Multicall3},
ContractError, Multicall,
},
providers::{Middleware, MiddlewareError},
types::{transaction::eip2718::TypedTransaction, Address, BlockId, Bytes},
};
use futures::{FutureExt, TryFutureExt};
Hide Details
PanicInfo {
payload: Any { .. },
message: Some(
Too many retries. Tried to read the return value from the `init` future but failed 200 times. Maybe the future containing `get_with`/`try_get_with` kept being aborted?,
),
location: Location {
file: "/root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/moka-0.12.1/src/future/value_initializer.rs",
from typing import Any, Dict, List, Optional, Union
import socket
import logging
from brownie import accounts as brownie_accounts, rpc
from brownie._config import CONFIG
from brownie.convert import to_address, to_int
from brownie.network import web3 as brownie_web3
from brownie.network.account import _PrivateKeyAccount, Account
from eip712.messages import EIP712Message, _hash_eip191_message
@BlinkyStitt
BlinkyStitt / gist:85017984e01d5cd6318342cefc8a4c89
Created January 7, 2023 08:29
this node is sitting essentially idle
ubuntu@i-028681daa10e7c454:~$ curl http://127.0.0.1:6060/debug/pprof/goroutine\?debug\=1
goroutine profile: total 3804
1533 @ 0x4637b6 0x47369c 0xd780aa 0x495221
# 0xd780a9 github.com/anacrolix/torrent.(*trackerScraper).Run.func1+0xc9 github.com/anacrolix/torrent@v1.47.0/tracker_scraper.go:207
900 @ 0x4637b6 0x47369c 0xd77f53 0x495221
# 0xd77f52 github.com/anacrolix/torrent.(*trackerScraper).Run+0x512 github.com/anacrolix/torrent@v1.47.0/tracker_scraper.go:249
627 @ 0x4637b6 0x47369c 0xd767d7 0xd77b93 0x495221
# 0xd767d6 github.com/anacrolix/torrent.(*trackerScraper).announce+0x216 github.com/anacrolix/torrent@v1.47.0/tracker_scraper.go:129
@BlinkyStitt
BlinkyStitt / SteamDeck emulator instructions.md
Last active December 29, 2022 20:40
Setting up your SteamDeck with EmuDeck

Optional

Required

  • A keyboard and mouse connected to the steam deck. Using the joysticks, track pad, and on-screen keyboard is way too slow and error-prone. See "Notes on USB devices and Accessories" at the bottom of this article for my recommendations.
  • A micro SD card. See "Notes on USB devices and Accessories" at the bottom of this article for my recommendations.

On a desktop or laptop

I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore21
Contributor # 138
Hash: ab197283 6d31f9af b75c60c2 b0eefdde
a2922082 7fbe7ded b77d98f4 f3551e5b
c089574a b067a921 812b15c6 733d21e8
b7bc1ae0 8509001b 16042c78 498d1edc
@BlinkyStitt
BlinkyStitt / gist:608d522ff68fd06ccc2d9c057ba4c206
Last active March 29, 2022 18:27
force debug_traceTransaction
import logging
from brownie import accounts, chain, network, web3
from brownie._config import CONFIG
from requests.exceptions import ReadTimeout
from time import sleep
from flashprofits.transaction_helpers import get_transaction
import brownie
import eth_abi
import pytest
from hexbytes import HexBytes
from flashprofits import weiroll
@pytest.fixture
def alice(accounts):
{5: [(19, 12, 10, 10, 10, 10)],
6: [(18, 15, 10, 10, 10, 10)],
7: [(18, 14, 12, 10, 10, 10),
(18, 12, 12, 12, 10, 10)],
8: [(16, 16, 14, 10, 10, 10),
(16, 16, 12, 12, 10, 10),
(16, 15, 14, 12, 10, 10),
(16, 15, 12, 12, 12, 10)],
9: [(16, 14, 14, 14, 10, 10),
(16, 14, 14, 12, 12, 10),