Skip to content

Instantly share code, notes, and snippets.

View tterebko's full-sized avatar

Taras Terebkov tterebko

View GitHub Profile
@tterebko
tterebko / open_webui__drawio_to_svg_action.py
Last active April 25, 2026 13:25
Open WebIU action button that parses a message, takes Draw.io xml block, exports it to SVG and publish the artifact in the side panel
"""
title: Draw.io to SVG
version: 0.1
icon_url: data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%0A%3Crect%20width%3D%22100%22%20height%3D%22100%22%20rx%3D%2212%22%20fill%3D%22%23F08705%22%3E%3C%2Frect%3E%0A%3Cpath%20d%3D%22M50%2034L30%2066M50%2034L70%2066%22%20stroke%3D%22%23fff%22%20stroke-width%3D%226%22%20stroke-linecap%3D%22round%22%3E%3C%2Fpath%3E%0A%3Crect%20x%3D%2234%22%20y%3D%2218%22%20width%3D%2232%22%20height%3D%2232%22%20rx%3D%225%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%0A%3Crect%20x%3D%2214%22%20y%3D%2260%22%20width%3D%2232%22%20height%3D%2232%22%20rx%3D%225%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%0A%3Crect%20x%3D%2254%22%20y%3D%2260%22%20width%3D%2232%22%20height%3D%2232%22%20rx%3D%225%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%0A%3Cpath%20d%3D%22M66%2018l6%206v32l-6-6zM46%2060l6%206v26l-6-6zM86%2060l6%206v26l-6-6z%22%20fill%3D%22%23DF6C0C%22%3E%3C%2Fpath%3E%0A%3C%2Fsvg%3E
"""
import httpx
import re
import subprocess
imp
@tterebko
tterebko / open_webui__inlet_change_plz.py
Created April 25, 2026 13:21
Open WebUI inlet that changes shortening for polite words into full words before submitting it to LLM
"""
title: Change "пож" to "пожалуйста"
author: the world
author_url: the world
funding_url: the world
version: 0.1
"""
import re
@tterebko
tterebko / jira_projects_merger.py
Last active March 9, 2019 07:41
Merging several Jira projects into one by moving issues and applying some logic with versions and components. Selenium is used for Move operation.
import jira
import selenium
from dataclasses import dataclass, field
from functools import reduce
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
projects_from = {
'SERVER': 'server',