Skip to content

Instantly share code, notes, and snippets.

View CumpsD's full-sized avatar
👻
Polyglot Hacker.

David Cumps CumpsD

👻
Polyglot Hacker.
View GitHub Profile
@CumpsD
CumpsD / contemplative-llms.txt
Last active January 6, 2025 23:50 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@CumpsD
CumpsD / chainflip_ccm_broadcast.ts
Created March 6, 2025 09:53 — forked from olegpetroveth/chainflip_ccm_broadcast.ts
This can be used to broadcast a Chainflip signed payload and pay for gas using an EOA
import { ethers, Wallet } from "ethers";
// This can be used to broadcast a transaction stuck in Chainflip.
//
// One way this can happen is if a deposit channel's CCM payload has an insufficient gas limit.
// It can also happen if you transaction requires external state changes like an approval.
// Just run replace the privateKey and payload value and run `bun run ./script/chainflip/broadcast.ts` from root to broadcast the transaction
// `payload` can be found on CF's explorer swap page e.g. https://scan.chainflip.io/swaps/345692
const privateKey = "0x";