Skip to content

Instantly share code, notes, and snippets.

@o-az
o-az / cli.mjs
Created December 19, 2025 14:38
#!/usr/bin/env node --experimental-strip-types --no-warnings
var Ix=Object.create;var{getPrototypeOf:Lx,defineProperty:Z0,getOwnPropertyNames:Kx}=Object;var Ux=Object.prototype.hasOwnProperty;var h=(b,B,A)=>{A=b!=null?Ix(Lx(b)):{};let C=B||!b||!b.__esModule?Z0(A,"default",{value:b,enumerable:!0}):A;for(let g of Kx(b))if(!Ux.call(C,g))Z0(C,g,{get:()=>b[g],enumerable:!0});return C};var _0=(b,B)=>()=>(B||b((B={exports:{}}).exports,B),B.exports);var M=_0((g1,o)=>{var k=process||{},q0=k.argv||[],j=k.env||{},Yx=!(!!j.NO_COLOR||q0.includes("--no-color"))&&(!!j.FORCE_COLOR||q0.includes("--color")||k.platform==="win32"||(k.stdout||{}).isTTY&&j.TERM!=="dumb"||!!j.CI),Hx=(b,B,A=b)=>(C)=>{let g=""+C,f=g.indexOf(B,b.length);return~f?b+Wx(g,B,A,f)+B:b+g+B},Wx=(b,B,A,C)=>{let g="",f=0;do g+=b.substring(f,C)+A,f=C+B.length,C=b.indexOf(B,f);while(~C);return g+b.substring(f)},w0=(b=Yx)=>{let B=b?Hx:()=>String;return{isColorSupported:b,reset:B("\x1B[0m","\x1B[0m"),bold:B("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:B("\x1B[2m","
└── apps
└── contract-verification
├── reset.d.ts
├── .env.example
├── container
├── tsconfig.json
├── compiler.ts
└── index.ts
├── scripts
├── local-d1.sh
#!/usr/bin/env bash
set -euo pipefail
TEMPO_RPC_URL="https://rpc-orchestra.testnet.tempo.xyz"
# NOTE: This is a throaway PK created for this test
PRIVATE_KEY=${PK:-"0xa4b3490c35582d544451fbbfd7a0e4c5fa4d0ded06563ccc199057c7a5e6c9de"}
VERIFIER_URL=${VERIFIER_URL:-"https://contracts.tempo.xyz"}
TEMP_DIR=$(mktemp -d)
@o-az
o-az / amp.md
Created December 16, 2025 23:15
flowchart LR
    %% Data Sources
    Node["EVM Node (Local or RPC)"]

    %% AMP Core
    subgraph AMP["AMP Indexer"]
        Extract["Block and Log Extraction (Parallel)"]
        Raw["Raw EVM Datasets Parquet in Object Storage"]
 Compact["Compaction Optimized Parquet"]
<h1 id="evm-benchmark-results">EVM Benchmark Results</h1>
<p><em>Times shown are per-execution averages from 1 internal runs per benchmark.</em></p>
<table>
<thead>
<tr>
<th>Benchmark</th>
<th>Guillotine (ms)</th>
<th>REVM (ms)</th>
<th>ethrex (ms)</th>
<th>Guillotine-Rust (ms)</th>

Self-Hosting Sourcify for Custom Chains

I initially followed the guide here: https://docs.sourcify.dev/docs/running-server.

I encountered some issues so I'm writing this guide based off-of the original one.

Prerequisites

  • PostgreSQL 16+
  • Node.js LTS
@o-az
o-az / comare-9-agents.md
Last active December 7, 2025 05:54
Comparing 9 coding agents and asking them to rank each other.

can u open http:​//localhost:4434 n a browser and take a screenshot? dev server already up


Claude Code
@o-az
o-az / AGENTS.md
Last active November 14, 2025 13:55
tell your agent to wrap any command it runs with `command.sh`
  • Critical: when running any command, always wrap it with ~/dev/commands/command.sh in the following format:

    /bin/bash ~/dev/commands/command.sh --timeout 30 <command>

    Examples:

    • /bin/bash ~/dev/commands/command.sh --timeout 30 wrangler dev
  • /bin/bash ~/dev/commands/command.sh --timeout 30 bun dev

import * as React from 'react'
import { Porto, Mode } from 'porto'
import { WebView } from 'react-native-webview'
const porto = Porto.create({
mode: Mode.reactNative(),
})
const injected = /* javascript */ `
(function () {