Skip to content

Instantly share code, notes, and snippets.

View dzianisv's full-sized avatar
👨‍💻

Den dzianisv

👨‍💻
View GitHub Profile
@dzianisv
dzianisv / hb.json
Last active November 7, 2026 15:31
platform-guards scheduler heartbeat (public, no secrets): last trustworthy scheduled guard run
{"host":"gray-knight-m1.local","at":"2026-11-07T15:31:58Z","exit":1,"sha":"35551c688ac2baaa0a9b4de1e48e1a7821ce06da","guards":7,"clusters":2,"failed":["guard-alert-deliverability.ts","guard-gitops-drift.ts"]}
@dzianisv
dzianisv / gist:6c589fbe82107c843f9cb8505d8dfdbd
Created June 2, 2026 01:59
opencode-reflection: judge layer that catches premature AI agent stops (78% are premature — measured from 227 sessions)
# opencode-reflection
**78% of AI coding agent stops are premature.** I measured it from 227 real sessions.
The two dominant patterns:
- **Permission-seeking** (91/227): agent asks "Want me to run the tests?" when Bash is available
- **Stopped-with-todos** (68/227): lists "Next: create PR" and stops without doing it
This plugin fires on `session.idle` (OpenCode) or `Stop` hook (Claude Code), classifies the stop, and re-prompts with targeted feedback when the agent quit early.
@dzianisv
dzianisv / medium_import.html
Created February 6, 2026 22:15
Medium blog post about AI podcast automation
<!DOCTYPE html>
<html>
<head>
<title>How I Built a Fully Automated AI Podcast from Gmail Newsletters</title>
</head>
<body>
<article>
<h1>How I Built a Fully Automated AI Podcast from Gmail Newsletters</h1>
<p><em>From email to Spotify in minutes — no manual intervention required</em></p>
@dzianisv
dzianisv / compare-toml.py
Created September 13, 2023 16:58
compare-toml
import sys
import re
def preprocess(file):
with open(file, 'r') as f:
data = f.readlines()
return data
def compare_toml(old, new):
data1 = preprocess(old)
#!/usr/bin/env python3
import g4f
from g4f.Provider import *
import inspect
providers = [Ails,
You,
Bing,
Yqcloud,
Theb,
@dzianisv
dzianisv / stride.sh
Created July 14, 2023 07:33
Install and configure stride validator
#!/bin/sh
set -eu
if [ ! stride ]; then
git clone https://github.com/Stride-Labs/stride
fi
cd stride
git checkout v11.0.0
make install
@dzianisv
dzianisv / error.log
Last active June 4, 2023 12:16
armbian aarch64 microsoft speech sdk
Traceback (most recent call last):
File "/opt/AssistantPlato/./src/test.py", line 80, in <module>
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=audio_output_config)
File "/root/.local/share/virtualenvs/AssistantPlato-qjxu2X5g/lib/python3.10/site-packages/azure/cognitiveservices/speech/speech.py", line 2149, in __init__
_call_hr_fn(fn=_sdk_lib.synthesizer_create_speech_synthesizer_from_config, *[
File "/root/.local/share/virtualenvs/AssistantPlato-qjxu2X5g/lib/python3.10/site-packages/azure/cognitiveservices/speech/interop.py", line 62, in _call_hr_fn
_raise_if_failed(hr)
File "/root/.local/share/virtualenvs/AssistantPlato-qjxu2X5g/lib/python3.10/site-packages/azure/cognitiveservices/speech/interop.py", line 55, in _raise_if_failed
__try_get_error(_spx_handle(hr))
File "/root/.local/share/virtualenvs/AssistantPlato-qjxu2X5g/lib/python3.10/site-packages/azure/cognitiveservices/speech/interop.py", line 50, in __try_get_error
@dzianisv
dzianisv / armel-ldd.md
Last active May 15, 2023 09:19
Resilio Sync on Openwrt Snapshot
root@GoogleWifi:~# ldd /opt/bin/rslsync 
	/lib/ld-linux.so.3 (0xb6f12000)
	libpthread.so.0 => /lib/ld-linux.so.3 (0xb6f12000)
Error loading shared library libcrypt.so.1: No such file or directory (needed by /opt/bin/rslsync)
	librt.so.1 => /lib/ld-linux.so.3 (0xb6f12000)
	libdl.so.2 => /lib/ld-linux.so.3 (0xb6f12000)
	libm.so.6 => /lib/ld-linux.so.3 (0xb6f12000)
	libc.so.6 => /lib/ld-linux.so.3 (0xb6f12000)
Error loading shared library ld-linux.so.3: No such file or directory (needed by /opt/bin/rslsync)
@dzianisv
dzianisv / regiester_neutron_validator_binary.sh
Last active May 11, 2023 14:04
Register Cosmos Consumer Chain Validator
#!/bin/bash
set -euo pipefail
``
OS=$(uname -s)
ARCH=$(uname -m)
require_gaiad() {
if command -v gaiad &> /dev/null; then
return 0
@dzianisv
dzianisv / etc_init.d_setup-vpn-routing
Last active November 3, 2022 12:18
OpenWRT setup vpn routing script
#!/bin/sh /etc/rc.common
START=90
USE_PROCD=1
PROG=/usr/bin/setup-vpn-routing
start_service() {
procd_open_instance setup-vpn-routing
procd_set_param command "$PROG"
procd_close_instance
}