Skip to content

Instantly share code, notes, and snippets.

View kevingatera's full-sized avatar

Kevin GATERA kevingatera

View GitHub Profile
@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