Skip to content

Instantly share code, notes, and snippets.

View john-bartu's full-sized avatar

Jan Bartula john-bartu

View GitHub Profile
@john-bartu
john-bartu / cdm_fio.sh
Last active October 1, 2025 15:54 — forked from dullage/cdm_fio.sh
Reproducing CrystalDiskMark tests with fio
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9.
# Recommended SIZE setting for different drives:
# (SATA) SSD: 1024
# (ANY) HDD: 256
# (High End NVME) SSD: 4096
# (Low-Mid End NVME) SSD: 1024
@john-bartu
john-bartu / email_address_extractor.py
Created January 27, 2022 16:29
Script Allows export email addresses from inbox package of mail client. Like mozilla thunderbird INBOX, it also reads INBOX.mbox, or INBOX.box
###
# This script allows to export from Mozilla Thunderbird IBOX file addresses (recipents and senders)
# For import (contacts.csv) to google (GMAIL) contacts or into other contacts applications
# INBOX, or other filename containing mails like SENT or whatever your email client name it
# reads INOBX or INBOX.mbox or INBOX.box
# if file is heavy > 10GB opening soemtiems last few minutes
# I was working on 27GB INBOX file and 3GB SENT file. It took me 10 minutes.
###
import mailbox