Skip to content

Instantly share code, notes, and snippets.

https://pooltogether.com/interfaces - no loss lottery. its like a lottery but the tickets can be returned for their price. you only spend the interest! Put a small amount in and forget about. Prizes are claimed automatically.

https://ycrv.yearn.fi/app/stake - earn yield from like all of yearn's products in one spot in a stablecoin or compounding into the liquid staking token. Being off peg just makes it an even better buying opportunity if you want to have your coins sit somewhere for the long term.

https://yearn.fi/vaults/1/0xfBd4d8bf19c67582168059332c46567563d0d75f - the safest yield in defi. put USDC or USDT into a DEX (curve.finance) and then earn trading fees as well as incentives (CRV sold automatically for more USDC/USDT).

https://1up.tokyo/stake - earn even more yield (in discount YFI) from your deposits in

import {
HubEventType,
getInsecureHubRpcClient,
getSSLHubRpcClient,
} from "@farcaster/hub-nodejs";
// TODO: a real app should get these from environment variables
const HUB_URL = process.env["HUB_URL"]!; // URL + Port of the Hub
// TODO: a real app would use encryption, but the rust client doesn't support it yet
const USE_SSL = false; // set to true if talking to a hub that uses SSL (3rd party hosted hubs or hubs that require auth)
@BlinkyStitt
BlinkyStitt / post-commit
Created May 20, 2024 17:41
~/.git-hooks/post-commit
#!/bin/bash
echo "🧘 Breath in. 🧘 Breath out. 🧘 Say cheese! 😁"
# Directory to store images and repo names
STORAGE_DIR="$HOME/Library/Mobile Documents/com~apple~CloudDocs/Documents/Gitshots"
# Ensure the storage directory exists
mkdir -p "$STORAGE_DIR"
@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/[email protected]/tracker_scraper.go:207
900 @ 0x4637b6 0x47369c 0xd77f53 0x495221
# 0xd77f52 github.com/anacrolix/torrent.(*trackerScraper).Run+0x512 github.com/anacrolix/[email protected]/tracker_scraper.go:249
627 @ 0x4637b6 0x47369c 0xd767d7 0xd77b93 0x495221
# 0xd767d6 github.com/anacrolix/torrent.(*trackerScraper).announce+0x216 github.com/anacrolix/[email protected]/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