Skip to content

Instantly share code, notes, and snippets.

@wrmack
wrmack / zensical_pdf.md
Last active June 7, 2026 18:30
Converting Zensical md files to one pdf using Pandoc and Typst

Convert Zensical md files to one pdf using Pandoc and Typst

The flow is:

  • convert markdown .md files to a typst .typ file , using pandoc
  • using the typst compiler convert the .typ file to pdf
  • alternatively, using the typst web app edit the .typ file, preview changes in real time and export to pdf.

I wanted to convert my Zensical documentation to a pdf with an academic flavour. While there are alternative ways of doing this (such as using a former Mkdocs plugin) the process I chose gives me full control of the resulting pdf. Typst uses its own markdown but is quite easy to learn. Typst also has many templates, contributed by the community.

Convert .md files to one .typ file using pandoc

@wrmack
wrmack / pangolin.md
Created April 5, 2026 21:21
Serving home videos over the internet using Pangolin and Jellyfin

Pangolin on an EC2 instance

Steps I took to setup Pangolin on an AWS EC2 instance to access my home videos on an external drive attached to a Macbook Pro.

My setup at the start

VPS (virtual private server)

  • an AWS EC2 instance running Amazon Linux 2023
  • domain "wrmack.com" obtained through AWS Route 53; I had generated records for subdomains used for accessing different apps
  • nginx reverse proxy server

Home

  • Macbook Pro
@wrmack
wrmack / linux.md
Last active March 29, 2024 01:06
Linux on Macbook M1 (ARM64)

Linux on Macbook M1 using Apple virtualization

Tried with UTM but there is an issue with disk corruption. Until this is fixed in UTM I installed Ubuntu Linux using tart. Tart uses NVME.

  1. Install tart:
brew install cirruslabs/cli/tart
  1. I wanted the VM to be on an external SSD so needed to set the environment variable TART_HOME
# Set environment variable
@wrmack
wrmack / Win11.md
Last active May 13, 2026 02:53
Windows 11 on MacBook M1

Windows 11 on MacBook M1 (ARM)

Steps I went through to install a Windows Insider Preview VHDX on a Macbook Pro using UTM. I needed Windows because I was developing an app to submit to the Microsoft Store. With the following setup I was able to develop an electron-based app and submit it to the Microsoft Store.

  1. Download the VHDX from Windows Insider Previews. You need to register for the Insider Program and sign in.
    • under Select edition select the Canary channel and press Confirm
    • select language and confirm
    • press Download
  2. Open UTM and press + to create a new virtual machine
    • Virtualize
  • Windows