Skip to content

Instantly share code, notes, and snippets.

View asidko's full-sized avatar
🎯
Focusing

Alexander Sidko asidko

🎯
Focusing
  • Market Traders Institute
  • Kyiv, Ukraine
View GitHub Profile
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" }
@asidko
asidko / .gitlab-ci.yml
Created June 29, 2022 15:52
GitLab CI for Java Docker build with Gradle and push to Amazon ECR repository
# Project specific variables are here
variables:
# AWS ECR settings
AWS_REGION: us-east-1
AWS_IMAGE_REGISTRY: XXXXXXX.dkr.ecr.us-east-1.amazonaws.com
AWS_IMAGE_NAME: my-spring-boot-app
# Do not forget to set
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION
# in Gitlab Settings -> CI/CD
@asidko
asidko / gzip.js
Created April 20, 2022 14:00
Encode and decode base64 GZIP with pure JavaScript. Works in all modern browsers.
// Paste the following example to browser console
// Comppreses string to GZIP. Retruns a Promise with Base64 string
const compress = string => {
const blobToBase64 = blob => new Promise((resolve, _) => {
const reader = new FileReader();
reader.onloadend = () => resolve(reader.result.split(',')[1]);
reader.readAsDataURL(blob);
});