Skip to content

Instantly share code, notes, and snippets.

View asidko's full-sized avatar

Oleks asidko

View GitHub Profile
@asidko
asidko / fedora-xfce-xrdp-vm-checklist.md
Created September 15, 2026 07:07
Fedora XFCE over xrdp on a GPU-less VM - setup checklist and traps

Fedora XFCE over xrdp on a GPU-less VM - setup checklist

Scope: Fedora 43/44 XFCE on a cloud/KVM VM with no GPU (all GL/Vulkan runs on the CPU via llvmpipe/lavapipe), used over xrdp from a HiDPI (Retina) client at 2x scale. Every trap listed here cost real debugging time.

[relogin] = needs a full XFCE logout. An RDP reconnect (or closing the RDP window) reattaches the old session, which keeps its old environment.

0. Ground rules

  • GUI commands from SSH need the live session's display, auth and bus: export $(tr '\0' '\n' < /proc/$(pgrep -x xfce4-session | head -1)/environ | grep -E '^(DISPLAY|XAUTHORITY|DBUS_SESSION_BUS_ADDRESS)=' | xargs -d '\n')
@asidko
asidko / cleanup-clipboard-codex.sh
Last active July 21, 2026 10:45
Raycast script: clean up clipboard text (broken line breaks, padding, stray chars) via codex CLI and copy it back
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Cleanup clipboard (AI) (Codex)
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🧹
# @raycast.packageName Developer Utils
@asidko
asidko / cleanup-clipboard.sh
Last active July 21, 2026 10:42
Raycast script: clean up clipboard text (broken line breaks, padding, stray chars) via claude CLI and copy it back
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Cleanup clipboard (AI)
# @raycast.mode compact
# Optional parameters:
# @raycast.icon 🧹
# @raycast.packageName Developer Utils
@asidko
asidko / app_repo_publishing_checklist.md
Last active June 30, 2026 08:16
CLI app repo checklist - distribution & polish for shipping a small CLI as an installable product

CLI app repo checklist - distribution & polish for shipping a small CLI as an installable product

App repo publishing checklist

Reusable checklist for shipping a small CLI or macOS GUI app as a real, installable product. Domain logic aside - these are the things that make a repo feel finished. Examples are from binance-futures-monitor (bfm).

Placeholders: <app> = command name, <APP> = its env-var prefix, <os>/<arch> = target. Each item is a state you can verify true.

1 Start with the face from IMG_0038.jpg.
2 Apply the Vagabond/Musashi art style.
3 Place the character against a red sun background.
4 Dress him in a traditional kimono with a katana.
5 Stylize the hair to be a bit more "samurai-esque" while keeping the essence of the user's current cut.
6 Framing: Head and shoulders avatar.
One-line explanation: I'm reimagining your portrait in the gritty, high-detail ink style of the Vagabond manga against that iconic red background.
Wait, I should use image_generation with reference to the uploaded image IMG_0038.jpg. The instructions say: "image+text-to-image (editing)". I will use image_edit.
Wait, the prompt should be very specific. "Create a digital illustration of the man in IMG_0038.jpg as a samurai in the style of the Vagabond manga. The art should be detailed black ink line work with heavy cross-hatching on a paper texture. He is wearing a traditional white kimono and has a katana at his side. His hair is styled into a messy top-knot but retains his facial li
@asidko
asidko / ralph-single-prompt.md
Last active January 26, 2026 07:52
Minimal autonomous agent prompt for Claude Code. Ralph-style iterative loop with task tracking, pattern learning, and zero-memory state persistence. Based on Geoffrey Huntley's technique.

AUTONOMOUS ORCHESTRATOR

You are an orchestrator. You do NOT implement tasks yourself. You delegate atomic tasks to subagents via Task(...) tool, keeping your context clean.


STATE FILES

| File | Purpose |

@asidko
asidko / reposition.sh
Last active December 30, 2025 07:46
XFCE window repositioning script - centers and resizes off-screen windows to fit current display. Useful when connecting via RDP from different devices (phone, tablet, different monitors)
#!/bin/bash
# Resize and reposition windows to fit current screen work area
get_work_area() {
wmctrl -d | awk '/\*/ {
split($9, dim, "x")
split($8, offset, ",")
print offset[1], offset[2], dim[1], dim[2]
}'
}
@asidko
asidko / script.py
Last active October 11, 2024 21:32
Поиск найболее волатильных монет на Binance
##################################################
# Скрипт для поиска найболее волатильных монет на Binance
#
# Перед использованием, установить зависимости:
# pip install rich aiohttp
#
# Скриншот: https://github.com/user-attachments/assets/b22838f6-a130-4ffe-9f01-d09abbcc24cc
#
# Пример использования.
# Найти монеты которые изменились на 2% за последнюю 1 минуту в сравнении с последними 15 минутами
@asidko
asidko / run.sh
Last active October 28, 2024 11:50
A simple application runner for managing the start/stop operations of binary executables on a Linux virtual machine (VM)
#!/bin/bash
##################################################
# Run script for applications
# Usage: ./run.sh start
# ./run.sh restart
# ./run.sh stop
# Features:
# - Auto-detect application name and port (based on folder name) and binary (last by creation date)
# - Automatically checks if the application is running, shows its last logs
@asidko
asidko / append_note.applescript
Created June 13, 2023 08:17
Raycast script to append custom text to pre-configured Apple Note.
#!/usr/bin/osascript
# Required parameters:
# @raycast.author asidko
# @raycast.schemaVersion 1
# @raycast.title Note text to "Worklog" note
# @raycast.mode silent
# @raycast.packageName Notes
# @raycast.description Append text to pre defined note
# @raycast.argument1 { "type": "text", "placeholder": "text to append" }