Skip to content

Instantly share code, notes, and snippets.

View ilius's full-sized avatar

Saeed Rasooli ilius

  • Iran
  • 22:07 (UTC +03:30)
View GitHub Profile
@ilius
ilius / article-style.css
Last active April 25, 2025 04:46 — forked from bangedorrunt/article-style.css
GoldenDict Dark Theme
body
{
margin-top: 1px;
margin-right: 3px;
margin-left: 2px;
margin-bottom: 3px;
background: #201F1F;
color: white;
font-family: Bookerly, Segoe UI, Palatino Linotype, Arial Unicode MS;
}
# -*- coding: utf-8 -*-
# http://www.octopus-studio.com/download.en.htm
import os
from os.path import isdir
from pyglossary.compression import compressionOpen as c_open
from pyglossary.compression import stdCompressions
from pyglossary.core import log
from pyglossary.option import (
@ilius
ilius / build-goldendict-qt4.sh
Created December 15, 2020 17:18
Build GoldenDict with Qt on Debian
#!/bin/bash
set -e
# Debian:
echo 'deb http://ppa.launchpad.net/rock-core/qt4/ubuntu focal main
deb-src http://ppa.launchpad.net/rock-core/qt4/ubuntu focal main' > /etc/apt/sources.list.d/qt4.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78CB407D3E3D8F94
sudo apt-get update
@ilius
ilius / random-ja-word.sh
Last active January 8, 2021 06:07
Generate random Japanese-style words that are pronounceable
#!/bin/bash
# need to install https://github.com/ilius/repassgen
# u i a e o
G0='ういあえお'
# shi ki ni ka
G1='しきにか'
# no chi ku to ha ta
@ilius
ilius / Drug-guide.py
Created January 17, 2021 02:29
Drug-guide.py
# -*- coding: utf-8 -*-
from formats_common import *
import html
enable = True
format = 'Drug-guide'
description = 'Drug-guide (SQLite3)'
extensions = ()
readOptions = []
@ilius
ilius / pharmaplus.py
Created January 17, 2021 23:24
pharmaplus.py
# -*- coding: utf-8 -*-
from formats_common import *
import html
enable = True
format = 'Pharmaplus'
description = 'Pharmaplus (SQLite3)'
extensions = ()
readOptions = []
@ilius
ilius / pharmaplus-no-brand.py
Last active January 18, 2021 03:27
pharmaplus
# -*- coding: utf-8 -*-
from formats_common import *
import html
enable = True
format = 'Pharmaplus'
description = 'Pharmaplus (SQLite3)'
extensions = ()
readOptions = []
@ilius
ilius / epub_ungrouped.py
Last active January 10, 2022 23:35
PyGlossary plugin epub_ungrouped.py (issue #352)
# -*- coding: utf-8 -*-
from formats_common import *
import zipfile
enable = True
lname = "epub_ungrouped"
format = "EpubUngrouped"
description = "EPUB (Ungrouped)"
extensions = ()
#!/bin/bash
# Discover monitor name with: xrandr | grep " connected"
# and set MONITOR
MONITOR=""
STEP="0.05"
MIN="0.1"
CurrBrightLine=$( xrandr --verbose --current | grep ^"$MONITOR" -A5 | tail -n1 )
@ilius
ilius / dict-links.txt
Last active March 7, 2024 06:13
Dict Links