Skip to content

Instantly share code, notes, and snippets.

@t5k6
t5k6 / transliterate_tr_to_bg.py
Last active June 24, 2026 17:03
Transliterates Turkish names/words to Bulgarian Cyrillic
import re
def transliterate_tr_to_bg(names, silent_g=False):
"""Transliterates Turkish names/words to Bulgarian Cyrillic.
Transliteration follows standard Turkish-to-Bulgarian mapping conventions:
- Turkish-specific letters: ıъ, İИ, IЪ, şш, çч, ğг (optional)
- Digraphs: Ya/yaЯ/я, Yu/yuЮ/ю
- Multi-character mappings: öйо, üю, cддж
Args:
@t5k6
t5k6 / calibre_kobo_database_fix.md
Created December 9, 2024 20:40
How to Solve Calibre Issues with Kobo Database Corruption

Problem

When attempting to connect a Kobo device to Calibre, the following error may occur:

ERROR: Error: Error communicating with device

CorruptError: database disk image is malformed

Traceback (most recent call last):
 File "calibre\gui2\device.py", line 112, in run
@t5k6
t5k6 / widgetlist.xml
Last active April 4, 2018 12:48
to sideload multiple apps to Samsung Smart TV
<?xml version="1.0" encoding="UTF-8"?>
<rsp stat="ok">
<list>
<widget id="getstv_0_8">
<title>getstv_0_8</title>
<compression size="919000" type="zip"/>
<description></description>
<download>http://getsapp.ru/GetsTV/getstv_0_8.zip</download>
</widget>
<widget id="seyirTURK">
@t5k6
t5k6 / index.html
Created August 16, 2015 13:28
Boilerplate empty index.html for Twitter Bootstrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content=" ">
<!-- Bootstrap core CSS -->