Skip to content

Instantly share code, notes, and snippets.

@TestItOnlyOnce
TestItOnlyOnce / trrprefs.md
Last active June 28, 2018 12:09 — forked from bagder/trrprefs.md
Preferences for the DNS-over-HTTPS functionality in Firefox 61+

Preferences

All preferences for the DNS-over-HTTPS functionality in Firefox are located under the "network.trr" prefix (TRR == Trusted Recursive Resolver). The support for these landed in Firefox 60 but will be polished further in 61.

network.trr.mode

set which resolver mode you want.

0 - Off (default). use standard native resolving only (don't use TRR at all)

1 - Race native against TRR. Do them both in parallel and go with the one that returns a result first.

@TestItOnlyOnce
TestItOnlyOnce / pdftitle.py
Last active March 23, 2022 03:30 — forked from hanjianwei/pdftitle.py
Rename pdf files to their content's titles (for Python 3; with wildcard support; default rename all pdfs)
#!/usr/bin/env python
"""
Extracts title from PDF files (Python 3).
Depends on: pdf, pyPDF2, PDFMiner3k, unidecode.
Usage:
pdftitle -d tmp --rename *.pdf{}