Skip to content

Instantly share code, notes, and snippets.

@ian0371
ian0371 / 23.04-hands-on.md
Last active April 14, 2023 02:28
Klaytn DevMeet 2023.04 hands-on

Klaytn DevMeet 2023.04 hands-on

Prerequisites

Explore hardfork numbers on-chain

# To use curl,
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"klay_getChainConfig", "params":["latest"],"id":1}' https://api.baobab.klaytn.net:8651
@ian0371
ian0371 / a_help-osx-borked-my-nix.md
Created November 4, 2023 05:04 — forked from meeech/a_help-osx-borked-my-nix.md
Some steps to (hopefully) help you fix your Nix install on OS X after an upgrade.

Apple Borked my Nix!

Ok, so you've had nix (home-manager) working fine. Then Apple tells you it's time to update.

Ok. Reboot. Oops. It has now broken your Nix setup. Here's some stuff to work through. YMMV.

Note: This is what worked for me, who was just using nix + home-manager. The upgrade that I last did that caused all these issues was 12.3.X > 12.4

Useful Links

@ian0371
ian0371 / debug_test.sh
Last active June 24, 2024 07:08
debug trace RPS measurement
#!/bin/bash
i=156607361
EN=http://localhost:8551/
while true; do
i=$((i + 128))
start=$(printf '0x%x' "$i")
end=$(printf '0x%x' "$((i + 127))")