Skip to content

Instantly share code, notes, and snippets.

View 0x4a5e1e4baab's full-sized avatar
💭
Coding the next web

0x4a5e1e4baab

💭
Coding the next web
View GitHub Profile
@digitalknk
digitalknk / openclaw-guide.md
Last active February 26, 2026 22:58
Running OpenClaw Without Burning Money, Quotas, or Your Sanity

🚨 This guide has moved 🚨

The OpenClaw guide is now maintained as a proper repository with better structure and actionable examples.

New location: https://github.com/digitalknk/openclaw-runbook

⚠️ The gist version will no longer be updated. The repo includes:

  • Streamlined narrative guide
  • Copy-paste example templates
  • VPS setup instructions
# Create a new worktree and branch from within current git directory.
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga [branch name]"
exit 1
fi
local branch="$1"
local base="$(basename "$PWD")"
local path="../${base}--${branch}"
@AndrewMohawk
AndrewMohawk / Checks.md
Created July 12, 2024 00:31
CF checks

Make sure your domain currently points to the right nameservers:

In a terminal type: host -t ns <domain>

Make sure these match the nameservers YOU have set in squarespace.

Check in a browser

Check in incognito mode in chrome because it caches results.

# Dependencies
import websocket
import json
import time
from sortedcontainers import SortedDict
from decimal import Decimal
from web3 import Web3
import pandas as pd
import threading
@faddat
faddat / pebble-with-mev.bash
Last active December 3, 2024 08:08
use pebbledb and mev-tendermint on any cosmos chain
go mod edit -replace github.com/tendermint/tm-db=github.com/baabeetaa/tm-db@pebble
go mod tidy
go mod edit -replace github.com/tendermint/tendermint=github.com/notional-labs/mev-tendermint@0db69e64a2e87bb29b4417780da30630df97cadd
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./...
@snowkidind
snowkidind / dydx integration
Last active February 26, 2023 23:51
dydx nodejs typescript wrapper WIP
const { DydxClient } = require('@dydxprotocol/v3-client')
const Web3 = require('web3')
const web31 = new Web3(process.env.RPC_NODE)
const web32 = new Web3(process.env.RPC_NODE)
const signer1 = web31.eth.accounts.wallet.add(process.env.TRADING_ZERO_PVT_KEY)
const signer2 = web32.eth.accounts.wallet.add(process.env.TRADING_ONE_PVT_KEY)
const { dateutils } = require('../utils')
const { iso8601, dateNowUTC, timeFmtDb } = dateutils
@joeabbey
joeabbey / README.md
Last active February 28, 2022 20:25
Measuring Osmosis Epoch

Introduction

Osmosis is an automated market maker for interchain assets. Over the past 7 months, the adoption has continued to accelerate with nearly $1.5B in TVL as of the time of writing. Additionally, the AMM supports 33 unique assets and continues to add new assets as new chains join IBC.

Osmosis is unique from other Cosmos Chains with the implementation of an epochs module. The epochs module hooks the incentives and mint keepers to distribute various rewards once a day. With the growth of the network, increase in incentivized pools, the time to compute the epoch block and produce a NewHeight has increased to roughly 20 minutes.

New users are coming to Osmosis everyday and stay for its ease-of-use, access to many new assets, and incredible speed. The epoch block takes new users by surprise, and can be a negative experience. With more AMMs arriving in the IBC ecosystem, giving us

@0xYYY
0xYYY / RUG.md
Last active October 14, 2021 04:09
SaturnBeam Finance - A 10M USD RUG on Moonriver

A 10M USD RUG on Moonriver

Warning: The following analysis may contain incorrect information, please verify everything yourself before believing in these info.

Would be nice to have someone better in on-chain analysis to double check these.

Background

SatrunBeam Finance was a yield aggregator on Moonriver, a EVM-Compatible parachain on Kusama in the Polkadot ecosystem.

It attracted several millions of liquidity within a month. The team is anon and they claimed that the contracts are audited by BitRise whose domain name was only registered on 2022-08-22 (https://who.is/whois/bitriseaudits.com). And the contracts were never actually verified on the block explorer.

@kaustubhkapatral
kaustubhkapatral / delegation.sh
Last active April 24, 2022 19:43
Auto-delegation for cosmos based networks
#!/bin/bash -e
BINARY="" #Name of the cli binary to execute. eg - gaiacli, akashctl etc.
KEY="" #Name of the the key name
DENOM="" #Denomination of the token. eg - uatom, uakt etc.
MINIMUM_AMOUNT="" #Min amount to be delegated. If the reward is less than this number deleagtion will not ake place
VALIDATOR="" #Validator address to deleagte to
CHAIN_ID="" #Chain id of the nework
NODE="" #External node to connect to
FEE=""$DENOM #Fees to attach with the transaction.
@torfbolt
torfbolt / create-exit-transaction.sh
Last active March 14, 2023 09:10
Script to generate a voluntary exit transaction for an eth2 validator key generated with launchpad
#!/bin/bash
# Usage: ./create-exit-transaction.sh /path/to/validator/keystore.json
BASEDIR=/tmp/ethdo-tmp
WN=import-wallet
ETHDO="ethdo"
# this doesn't work well so far
# docker pull wealdtech/ethdo
# ETHDO="docker run --network=host -v /tmp:/tmp -it wealdtech/ethdo"