ИИ-инструменты и скрипты
Free Disk on a Live Trading Host Without Downtime
Это объявление показано на языке оригинала (английский).
Safe disk cleanup on a live trading host: scout, build a categorised deletion manifest with safety checks, get one explicit approval, delete, keep a ledger of removed binaries, and prove the trader kept its PID.
Что вы получите: 1 файл · 8.83 KB · ZIP
Варианты покупкиОписание товара
A full disk on a host that is trading is an emergency where the wrong rm can be worse than the problem. This skill gives an agent a conservative, auditable cleanup that never touches the running processes.
What is inside: - SKILL.md - the procedure: scout what is large and why, build a categorised manifest (rollback binaries, rotated logs, caches, build leftovers) with safety checks per item (is it the running executable, does a process hold it open, does it have hard links, is it referenced by a config or a socket), show the manifest and ask once, delete, then prove the trader's PID and start time did not change. It also covers stopping the host from refilling after every deploy. - scripts/manifest.sh - builds the candidate list with the safety checks, deleting nothing. - scripts/ledger.sh - records each binary's identity (mtime, sha256, Go version, module lines) before it is deleted, so "which build ran during that incident" stays answerable. - scripts/execute.sh - deletes exactly the approved manifest. - scripts/pm2-logrotate-compress-fix.sh - repairs pm2-logrotate so rotated logs get compressed.
For operators of their own trading hosts. Deletion always waits for your explicit approval of the manifest. Needs SSH, sudo and bash. Also part of the Crypto Trading Ops Playbooks pack at a lower per-skill price.
Example request
The disk on my trading host is at 93 percent. Free some space but do not restart or disturb the trader.
Example result
Example on a fictional host (your-staging-host, disk 93 percent). Following server-disk-cleanup the agent first scouted read-only: 14 GB of 20 GB sat in three places, rotated PM2 logs (5.1 GB, uncompressed), old rollback binaries (3.8 GB across 9 files), and a package cache (1.2 GB).
manifest.sh produced a categorised list with a verdict per item. The binary currently executing was marked KEEP because the process executable link pointed at it; two files showed an open handle from a log tailer and were marked HOLD; one rollback binary had a hard link elsewhere and was marked KEEP. Rotated logs older than 7 days and the 6 oldest rollback binaries were marked DELETE, keeping the newest three.
The agent showed the manifest (about 7.4 GB reclaimable) and asked for a single approval. After a yes it ran ledger.sh to record sha256 and build info for each binary, then execute.sh. Result: disk at 52 percent, trader PID and start time unchanged, restart count unchanged. It also applied the pm2-logrotate compress fix so rotated logs shrink in future, and nothing outside the approved list was removed.
Requirements
- SSH access with sudo to a Linux host running services under PM2
- bash and standard coreutils (du, find, lsof, stat)
- pm2-logrotate if you use the log-rotation fix
How to install
Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.
Что вы получите
1 файл · 8.83 KB
- server-disk-cleanup.zipZIP · 8.83 KB
ИИ-инструменты и скрипты
Free Disk on a Live Trading Host Without Downtime
Это объявление показано на языке оригинала (английский).
Safe disk cleanup on a live trading host: scout, build a categorised deletion manifest with safety checks, get one explicit approval, delete, keep a ledger of removed binaries, and prove the trader kept its PID.
Getly открыл загруженные файлы и не нашёл ничего, что помешало бы их открыть. Это не проверка на вирусы и не оценка качества.
Теги
Частые вопросы
Доступ открывается сразу?
Да. Это цифровой товар - скачать его можно сразу после оплаты, прямо из своей библиотеки.
Можно ли использовать в коммерческих проектах?
Да. Коммерческое использование разрешено: в своём бизнесе и в том, что вы продаёте. Перепродавать и распространять сам файл нельзя.
Какие условия возврата?
Запросить возврат можно в течение 30 дней. Если что-то не так, оформите заявку в своём заказе - её рассмотрит команда Getly.
Какие форматы и размеры файлов я получу?
Вы скачаете 1 файл - ZIP - всего 8.83 KB.
Обновления бесплатны?
Да - когда продавец выпускает новую версию, вы можете бесплатно скачать актуальные файлы из своей библиотеки. Последние изменения смотрите в истории версий.
Цена
$7.00



