Skip to content

Instantly share code, notes, and snippets.

View xivSolutions's full-sized avatar

John Atten xivSolutions

View GitHub Profile
@xivSolutions
xivSolutions / git-prune-local-merged
Created December 8, 2016 18:11
Prune local branches that are merged into master
git branch --merged master | grep -v 'master$' | xargs git branch -d
@xivSolutions
xivSolutions / sql-server-remove-leading-zeros.sql
Created October 10, 2018 20:40
SQL Server Remove Leading Zeros
SELECT SUBSTRING('00008815208', PATINDEX('%[^0]%', '00008815208'+'.'), LEN('00008815208'))