This file contains 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 | |
export prefix="origin/release" | |
export curr="$prefix/2.21" | |
export time="091900002018" | |
for repo in $(echo */); do | |
pushd $repo > /dev/null | |
if [ $(git branch -r | grep -c $curr) -ne 0 ]; then | |
export curr_line=$(($(git branch -r | grep "$prefix/[012]" | sort -r | grep -n $curr | cut -f1 -d':') + 1)) | |
export prev=$(git branch -r | grep "$prefix/[012]" | sort -r | head -n $curr_line | tail -n 1 | cut -f3 -d' ') | |
for commit in $(git log $prev..$curr --pretty=format:"%ct %d" | tail -n +1 | grep '(' | uniq -is 10 | cut -f1 -d' '); do |
This file contains 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
export CLICOLOR=1 | |
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
alias ll='ls -lFha' | |
alias cat='bat' | |
# https://github.com/Bash-it/bash-it/blob/master/aliases/available/git.aliases.bash | |
alias gpom='git push origin master' |
This file contains 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 | |
process_yaml() { | |
conf=$1 | |
echo "Processing" $conf | |
node jira-to-analytics.js -i $conf -o $(basename "$conf" .yaml).csv > /dev/null | |
echo | |
} | |
if [ "$#" -eq "1" ]; then |
This file contains 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 jira import JIRA | |
import arrow | |
from datetime import timedelta | |
DONE_ISSUES_QUERY = 'statusCategory = done' | |
SAMPLES=24 | |
jira = JIRA() | |
dates = [] |
This file contains 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 jira import JIRA | |
import arrow | |
import datetime | |
from collections import defaultdict | |
jira = JIRA() | |
work = [] | |
work.append('In Progress') | |
work.append('In Review') |
This file contains 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
# Install command line developer tools | |
xcode-select --install | |
# Install Brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Reset brew | |
brew update | |
brew upgrade brew-cask | |
brew cleanup |