Skip to content

Instantly share code, notes, and snippets.

# Get version
nekufa@fasiga ~ % kubectl describe pod nats-2 -n wfm-test | grep Image
Image: nats:2.7.2-alpine
Image ID: docker-pullable://nats@sha256:8b3fb2423a8cce4607ef30a990b35545afe0a3c613cd05b8eec7b483df268b1d
Image: natsio/nats-server-config-reloader:0.6.2
Image ID: docker-pullable://natsio/nats-server-config-reloader@sha256:ad0374303b134b7d2d4a5a781107b426739df73fcf504c26c5ef15bc1c4ca10e
Image: natsio/prometheus-nats-exporter:0.9.0
Image ID: docker-pullable://natsio/prometheus-nats-exporter@sha256:cbeecd2159da4705dcde1b834f8efb97b3acd7a1be6fc393fe0cd2644fc30b50
nekufa@fasiga ~/software/wfm % yc container repository lifecycle-policy create --repository-name crpf255p88b3bourvm4f --rules ./rules.json
id: crp6l3eg11h899i55cjt
repository_id: crp4dn6lp7isk8p11t3l
status: DISABLED
created_at: "2023-03-02T08:13:12.555327449Z"
rules:
- description: keep weekly tags not less 8 images
expire_period: 604800s
tag_regexp: .*
retained_top: "8"
class Response:
data: list
async def get_data():
# we have 250k rows of lists with 7 tuples - str and int
return []
async def handler_empty():
await get_data(); # 2 sec
return {'data': []} # 0 sec
@nekufa
nekufa / tester.py
Last active September 4, 2023 10:16
from types import GenericAlias
from typing import get_type_hints
async def tester(param: list[str]):
return [
x + '!' for x in param
]
@nekufa
nekufa / env.py
Created September 4, 2023 12:15
import re
from inspect import getmembers, isclass
from os import path
from posixpath import abspath
from schemas import settings
base = settings.BaseSettings.schema()
info = ''
toc = ''
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/114/governor_loop I> configuring replication
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/114/governor_loop I> calling proc_replication, is_master: true, instance_name: default_1_1
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/104/interactive I> self-activated successfully
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/104/interactive I> starting postgres server at ("127.0.0.1", 4327)...
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/122/pgproto I> creating statement storage with capacity 1024
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/122/pgproto I> creating portal storage with capacity 1024
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/104/interactive I> skipped luaL_loadfile due to picodata callback
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main I> entering the event loop
cycle-postgres-1 | 2025-03-21 12:29:05.146 [1] main/110/.proc_replication I> connecting to 1 replicas
cycle-postgres-1 | 20