Skip to content

Instantly share code, notes, and snippets.

View kesor's full-sized avatar
🏠
Working from home

Evgeny Zislis kesor

🏠
Working from home
View GitHub Profile
@kesor
kesor / Dockerfile
Last active April 26, 2026 12:26
Compile DENO on Alpine (w/MUSL C)
FROM rust:alpine
RUN apk add --no-cache \
bash \
binutils-gold \
ca-certificates \
clang \
curl \
g++ \
git \
@kesor
kesor / tmux-sessions.sh
Created March 29, 2026 16:07
single key click session switcher
#!/usr/bin/env bash
fetch_tmux_sessions() {
# list session ids and names, each on a new line, ordered by session_id
tmux list-sessions -F "#{session_id} #{session_name}" | sort -n
}
# read tmux sessions into an array
mapfile -t SESSIONS < <(fetch_tmux_sessions)
declare -A KEY_SESSION_ID_MAP
@kesor
kesor / openclaw-architecture.html
Last active March 26, 2026 16:43
OpenClaw Architecture Presentation
<!DOCTYPE html><html lang="en-US"><head><title>OpenClaw 🦞 Architecture</title><meta property="og:title" content="OpenClaw 🦞 Architecture"><meta charset="UTF-8"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"><meta name="apple-mobile-web-app-capable" content="yes"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta property="og:type" content="website"><meta name="twitter:card" content="summary"><style>@media screen{body[data-bespoke-view=""] .bespoke-marp-parent>.bespoke-marp-osc>button,body[data-bespoke-view=next] .bespoke-marp-parent>.bespoke-marp-osc>button,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-info-container button,body[data-bespoke-view=presenter] .bespoke-marp-presenter-container .bespoke-marp-presenter-note-container button{appearance:none;background-color:initial;border:0;color:inherit;cursor:pointer;font-size:inherit;opacity:.8;outline:none;padding:0;transition:opacity .2s linear;-webkit-tap-highligh
@kesor
kesor / pi-coding-agent.nix
Last active March 22, 2026 08:11
nix package version bump
{
fetchNpmDeps,
fetchFromGitHub,
pi-coding-agent,
...
}:
let
version = "0.61.1";
npmDepsHash = "sha256-nU2A+Q8PzVbjN7H+KAIFVbvETUa9BCO0czl5Yikc7gY=";
src = fetchFromGitHub {
@kesor
kesor / qmd-remote-llama-cpp.patch
Created March 17, 2026 09:38
qmd remove llama.cpp
--- package/src/llm.ts 2026-02-25 01:15:53.728175466 +0200
+++ package/src/llm.ts 2026-02-25 01:45:46.035923784 +0200
@@ -1173,6 +1173,198 @@
return defaultSessionManager.canUnload();
}
+
+// =============================================================================
+// Remote LLM Implementation (for GPU servers via llama-server HTTP API)
+// =============================================================================
@kesor
kesor / .envrc
Last active December 29, 2025 12:51
Shanghai Silver Chart + SQLite Database
use flake .
# you'll need to provide your own ...
export ALPHA_VANTAGE_API_KEY=AWXXXXXXXXXXXXXX
@kesor
kesor / 1-voice-synthesis.js
Last active December 27, 2025 05:35
Making chat OpenAI use TTS
// paste this into your chrome dev console for Speech Synthesis
const originalFetch = window.fetch
const patchedFetch = (...args) => {
if (args[1].method == 'POST' && args[1].body.length > 0 && /moderations$/.test(args[0])) {
const aiResponse = JSON.parse(args[1].body)["input"].split("\n\n\n")
if (aiResponse.length > 1) {
const text = aiResponse.slice(1).join(". ").trim()
console.log(text)
@kesor
kesor / module.nix
Created December 10, 2025 02:32
Silverbullet NixOS module
{
flake.modules.nixos.services-silverbullet =
{
config,
lib,
pkgs,
...
}:
let
cfg = config.features.services.silverbullet;
@kesor
kesor / language-servers.nix
Last active November 15, 2025 09:12
Installing language servers with Home-Manager Nix
{
pkgs,
lib,
config,
...
}:
let
cfg = config.programs.language-servers;
allLanguageServers = with pkgs; [
@kesor
kesor / tmux-sessions.sh
Created October 19, 2025 05:37
tmux-sessions
#!/bin/bash
fetch_tmux_sessions() {
# list session ids and names, each on a new line, ordered by session_id
tmux list-sessions -F "#{session_id} #{session_name}" | sort -n
}
# read tmux sessions into an array
mapfile -t SESSIONS < <(fetch_tmux_sessions)
declare -A KEY_SESSION_ID_MAP