tsutsu3

I make small tools.

Everything here started as something I needed myself, and stayed small enough to keep maintaining. Source, docs and downloads are linked on each one.

pi-hole-client

version
1.10.0
status
stable
platform
Android
license
MIT

An Android client for Pi-hole. It shows the statistics, query logs and domain lists of your resolver, and lets you turn blocking on and off without opening the web admin.

You can register several servers and switch between them. Three home screen widgets are included: statistics, a blocking toggle, and a compact combination of the two.

There are guides for the parts that usually go wrong: getting an API token, and getting TLS to work with self-signed certificates or an incomplete certificate chain.

Pi-hole client running on Android, showing the statistics screen

Markdown Named CodeBlocks

version
1.1.0
status
stable
packages
2
license
MIT

A VS Code extension that renders named code blocks in the Markdown preview. Write a file name after the language in a code fence and it appears as a caption above the block.

The rendering is done by markdown-it-named-code-blocks, a markdown-it plugin published separately on npm. The same output can be produced outside the editor, anywhere markdown-it runs.

example.md
```js:src/app.js
console.log("hello");
```
npm i markdown-it-named-code-blocks

linkify-it-py

version
2.2.0
status
stable
python
3.10+
license
MIT

Finds URLs and email addresses in plain text, with Unicode support. A port of the JavaScript linkify-it, and the autolinking engine behind markdown-it-py.

It catches bare hosts like example.com that have no scheme. The upstream test suite is ported as-is, so behaviour matches the original.

There is a live demo if you want to try it in the browser first.

example.py
from linkify_it import LinkifyIt

linkify = LinkifyIt()

linkify.match("Site tsutsu3.com")
# [linkify_it.main.Match({
#     'schema': '',
#     'index': 5,
#     'last_index': 16,
#     'raw': 'tsutsu3.com',
#     'text': 'tsutsu3.com',
#     'url': 'http://tsutsu3.com'
# })]
pip install linkify-it-py