Skip to content

Instantly share code, notes, and snippets.

@highel
highel / pillow-simd-libjpeg-turbo.md
Created November 13, 2023 22:59 — forked from willprice/pillow-simd-libjpeg-turbo.md
Pillow-SIMD with libjpeg/turbo

sudo apt-get install gcc-multilib

# The following steps are based on
# https://docs.fast.ai/performance.html#installation

$ conda install -y -c conda-forge gxx_linux-64 
$ conda uninstall -y --force jpeg libtiff
$ conda install -y -c conda-forge libjpeg-turbo --no-deps
@highel
highel / Main.java
Created April 20, 2024 09:51
Command line tool to remove unneeded PDF pages
package org.example;
import com.lowagie.text.pdf.PdfReader;
import com.lowagie.text.pdf.PdfStamper;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.InvalidPathException;
import java.nio.file.Path;