- Объясни новичку кодовую базу. Какова общая структура, что важно знать и какие подсказки следует изучить дальше? Создай AGENTS.md
- Изучи историю коммитов за последний месяц, AGENTS.md, CHANGELOG.md, README.md. Дополни README.md недостающими описаниями последних изменений.
- Refactor index.ts, make it more testable
- Add tests with coverage. Add github workflow "test".
- Improve test coverage (если есть подробные инструкции в AGENTS.md)
- Просмотри кодовую базу, найди проблемы и предложи одну задачу по исправлению опечатки, одну задачу по исправлению ошибки, одну задачу по исправлению комментария к коду или несоответствия в документации и одну задачу по улучшению теста.
- Выбери важную часть кодовой базы, найди и исправь ошибку.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # agents2claude | |
| # Walks the current directory tree, respects .gitignore, finds AGENTS.md (via fdfind), | |
| # and creates sibling symlinks: CLAUDE.md -> AGENTS.md | |
| # requires fdfind | |
| set -euo pipefail | |
| created=0 | |
| skipped=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| n="$n" | |
| cd /media/media/video | |
| if [ -z "$n" ]; then | |
| n="$(ls -1 *.mkv | fzf | sed 's/\.mkv$//')" | |
| fi | |
| subslist="$(ffprobe "$n.mkv" 2>&1 | grep -A 2 Subtitle)" | |
| echo "$subslist"; sleep 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pip install ansible | |
| ansible-galaxy install viasite-ansible.zsh --force | |
| curl https://raw.githubusercontent.com/viasite-ansible/ansible-role-zsh/master/playbook.yml > /tmp/zsh.yml | |
| ansible-playbook -i "localhost," -c local -b /tmp/zsh.yml --extra-vars="zsh_user=$(whoami)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt install sysbench -y | |
| yum install sysbench -y | |
| # bash, zsh | |
| for threads in 1 2 4 8 16 32 64 128; do echo -e "\n\nthreads: $threads"; sysbench cpu --validate=on --threads=$threads --verbosity=3 run | tail -n17 | head -n1; done | |
| # zsh only | |
| sysbench-cpu() { echo -e "\n\nthreads: $threads"; sysbench cpu --validate=on --threads=$threads --verbosity=3 run | tail -n17 | head -n1 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # install: | |
| # 1. save it to /usr/local/bin/gptb | |
| # 2. make it executable: chmod +x /usr/local/bin/gptb | |
| # 3. add environment OPENAI_API_KEY=sk-... | |
| # | |
| # usage: POSTFIX="on ubuntu" gptb what you need for from bash | |
| set -eu | |
| PREFIX="${PREFIX:-how to}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Planfix task list | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Send task list from planner to remote server | |
| // @author popstas | |
| // @match https://popstas.planfix.ru/?action=planner | |
| // @match https://popstas.planfix.ru/planner/6138 | |
| // @match https://popstas.planfix.ru/planner | |
| // @match https://popstas.planfix.ru/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Yandex Metrika Screenshot | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Screenshot mode | |
| // @author popstas | |
| // @match https://metrika.yandex.ru/* | |
| // @grant GM_addStyle | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| LeftX := 0 | |
| LeftY := 0 | |
| RightX := 2560 | |
| RightY := -920 | |
| ResetWindowSize() { | |
| WinGet activeWin, ID, A | |
| posX := 0 |
NewerOlder