Skip to content

Instantly share code, notes, and snippets.

View prettyirrelevant's full-sized avatar
💭
???

Isaac Adewumi prettyirrelevant

💭
???
View GitHub Profile
@prettyirrelevant
prettyirrelevant / RESULTS.md
Created January 27, 2026 18:42
sqlite index benchmark: composite vs single-column indexes for event_metrics (rotki PR #11464)

sqlite index benchmark for event_metrics

comparing composite indexes from rotki PR #11464 against existing single-column indexes.

indexes

baseline (existing):

CREATE INDEX idx_event_metrics_event ON event_metrics(event_identifier);
CREATE INDEX idx_event_metrics_location_label ON event_metrics(location_label);
@prettyirrelevant
prettyirrelevant / RESULTS.md
Last active January 27, 2026 18:36
sqlite index benchmark: composite vs single-column indexes for event_metrics (rotki PR #11464)

sqlite index benchmark for event_metrics

comparing composite indexes from rotki PR #11464 against existing single-column indexes.

indexes

baseline (existing):

CREATE INDEX idx_event_metrics_event ON event_metrics(event_identifier);
CREATE INDEX idx_event_metrics_location_label ON event_metrics(location_label);
@prettyirrelevant
prettyirrelevant / RESULTS.md
Created January 27, 2026 18:18
Benchmark: SQLite composite indexes vs single-column indexes for event_metrics table (rotki PR #11464)

SQLite Index Benchmark: Composite vs Single-Column

Benchmark comparing composite indexes (from rotki PR #11464) against single-column indexes for the event_metrics table.

Index Configurations

Single-Column Indexes (Baseline)

CREATE INDEX idx_em_event ON event_metrics(event_identifier);
CREATE INDEX idx_em_metric_key ON event_metrics(metric_key);
@prettyirrelevant
prettyirrelevant / test_etherscan_url_limit.py
Last active January 19, 2026 14:33
Test Etherscan eth_call URL limits for token balance queries
#!/usr/bin/env python3
"""
Test max token addresses for Etherscan eth_call before HTTP 414.
Usage: python test_etherscan_url_limit.py --api-key YOUR_KEY
Or set ETHERSCAN_API_KEY env variable.
"""
import argparse
import os
import sys

Keybase proof

I hereby claim:

  • I am prettyirrelevant on github.
  • I am isaacadewumi (https://keybase.io/isaacadewumi) on keybase.
  • I have a public key ASDGsfNVXfD7VEWRblNosg34ofocJlNHQKv8wgwe3zwNHQo

To claim this, I am signing this object:

import math
from pathlib import Path
import numpy as np
from PIL import Image
import imageio.v3 as iio
from pillow_heif import register_heif_opener
register_heif_opener()
@prettyirrelevant
prettyirrelevant / kuda.py
Last active April 9, 2024 07:42
Python module to extra information from Kuda's bank statement
import pandas as pd
from decimal import Decimal
def clean_currency(value):
"""Removes currency symbol and commas, then converts to `Decimal`."""
if isinstance(value, Decimal):
return value
value = value.replace("₦", "").replace(",", "")
@prettyirrelevant
prettyirrelevant / inec_scraper.py
Last active November 9, 2022 14:38
Scrapes INEC's website to retrieve all polling units in the country.
import asyncio
import json
from typing import Any, Dict, List, Tuple
import aiohttp
from bs4 import BeautifulSoup
async def main() -> None:
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False)) as session:

Keybase proof

I hereby claim:

  • I am prettyirrelevant on github.
  • I am prettirrelevant (https://keybase.io/prettirrelevant) on keybase.
  • I have a public key ASABEQnY-rA-tXEkTvlki_bT2lTZhfZ9eYKktDeA4z8m4Ao

To claim this, I am signing this object:

package main
import (
"errors"
"fmt"
)
type KeyValueSlice map[string]float64
func main() {