Category Archives: Software

Using AsciidocFX

AsciidocFX is one dangerous program. I had it open like this. It had my root folder open in left pane and I was used to Atom where one can remove the folder by right clicking the folder and then remove … Continue reading

Posted in Software | Leave a comment

Useful Docker commands

Sort images by size List dangling volumes Cleaning up Docker resources: https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes#a-docker-cheat-sheet Where are the logs? Docker on Windows On Windows all Docker data is stored in C:\Users\siddj\AppData\Local\Docker\wsl\disk\docker_data.vhdx Also note that .vhdx files (Virtual Hard Disk v2 (VHDX) File Format) … Continue reading

Posted in Software | Leave a comment

Cross-referencing content of another chapter in AsciiDoctorPDF

It is possible to cross-reference chapters in Asciidoc. The way I do it is as follows. First of all I have a top level index.adoc which is the root file that does nothing but include the various chapters one after … Continue reading

Posted in Software | Tagged , , | Leave a comment

Getting Math to work in AsciiDoctorPDF

I had quite a lot of challenges getting math to render in AsciiDoctorPDF. The documentation relating to this is also confusing. It turns out that for converting asciidoc to PDF which is what I am interested in (i.e., output format … Continue reading

Posted in Software | Tagged , | Leave a comment

AsciiDoctor: Inspecting Environment settings of Ruby

Within the docker-asciidoctor container you can see Ruby settings like so

Posted in Computers, programming, Software | Tagged | Leave a comment

How to get rid off annoying border around SVG images in AsciiDoctorPDF

AsciiDoctorPDF inserts an annoying black border around SVG images generated by graphviz. E.g., given this SVG image which was generated by graphviz, if you open it in chrome you can see it has no black border as shown below: but … Continue reading

Posted in Software | Tagged | Leave a comment

Validating PDFs

Sometimes you need to validate a PDF file. Here are step by step instructions on how to do so. Prerequisites: You need to have Java installed on your machine. Download preflight-app-2.0.21.jar from https://pdfbox.apache.org/download.cgi Run it passing the path to your … Continue reading

Posted in Software | Tagged , , | Leave a comment

Extracting images from a PDF

Sometimes you need to extract images inside a PDF. Here are step by step instructions on how to do that. Prerequisites: You need to have Java installed on your machine. Download pdfbox-app-1.8.16.jar from https://pdfbox.apache.org/download.cgi. WARNING: version 2.0.21 will not work. … Continue reading

Posted in Software | Tagged , , | Leave a comment

Using GPG

As an example let’s say we want to verify integrity of following file from https://hashcat.net/hashcat/ First download the file and its PGP signature (ends with .asc) 2. Next download and import the key from PGP keyserver with following command: 3. … Continue reading

Posted in Software | Leave a comment

Migrating Docker Volumes

By default Docker stores its persistent data in /var/lib/docker folder on Linux systems. This folder is part of the OS disk and in a production (or even dev) setup you might want to store persistent data on a data disk. … Continue reading

Posted in Software | Leave a comment