Compare commits

..

3 Commits

Author SHA1 Message Date
Random936
4e6211130f Adding savings account check 2026-05-16 09:50:51 -04:00
Random936
70d20e13ae Updates to leger account regex in jq 2026-05-07 21:57:06 -04:00
Random936
c0a7449e31 Switching to .lan from .local to prevent mDNS issues 2026-04-24 20:09:28 -04:00
2 changed files with 10 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ def categorize_transaction:
elif test("CHICK-FIL-A|GEMELLIS\\s+ITALIAN|CHIPOTLE|SHEETZ|KUNG\\s+FU\\s+TEA") then "Expenses:Food:Restaurants"
elif test("GRUBHUB|DD\\s+\\*DOORDASH") then "Expenses:Food:Delivery"
elif test("MARKET@WORK") then "Expenses:Food:Snacks"
elif test("Interest earned") then "Income:Interest"
else "UNKNOWN" end;
def format_transactions:
@@ -35,9 +36,11 @@ def format_transactions:
def rename_accounts:
map(.name |= (
if (.| startswith("Adv Plus Banking")) then "Checking"
elif (.| startswith("Unlimited Cash Rewards Visa Signature")) then "Credit"
elif (.| startswith("Amazon Prime Rewards Visa Signature")) then "Amazon"
if (.| contains("7778")) then "Checking"
elif (.| contains("8704")) then "Assets:Sofi:Checking"
elif (.| contains("5809")) then "Credit"
elif (.| contains("3116")) then "Amazon"
elif (.| contains("3013")) then "Savings"
end));
.accounts | rename_accounts | format_transactions[]

View File

@@ -11,9 +11,9 @@ update() {
# Nixos VMs
ssh media@media.randomctf.com -t "$(typeset -f update); update"
ssh logging@logging.randomctf.local -t "$(typeset -f update); update"
ssh mindforge@mindforge.randomctf.local -t "$(typeset -f update); update"
ssh mnemosyne@mnemosyne.randomctf.local -t "$(typeset -f update); update"
ssh logging@logging.randomctf.lan -t "$(typeset -f update); update"
ssh mindforge@mindforge.randomctf.lan -t "$(typeset -f update); update"
ssh mnemosyne@mnemosyne.randomctf.lan -t "$(typeset -f update); update"
# Ubuntu VMs
ssh pbx@pbx.randomctf.local -t "sudo apt update -y && sudo apt upgrade -y"
ssh pbx@pbx.randomctf.lan -t "sudo apt update -y && sudo apt upgrade -y"