Skip to content

Instantly share code, notes, and snippets.

@Krytos
Krytos / pyproject.toml
Created June 9, 2025 11:01
Pyproject.toml template
[project]
name = ""
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"rich",
"loguru",
@Krytos
Krytos / poe2_fuzzy_search.user.js
Last active January 24, 2025 07:37
When searching on pathofexile.com/trade, this addon inserts the tilde(~) before your search query. This enables fuzzy search, so you can be more lenient with your search. Start you search with a space (" ") to not use fuzzy search for this query.
// ==UserScript==
// @name PoE2 Fuzzy Search
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Prepends ~ to non-space starting queries and removes leading spaces
// @author Kevin M. (inspired by /u/posturecheck3859738 on /r/pathofexile)
// @match https://www.pathofexile.com/trade2*
// @icon https://www.google.com/s2/favicons?domain=pathofexile.com
// @downloadURL https://gist.github.com/Krytos/2ae5bd9aba4dc98c2dbc98c94f26d4eb/raw/poe2_fuzzy_search.user.js
// @grant none
@Krytos
Krytos / poe2trade.user.js
Last active September 12, 2025 19:00
Adds a button to the PoE2 Trade page that allows you to copy the item description and affixes to your clipboard.
// ==UserScript==
// @name PoE2 Trade Copy Item Button
// @version 2.0
// @description Adds a button to the PoE2 Trade page that allows you to copy the item description and affixes to your clipboard.
// @author Kevin M
// @match https://www.pathofexile.com/trade2/*
// @icon https://www.google.com/s2/favicons?domain=pathofexile.com
// @downloadURL https://gist.github.com/Krytos/fcb435878b9ee214c8ef9c5d9a685861/raw/poe2trade.user.js
// @grant none
// ==/UserScript==
@Krytos
Krytos / main.py
Created July 20, 2023 14:27
Chapter Scraper for TBATE
import asyncio
import smtplib
import os
from zipfile import ZipFile
from fastapi import FastAPI
from bs4 import BeautifulSoup as bs
from lxml import etree
from httpx import AsyncClient
from fuzzysearch import find_near_matches
from datetime import datetime, timedelta