Skip to content

Instantly share code, notes, and snippets.

View davidmpaz's full-sized avatar

David Paz davidmpaz

View GitHub Profile
@davidmpaz
davidmpaz / parseml.py
Created October 28, 2022 15:17 — forked from urschrei/parseml.py
Extract attachments from EML files in the current dir, and write them to the output subdir
#!/usr/bin/env python
"""
2020 update:
- More iterators, fewer lists
- Python 3 compatible
- Processes files in parallel
(one thread per CPU, but that's not really how it works)
"""
@davidmpaz
davidmpaz / prepare-commit-msg.sh
Last active April 27, 2017 12:25 — forked from bartoszmajsak/prepare-commit-msg.sh
Forked to automatically append git commit with a branch name instead prepend
#!/bin/bash
#
# Appends a message to every comit. Usefull for linking issues back
# from bug track systems.
#
# This way you can customize which branches should be skipped when
# apending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then