mirror of
https://github.com/tiennm99/MTTools.git
synced 2026-10-04 23:01:14 +00:00
beada1d17fb9404497308e9a64fc2e27325d07e6
PDF rendering failed on Linux with "stat usr/share/fonts/...: no such file or directory": fpdf joins the font path onto its own font directory, which it defaults to ".", so path.Join turns an absolute path into a working-directory-relative one. It only resolved when the process happened to run from the filesystem root, which is why Windows was unaffected. Font data is now read by pdfout and handed over as bytes. LoadFont also falls back to a bundled DejaVu Sans, so a host with no fonts installed still renders. An explicitly requested font remains a hard error when unreadable rather than being silently substituted. Tests verify the bundled font parses and covers Vietnamese, which is the reason it exists.
MTTools
Personal toolbox — small utilities and scripts, each formerly a standalone repository, merged here with full history.
| Directory | Tool | Language |
|---|---|---|
utils/ |
Utility batch and shell scripts to make life easier (or harder) | Batch/Shell |
go-util/ |
Miscellaneous CLI scripts (Gitea org cleanup, etc.), multi-binary cmd/ layout |
Go |
export-chrome-cookies/ |
Export Google Chrome cookies on Windows | Python |
miti-scraper/ |
Configurable single-site web scraper | Go |
circular-dependency-checker/ |
Detects cyclic dependencies in Godot projects | Python |
image-resizer/ |
Batch image resizer CLI — scales to a percentage, keeps aspect ratio | Go |
webp-converter/ |
HTTP microservice converting WebP images to PNG on-the-fly | Go |
update-dns/ |
Updates Cloudflare DNS records with your current dynamic IP | Shell |
ghibli-gallery-crawler/ |
Downloads the Studio Ghibli image gallery | Go |
crawl-prime/ |
Crawls large prime numbers from compoasso.free.fr | Go |
fbcount/ |
Counts messages per person in a Facebook data export | Node.js, Python |
bulk-telegram-sticker/ |
Creates Telegram stickers in bulk from images | Python |
Unmerged Go-rewrite drafts live on feature/export-chrome-cookies-go,
feature/circular-dependency-checker-go, and feature/bulk-telegram-sticker-go.
Description
Personal toolbox — utility scripts and small CLI tools (shell/batch, Go, Python, Node.js), merged from standalone repos with full history
16 MiB
0 Stars
1 Watchers
0 Forks
Languages
Go
75%
Python
22.9%
Shell
0.8%
JavaScript
0.7%
Dockerfile
0.4%
Other
0.2%