Skip to content

Instantly share code, notes, and snippets.

View clevinson's full-sized avatar

Cory Levinson clevinson

View GitHub Profile
@clevinson
clevinson / fair_sailing.ipynb
Created July 31, 2026 15:39
FAIR Sailing - ESIP 2026
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "markdown",
"id": "35851e54",
"metadata": {},
"source": [
"\n",
"# HLY1003 — USCGC *Healy*, 7–27 September 2010\n",
"\n",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@clevinson
clevinson / environment.yaml
Last active July 28, 2025 04:25
ipfs/zarr smoketest
name: zarripfs
channels:
- conda-forge
- defaults
dependencies:
- fsspec
- pandas
- xarray
- python=3.13
- hvplot

0x1f7ec12e77ea39e5da9a1d75b5a0d21105a6b36c0649fbaf7bcd435ab8a3992c

Apr 09 17:05:05 ip-172-31-40-188 regen[753]: panic: signature verification failed; please verify account number (0) and chain-id (regen-devnet-5): unauthorized
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: goroutine 1 [running]:
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk/x/genutil.DeliverGenTxs(0x20aef40, 0xc00003e048, 0x20c4c80, 0xc00007f300, 0x0, 0x0, 0xc00108c710, 0xe, 0x0, 0x0, ...)
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk@v0.42.0-rc0/x/genutil/gentx.go:113 +0x328
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk/x/genutil.InitGenesis(...)
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk@v0.42.0-rc0/x/genutil/genesis.go:18
Apr 09 17:05:05 ip-172-31-40-188 regen[31857]: github.com/cosmos/cosmos-sdk/x/genutil.AppModule.InitGenesis(0x20a9440, 0xc00015d200, 0x2071d60, 0xc000d79600, 0xc001093c40, 0x7f7758837158, 0xc00101a2c0, 0x20aef40, 0xc00003e048, 0x20c4c80, ...)
Apr 09 1
const connectToKeplr = async (): Promise<any> => {
if (window.keplr) {
window.keplr
.experimentalSuggestChain({
// Chain-id of the Regen chain.
chainId,
// The name of the chain to be displayed to the user.
chainName: 'Regen Devnet',
// RPC endpoint of the chain.
rpc: 'http://devnet.regen.network:26657',
alias simd='/path/to/simd'
SIMD_HOME=$(pwd)/.simd
CHAIN_ID=test-chain
##### Setup moniker, chain, homedir
simd init cory --chain-id $CHAIN_ID --home $SIMD_HOME
window.keplr.experimentalSuggestChain({
// Chain-id of the Cosmos SDK chain.
chainId: "regen-devnet-4",
// The name of the chain to be displayed to the user.
chainName: "Regen Devnet",
// RPC endpoint of the chain.
rpc: "http://devnet.regen.network:26657",
// REST endpoint of the chain.
rest: "https://devnet.regen.network",
// Staking coin information
@clevinson
clevinson / test.go
Last active November 23, 2020 23:48
Failing test from coinbase team when updating to v0.40.0-rc2 from v0.40.0-rc1
func TestFoo(t *testing.T) {
parsedMsg := &types.MsgCreateValidator{}
msg := `{"type":"cosmos-sdk/MsgCreateValidator","value":{"description":{"moniker":"tuba","identity":"asd123","website":"hi.com","details":"tuba123"},"commission":{"rate":"1.000000000000000000","max_rate":"1.000000000000000000","max_change_rate":"0.500000000000000000"},"min_self_delegation":"1000000","delegator_address":"cosmos12dfh66m5m2xq9qdqvu90u4n8lqnep8ymesu95a","validator_address":"cosmosvaloper12dfh66m5m2xq9qdqvu90u4n8lqnep8ymuygscw","pubkey":"cosmosvalconspub1zcjduepq3vqv2yeqju6jrf29trwz2zl8fy3lmamzgllsw8t224spal8mvpssenzes5","value":{"denom":"umuon","amount":"1000000"}}}`
cdc := makeAminoMarshaler()
err := cdc.UnmarshalJSON([]byte(msg), parsedMsg)
fmt.Println(err)
fmt.Println(parsedMsg)
}
// [Error Msg]: cannot parse disfix JSON wrapper: json: cannot unmarshal string into Go value of type amino.disfixWrapper