WordPress: Restrict MathJax to a class

I write on a variety of topics, only some of which it's appropriate to have mathematical typesetting for. To avoid triggering a math rendering engine on unrelated use of $spurious dollar signs$, while activating it when $\text{necessary}\wedge\text{appropriate}$, I decided to restrict them to only elements with .mathjax. Here's how that's done: MathJax = { tex:…

Converting SVG to .ico with Python

Just a super rudimentary script that I made which hooks CairoSVG up to Pillow because apparently Firefox doesn't support SVG-formatted browserAction images: import cairosvg.surface from PIL import Image from io import BytesIO def svg2ico(*args, resolutions={96, 48, 32, 24, 16}, write_to=None, **kwargs): t = cairosvg.surface.Tree(*args, **kwargs) ims = [] for res in resolutions: cairosvg.surface.PNGSurface(t, f:=BytesIO(), res…

[DRAFT] Pleroma on Docker Compose

This testing was done with Pleroma 2.2.0, in environment CentOS 8 (Before starting, be sure docker and docker-compose are installed, as well as git, and NGINX.) Fetch and prepare the source code: git clone -b stable –depth=1 "https://git.pleroma.social/pleroma/pleroma.git" && cd pleroma git fetch –depth=2 "https://git.lain.church/squeegily/pleroma.git" "features/docker-compose":"features/docker-compose" && git -c "user.name=Anonymous" merge –no-commit "features/docker-compose" sudo chown…