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 / 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
@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 / 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]
#
@vitali2y
vitali2y / orange pi rv2 ubuntu 25.04 clean install instructions.md
Created August 3, 2025 20:46 — forked from peterdk/orange pi rv2 ubuntu 25.04 clean install instructions.md
Install clean Ubuntu Server 25.04 from official Ubuntu sources on the OrangePi RV2

Install clean Ubuntu Server 25.04 from official Ubuntu sources on the OrangePi RV2

Introduction

I got a Orange Pi RV2 recently, and it only was supplied with a pre-build Ubuntu Server image from a Chinese website. I did not like that too much. It also used Chinese mirrors, and I prefer to have full control over my install. This guide shows you how to build / install Ubuntu Server 25.04 from the official RISCV Ubuntu install media and the provided kernel sources for the RV2.

Approach

  • Build kernel .deb files (using a Ubuntu 22.04 x86 VM)
  • Install Ubuntu 25.04 RISCV using a RISCV VM and a NVME drive that we will use with the RV2.
  • Install kernel deb files, manage the DTB properly, configure some needed stuff
@vitali2y
vitali2y / rest-api-cheatsheet.md
Created July 19, 2025 17:29
REST API Cheat Sheet

REST API Cheat Sheet

REST Architectural Principles

  • Client-Server Architecture

    • Strict separation of concerns
    • Independent evolution of components
  • Statelessness

  • Complete context in requests

@vitali2y
vitali2y / log2tsv-aichat-llama-local-gemma-3n-e4b-gguf.md
Created July 9, 2025 19:47
Example of aichat + llama-cpp integration with using local gemma-3n-E4B-it-GGUF model

log2tsv.rs: aichat + llama-cpp + gemma-3n-E4B-it-GGUF

First terminal:

✗ grep -B 10 -A 3 gemma-3n ~/.config/aichat/config.yaml
  - type: openai-compatible
    name: local
    api_base: http://localhost:8000/v1
    api_key: ""
    # default_provider: local
@vitali2y
vitali2y / orange-pi-rv2-dmesg.md
Created May 2, 2025 20:53
dmesg output of Orange Pi RV2 SBC (Ubuntu Orangepirv2_1.0.0_ubuntu_noble_desktop_gnome_linux6.6.63.7z image from orangepi.org burned on SD Card)
[    0.000000] Linux version 6.6.63-ky (root@test) (riscv64-unknown-linux-gnu-gcc (g09b62c20e09) 13.2.1 20240423, GNU ld (GNU Binutils) 2.42) #1.0.0 SMP PREEMPT Wed Mar 12 09:04:00 CST 2025
[    0.000000] Machine model: ky x1 orangepi-rv2 board
[    0.000000] SBI specification v1.0 detected
[    0.000000] SBI implementation ID=0x1 Version=0x10003
[    0.000000] SBI IPI extension detected
[    0.000000] SBI RFENCE extension detected
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] efi: UEFI not found.
@vitali2y
vitali2y / scan-local-network.md
Created February 10, 2025 09:38
Scan all IPs connected to home network
➜  nmap -sn 192.168.1.1-254/24 | egrep "scan report" | awk '{print $5}'
OpenWrt.lan
vernee_m6.lan
greenway.lan
192.168.1.147
➜