Skip to content

Instantly share code, notes, and snippets.

View VPetar's full-sized avatar
💭
Rockin' in the free world

VPetar VPetar

💭
Rockin' in the free world
View GitHub Profile
@VPetar
VPetar / find-old-branches.sh
Created December 20, 2022 12:30 — forked from mroderick/find-old-branches.sh
A small script to find stale branches
#!/bin/bash
# This is a very naive script, it doesn't do grouping and returns all branches
# I only really care about branches that have not seen commits in two months
#
# I am hoping to find some time to write a tool that can output these reports for me
# In the meantime, I am using this
echo "Merged branches"
for branch in `git branch -r --merged | grep -v HEAD`;do echo -e `git log --no-merges -n 1 --format="%ci, %cr, %an, %ae, " $branch | head -n 1` \\t$branch; done | sort -r
@VPetar
VPetar / Country Currency Codes JSON
Last active March 28, 2019 08:37 — forked from grosscorporation/Country Currency Codes JSON
currency symol, name, plural, and decimal digits for all major and minor currencies
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},