Skip to content

Instantly share code, notes, and snippets.

View kevingatera's full-sized avatar

Kevin GATERA kevingatera

View GitHub Profile
@kevingatera
kevingatera / agent.md
Created October 18, 2025 19:40 — forked from steipete/agent.md
Agent rules for git
  • Delete unused or obsolete files when your changes make them irrelevant (refactors, feature removals, etc.), and revert files only when the change is yours or explicitly requested. If a git operation leaves you unsure about other agents' in-flight work, stop and coordinate instead of deleting.
  • Before attempting to delete a file to resolve a local type/lint failure, stop and ask the user. Other agents are often editing adjacent files; deleting their work to silence an error is never acceptable without explicit approval.
  • NEVER edit .env or any environment variable files—only the user may change them.
  • Coordinate with other agents before removing their in-progress edits—don't revert or delete work you didn't author unless everyone agrees.
  • Moving/renaming and restoring files is allowed.
  • ABSOLUTELY NEVER run destructive git operations (e.g., git reset --hard, rm, git checkout/git restore to an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t
@kevingatera
kevingatera / chatreadretrieveread.py
Created March 11, 2024 16:00 — forked from pamelafox/chatreadretrieveread.py
Chat approach with additional function call
import json
import logging
import re
from typing import Any, AsyncGenerator, Optional, Union
import aiohttp
import openai
from azure.search.documents.aio import SearchClient
from azure.search.documents.models import QueryType
@kevingatera
kevingatera / savecategory.md
Last active January 31, 2024 14:53 — forked from jef/savecategory.md
qBittorrent: Saves category for watched directories (https://github.com/qbittorrent/qBittorrent/wiki/External-programs:-savecategory)

This script add Categories to Automatically add torrents from per Monitored Folder

👉 This script is in flux, as it may be implemented into qBittorrent in the future.

savecategory expects the user's watch directories to look similar to something like this:

It's based off the popular wiki for setting up hard linking Docker and other torrent grabbers.

@kevingatera
kevingatera / generate-client.sh
Last active November 5, 2019 00:38 — forked from Belphemur/generate-client.sh
Generate a new client configuration for WireGuard
#!/usr/bin/env bash
if [ -z "$1" ]
then
echo "$0 client-name"
exit 1
fi