This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| IGNORE_REGEX="${IGNORE_REGEX:-^(master$|develop$|release/)}" | |
| COMPARE_BASE="${COMPARE_BASE:-master}" | |
| git branch --merged "$COMPARE_BASE" | \ | |
| sed 's/^\*\{0,1\} *//' | \ | |
| grep -E -v "$IGNORE_REGEX" | \ | |
| while read -r branch; do | |
| merge_base="$(git merge-base "$COMPARE_BASE" "$branch")" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- History File Management --- # | |
| HISTDIR="$HOME/.history" | |
| if [[ ! -d "$HISTDIR" ]]; then | |
| mkdir "$HISTDIR" | |
| chmod 0700 "$HISTDIR" | |
| fi | |
| HISTTIMEFORMAT='%F %T ' | |
| HISTFILE="$HISTDIR/$(date -j +'%Y-%m-%dT%H:%M:%S')" # Make process-specific history file | |
| HISTFILESIZE=0 # close any old history files | |
| HISTFILESIZE=4096 # and set a large new size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import ( | |
| datetime, | |
| timedelta, | |
| ) | |
| import functools | |
| from itertools import ( | |
| chain, | |
| takewhile, | |
| ) | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| from django.http import HttpResponse | |
| # I am not sure if the default PyPE logging handler will automatically pick | |
| # this up. You might need to get some assistance from Matt to make sure it will | |
| # get logged. | |
| logger = logging.getLogger('pype.badresponse') |