Skip to content

Instantly share code, notes, and snippets.

View agcom's full-sized avatar

Alireza Ghasemi agcom

View GitHub Profile
@agcom
agcom / ainit.py
Created July 15, 2025 03:37
Python Simple AsyncIO Object Initialization
import asyncio
class Test:
def __init__(self) -> None:
print("__init__")
async def __ainit__(self) -> None:
print("__ainit__")
@agcom
agcom / compose.yaml
Last active September 2, 2024 03:39
Docker Compose NATS health-check
services:
nats:
image: nats:2.10.16-alpine3.19
command: -m 8222
healthcheck:
test: wget http://localhost:8222/healthz -q -S -O -
start_period: 3s
retries: 3
timeout: 3s
interval: 14s