Skip to content

Instantly share code, notes, and snippets.

View vitali2y's full-sized avatar
🏠
/me @ ~/

Vitaliy Yermolenko vitali2y

🏠
/me @ ~/
View GitHub Profile
@vitali2y
vitali2y / multiline.patch
Created April 18, 2026 07:57
Multiline support for ZeroClaw Personal AI Assistant (https://github.com/zeroclaw-labs/zeroclaw.git )
diff --git a/src/agent/loop_.rs b/src/agent/loop_.rs
index c156175e..e673211d 100644
--- a/src/agent/loop_.rs
+++ b/src/agent/loop_.rs
@@ -4070,384 +4070,403 @@ pub async fn run(
vec![ChatMessage::system(&system_prompt)]
};
+ let mut input_buffer: Vec<String> = Vec::new();
+
@vitali2y
vitali2y / build-local-zeroclaw-wiki.md
Created April 7, 2026 08:41
Building local ZeroClaw wiki

Below is an example how to build local ZeroClaw wiki (as it is on ZeroClaw official wiki):

➜  git clone https://github.com/zeroclaw-labs/zeroclaw.wiki.git && cd zeroclaw.wiki
➜  zeroclaw.wiki git:(master) ✗ cd src && ln -s Home.md SUMMARY.md && cd -
➜  zeroclaw.wiki git:(master) ✗ ./transform_links.sh -d src
Transformed: src/09.1-Memory-Backends.md
Transformed: src/09.2-Hybrid-Search.md
~...~
Transformed: src/07.1-Agent-Turn-Cycle.md
Transformed: src/12.3-Testing.md

Upgrading greenall (Linux Mint 22.3)

Doc updated @ 27 Mar, 2026

  1. Partitioning:
vit@greenall:~$ cat /etc/fstab
~...~
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme1n1p2 during installation
@vitali2y
vitali2y / cli-online-radio.md
Last active March 4, 2026 06:57
CLI Online Radio
mpv https://online.nasheradio.ua/NasheRadio  # Наше Радио
mpv https://online.hitfm.ua/HitFM  # Хіт FM
mpv https://radio.ukr.radio/ur1-mp3  # UA: Українське радіо
mpv https://online.kissfm.ua/KissFM  # Kiss FM
mpv https://icecastdc.luxnet.ua/lux  # Lux FM
mpv http://91.218.212.84:8000/radionv.mp3  # Radio NV
mpv https://cast.mediaonline.net.ua/radiopyatnica320  # Радио Пятница
mpv https://online.melodiafm.ua/MelodiaFM  # Мелодия FM
mpv https://online.radiorelax.ua/RadioRelax  # Радио Relax
@vitali2y
vitali2y / microgpt_rust.md
Created February 14, 2026 00:32
Rust port of Karpathy's MicroGPT

Rust port of Karpathy's MicroGPT

Cargo.toml:

[package]
name = "microgpt"
version = "0.1.0"
edition = "2024"
@vitali2y
vitali2y / save-fb-video-in-two-steps.md
Created January 26, 2025 22:43
Save FB Video In Two Steps

Open FB video (for example walking on the water), then:

  1. open DevTools (F12), then Network tab, watch for calling two GET URLs one-by-one, each with .mp4 inside: first is video without audio, second is just audio (both you can Open in New Tab) - so do Copy As cURL for both, and execute them as below (assuming 1.mp4 and 1.mp3 for both video and audio correspondently):

    IMPORTANT: it's required to remove 2 HTML params from the end of URLs: &bytestart=XXX&byteend=YYY!

    curl --output 1.mp4 https://scontent.xx.fbcdn.net/o1/v/t2/f2/m69/AQO...Kq9.mp4\?strext\=1\&_nc_cat\=108\&_nc_sid\=...&oe\=679C6293
    curl --output 1.mp3 https://scontent.xx.fbcdn.net/o1/v/t2/f2/m69/AQP...HqV.mp4\?strext\=1\&_nc_cat\=1\&_nc_sid\=&oe\=679C8E9F
    
  2. merging downloaded 1.mp4 video and 1.mp3 audio into the final output.mp4 as below:

@vitali2y
vitali2y / simple-opirv2-router-boot-dmesg.md
Created December 10, 2025 13:25
Minimal home WiFi/wired router @ Orange Pi RV2 SBC (booting & dmesg)
U-Boot 2022.10-k1 (Nov 02 2025 - 09:53:07 +0000)

[   0.516] CPU:   rv64imafdcv
[   0.519] Model: spacemit k1-x deb1 board
[   0.523] DRAM:  DDR size = 8192 MB
[   0.526] DDR size = 8192 MB
[   0.529] DDR size = 8192 MB
[   0.532] 8 GiB
[   0.593] reset driver probe start 
@vitali2y
vitali2y / build-lrzsz-riscv64.sh
Created November 23, 2025 20:32
Cross-compile lrzsz for Orange Pi RV2 (RISC-V 64) SBC
#!/usr/bin/env bash
#
# Cross-compile lrzsz-0.12.21rc (lrz & lsz) for Orange Pi RV2 (RISC-V 64)
#
set -euo pipefail
PRJ="lrzsz"
LRZSZ_URL="https://github.com/UweOhse/${PRJ}.git"
@vitali2y
vitali2y / install.sh
Last active November 21, 2025 21:04
Orange Pi RV2 Router Setup Script
#!/bin/sh
#
# Orange Pi RV2 Router Setup Script @ Irradium (CRUX)
# https://dl.irradium.org/irradium/images/orange_pi_rv2/
#
# Usage:
# curl -fsSL <shorturl> > install.sh && sudo sh ./install.sh [wifi_ssid]
#