Skip to content

Instantly share code, notes, and snippets.

View bogorad's full-sized avatar

Eugene bogorad bogorad

View GitHub Profile
@bogorad
bogorad / direct-debit-ton-solana.md
Last active December 23, 2025 13:54
Compare TON and Solana approach for "direct debit"

Architectural Comparison: TON Actor Model vs. Solana Delegation

1. Executive Summary

This document contrasts two distinct architectural approaches for implementing automated cross-entity interactions (such as recurring payments or conditional transfers) on high-performance blockchains.

  • TON (The Open Network) employs an Actor Model where every wallet is a smart contract. Automation is achieved via asynchronous message passing and internal state transitions.
  • Solana employs a Delegation (Pull) Pattern on top of a stateless Account Model. Automation is achieved by authorizing a third-party system to execute transactions on your behalf.

The core difference lies in agency:

@bogorad
bogorad / wiki-to-groki.js
Last active December 18, 2025 12:56
userscript for TamperMonkey and the like - redirect wikipedia to grokipedia
// ==UserScript==
// @name Wikipedia to Grokipedia Redirector
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Redirect to Grokipedia if page exists
// @author You
// @match https://en.wikipedia.org/wiki/*
// @connect grokipedia.com
// @grant GM_xmlhttpRequest
// @run-at document-start
@bogorad
bogorad / generate-host-key.sh
Created November 27, 2025 10:32
Auto-generate ssh+age keys for a new host, store in BitWarden, update SOPS config.
#!/usr/bin/env bash
set -euo pipefail
die() {
echo "$0: ERROR: $1" >&2
exit 1
}
log() {
@bogorad
bogorad / kedr.ps1
Created November 21, 2025 12:36
convert epub to kepub and put into dropbox
# Change working directory
Set-Location -Path "C:\Users\chuck\downloads"
# Run kepubify
& "kepubify.exe" --calibre --inplace .
# dbxcli needs the full target path including the filename
$targetDir = "/Apps/Kobo Cloud Sync"
Get-ChildItem -Filter "*.kepub" -File | ForEach-Object {
@bogorad
bogorad / wezterm.lua
Last active September 28, 2025 16:43
wezterm-config-crash
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- This will hold the configuration.
local config = wezterm.config_builder()
local act = wezterm.action
-- Define the connection details for my persistent WezTerm server.
local lxc_wezterm_domain = {
name = "wezterm-server",
@bogorad
bogorad / laptop-boot-plan.md
Last active October 8, 2025 09:33
laptop boot plan

Secure Laptop Configuration Documentation

<<>>

@bogorad
bogorad / lost-movie.md
Created September 19, 2025 09:24
lost movie LLM request

I am looking for an old black and white movie, 1930s-1950s, us or uk. The protagonist is an elderly academic or maybe a writer. He lives with his wife of many years. He is obsessed with an old story about a murderer who escaped from an asylum and a nurse who disappeared at the same time. He eventually discovers that he was looking for himself, and the nurse is his wife who helped him escape.

Yout task is to name that movie and provide an imdb.com link. Re-check the link before returning the result.

All plot points are relevant, please do not show off your erudition by quoting similar but irrelevant movies with similar plots. Re-check against both databases and user reviews.

# modules/auggie.nix
{
config,
lib,
pkgs,
...
}:
let
auggie-pkg = pkgs.stdenv.mkDerivation rec {
@bogorad
bogorad / gist:1b61dfcbe9ba8fff5854c02052933329
Created August 14, 2025 12:37
uri-router-urls
google.com
youtube.com
.bruc
.lan
github.com
grok.com
x.com
claude.ai
@bogorad
bogorad / config.yml
Last active June 1, 2025 12:00
current esphome config for m5stack-nano-c6
# radar_entrance.yaml
substitutions:
LOCATION: "entrance"
name: "radar_${LOCATION}"
friendly_name: "radar_${LOCATION}"
<<: !include packages/generic_m5stack-nano-c6.yaml
# !!! When overriding, copy button & light from config!!!
#######################################################