Skip to content

Instantly share code, notes, and snippets.

View stivio00's full-sized avatar
👾
Hey!

Stephen Krol stivio00

👾
Hey!
View GitHub Profile
#!/usr/bin/env python3
"""
Usage: db-tool-py test.yaml
It will run each query with the correponding db and sql, if not provided it will use the global values
To install deps
$pip install pydantic pyyaml pandas typer sqlalchemy pyodbc jinja2
Simple case query the same db with two queries:
scan:
@stivio00
stivio00 / ImageProcessingBenchmark.cs
Last active June 27, 2025 06:15
Image decoding and cropping benchmarks
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using ImageMagick;
using OpenCvSharp;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SkiaSharp;
namespace ImageProcessingBenchmark;
@stivio00
stivio00 / docker_import.py
Created September 18, 2025 16:24
Docker context import script
from pathlib import Path
import subprocess
import click
import os
import sys
REQUIRED_FILES = ["cert.pem", "ca.pem", "key.pem"]
def get_user_data_dir(app_name: str) -> Path:
"""