Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am sbidoul on github.
  • I am sbi (https://keybase.io/sbi) on keybase.
  • I have a public key whose fingerprint is DC38 4938 7DFA 37D5 0CCB 1170 ABC7 BD81 24E1 2FC7

To claim this, I am signing this object:

@sbidoul
sbidoul / port-pr.py
Last active August 6, 2025 15:10
Port a PR to another branch
#!/usr/bin/python3
import json
import argparse
import os
import re
import shlex
import shutil
import subprocess
import tempfile
import textwrap
import atexit
import subprocess
import sys
import tempfile
import textwrap
from pathlib import Path
import shlex
from rich import print
@sbidoul
sbidoul / dalibo-explain
Last active August 7, 2025 08:23
EXPLAIN a sql query in a kubernetes pod and open the result on explain.dalibo.com.
#!/usr/bin/env -S uv run --script
"""EXPLAIN a sql query in a kubernetes pod and open the result on explain.dalibo.com."""
# /// script
# requires-python = ">=3.9"
# dependencies = [
# "requests",
# ]
# ///