Skip to content

Instantly share code, notes, and snippets.

View joshuaja's full-sized avatar

Joshua Jack joshuaja

View GitHub Profile
@joshuaja
joshuaja / mbox_attachment_extractor.py
Last active February 12, 2025 17:30
Extract attachments from a large mbox file and save them to directories while managing filenames and progress
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Mbox Attachment Extractor
==========================
Extract attachments from a large mbox file and save them to directories while managing filenames and progress.
Usage:
python3 script.py -i mailbox.mbox -o attachments/ --extensions .pdf
@joshuaja
joshuaja / .bashrc.linux
Created June 21, 2018 15:06
.bashrc files to decorate prompt with current Git branch and commit status
# Rename file to .bashrc
# Fedora/RHEL
# from https://fedoraproject.org/wiki/Git_quick_reference
# Update prompt to show current Git branch and commit status
# (branch *) means tracked file is modified
# (branch +) means tracked file is modified and staged with 'git add'
# (branch %) means untracked files are in your tree
# Combinations of markers are possible
@joshuaja
joshuaja / simple-git-workflow.md
Created March 1, 2017 17:56 — forked from leesmith/simple-git-workflow.md
Simple Git Workflow For Continuous Delivery

Simple Git Workflow For Continuous Delivery

Workflow guidelines:

  • master branch is always production-ready, deployable, 100% green test suite
  • New development is done on feature branches, with frequent rebasing onto master
  • Clean commit history by preferring to rebase instead of merge (git pull is configured to automatically rebase)

rebase workflow

Workflow