Skip to content

Instantly share code, notes, and snippets.

View zarifpour's full-sized avatar
:shipit:
imposter

Daniel Zarifpour zarifpour

:shipit:
imposter
View GitHub Profile
@zarifpour
zarifpour / foundry_copy_abi.sh
Created November 7, 2025 16:10 — forked from PaulRBerg/foundry_copy_abi.sh
Shell function to copy an ABI from Foundry output directory
# Copy the ABI of a contract from the out directory to the clipboard
# Example: foundry_copy_abi SablierLockup out-optimized
function foundry_copy_abi() {
if [ -z "$1" ]; then
echo "Please provide a contract name"
echo "Usage: foundry_copy_abi <ContractName> [outDir]"
return 1
fi
local contract_name=$1
@zarifpour
zarifpour / default.md
Created June 22, 2025 12:34 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
{"query_result": {"id": 701464, "query_hash": "509cda0f1805d7ddcccb7d7b2a3d9245", "query": "-- EXPLAIN\n\nselect \nCASE\n WHEN (trim(top.contract) = '') IS NOT FALSE THEN 'Contract Creation'\n ELSE top.contract -- WHEN coalesce(trx.add, '') = '' THEN 'Contract Creation'\nEND AS Account,\n\n-- CASE\n-- WHEN (trim(top.contract) = '') IS NOT FALSE THEN 'Contract Creation'\n-- WHEN top.contract IS NOT NULL\n-- AND ds.longtext1 IS NOT NULL THEN ds.longtext1\n-- ELSE top.contract -- WHEN coalesce(trx.add, '') = '' THEN 'Contract Creation'\n-- END AS Entity,\n\nCASE\n WHEN (trim(top.contract) = '') IS NOT FALSE THEN 'Contract Creation'\n WHEN top.contract IS NOT NULL\n AND ds.longtext1 IS NOT NULL \n THEN ds.longtext1\n -- '<a target=\"_blank\" href=\"https://etherscan.io/address/' || '0x' || top.contract || '\">' || ds.longtext1 || '</a>' \n ELSE '0x' || substring(top.contract,1,6) || '....' || substring(top.contract,length(top.contract)-6,6)\n
import * as anchor from "@project-serum/anchor";
import {
Connection as solanaConnection,
PublicKey,
TransactionMessage,
} from "@solana/web3.js";
import * as multisig from "@sqds/multisig";
import "@wormhole-foundation/sdk-solana-ntt";
import { getNttProgram, NTT } from "@wormhole-foundation/sdk-solana-ntt";
import {
@zarifpour
zarifpour / metamask_and_rinkeby_eth.md
Created August 1, 2021 06:44 — forked from tschubotz/metamask_and_rinkeby_eth.md
Install Metamask and get Rinkeby ETH

This is a brief guide on how to set up Metamask and obtain Rinkeby testnet ETH from the faucet.

Setup Metamask

  • Open Metamask and setup your account