Skip to content

Instantly share code, notes, and snippets.

View salfab's full-sized avatar

Fabio Salvalai salfab

View GitHub Profile
@salfab
salfab / prepare-commit-msg
Created April 28, 2017 15:45
Prefix commit messages with JIRA name as typically found in gitflow's branche naming conventions
#!/bin/sh
# Regex used to extract the issue id
REGEX_ISSUE_ID="s/\(feature\|bugfix\|hotfix\release\)\/\(\w*-[0-9]*\)[^0-9]*/\2/p"
# Find current branch name
BRANCH_NAME=$(git symbolic-ref --short HEAD)
if [[ -z "$BRANCH_NAME" ]]; then
echo "No brach name... "; exit 1
fi
@salfab
salfab / myplayer.py
Created June 22, 2013 11:37
subclassed xbmc.Player
import sys, email, xbmcgui, xbmc
import string, time, mimetypes, re, os
import time
import os
import xbmcaddon
__author__ = 'Salfab'
__addonID__ = "script.reliableresume"