Skip to content

Instantly share code, notes, and snippets.

View Alex-Bond's full-sized avatar
🏠
Working from home

Alex Bondarevskyi Alex-Bond

🏠
Working from home
View GitHub Profile
RUN apt-get install -y libwebp-dev libde265-dev autotools-dev automake pkg-config libtool wget git make gcc pkg-config autoconf g++ curl
RUN wget https://github.com/strukturag/libheif/archive/v1.6.2.tar.gz && \
tar -xvf v1.6.2.tar.gz && \
cd libheif-1.6.2/ && \
./autogen.sh && \
./configure && \
make && \
make install
@Alex-Bond
Alex-Bond / mbox_reader.py
Created October 10, 2023 03:24
Fixed MboxReader
import email
from email.policy import default
class MboxReader:
def __init__(self, filename):
self.handle = open(filename, 'rb')
assert self.handle.readline().startswith(b'From ')
def __enter__(self):