Skip to content

Instantly share code, notes, and snippets.

View mstroiu's full-sized avatar
🏠
Working from home

Marian Stroiu mstroiu

🏠
Working from home
View GitHub Profile
@mstroiu
mstroiu / emlToMbox.py
Created November 7, 2021 15:38
emlToMbox.py
#!/usr/bin/env python
"""Converts a directory full of .eml files to a single Unix "mbox" file.
Accepts as input either an individual .eml file or a directory containing one
or more .eml files.
The output mbox will be created if it doesn't already exist. If it exists,
it will be appended to. There is no checking for duplicates, so use caution.
If duplicate filtering is desired, it could be added to add_file_to_mbox().
@mstroiu
mstroiu / prepare-commit-msg.sh
Created February 23, 2022 07:13 — forked from nivrith/prepare-commit-msg.sh
prepare-commit-message.sh
#!/bin/bash
#
# Inspects branch name and checks if it contains a Jira ticket number (i.e. ABC-123).
# If yes, commit message will be automatically prepended with [ABC-123].
#
# Useful for looking through git history and relating a commit or group of commits
# back to a user story.
#