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 / json
Created June 30, 2022 09:40
emojiList.json
[
{
"title": "100",
"symbol": "💯",
"keywords":
"hundred points symbol symbol wow wow win win perfect perfect parties parties"
},
{
"title": "1234",
"symbol": "🔢",
[
{ "Month": "Jan", "Sales_Figure": 21, "Perc": 5 },
{ "Month": "Feb", "Sales_Figure": 32, "Perc": 15 },
{ "Month": "Mar", "Sales_Figure": 19, "Perc": 11 },
{ "Month": "Apr", "Sales_Figure": 8, "Perc": 17 },
{ "Month": "May", "Sales_Figure": 26, "Perc": 5 },
{ "Month": "Jun", "Sales_Figure": 31, "Perc": 2 },
{ "Month": "Jul", "Sales_Figure": 37, "Perc": 28 },
{ "Month": "Aug", "Sales_Figure": 16, "Perc": 14 },
{ "Month": "Sep", "Sales_Figure": 25, "Perc": 19 },
{"test": "Test success!"}
@VPetar
VPetar / php expense categories
Last active March 28, 2019 08:43
income_expanse_categories.php
<?php
/**
* categories.php
* Created By User: VPetar
* Date: 11/23/2018
* Time: 11:27 AM
*/
return [
"incomes" => [
@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"
},