Compare commits
3 Commits
bc58d71ed5
...
4e6211130f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e6211130f | ||
|
|
70d20e13ae | ||
|
|
c0a7449e31 |
@@ -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("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("GRUBHUB|DD\\s+\\*DOORDASH") then "Expenses:Food:Delivery"
|
||||||
elif test("MARKET@WORK") then "Expenses:Food:Snacks"
|
elif test("MARKET@WORK") then "Expenses:Food:Snacks"
|
||||||
|
elif test("Interest earned") then "Income:Interest"
|
||||||
else "UNKNOWN" end;
|
else "UNKNOWN" end;
|
||||||
|
|
||||||
def format_transactions:
|
def format_transactions:
|
||||||
@@ -35,9 +36,11 @@ def format_transactions:
|
|||||||
|
|
||||||
def rename_accounts:
|
def rename_accounts:
|
||||||
map(.name |= (
|
map(.name |= (
|
||||||
if (.| startswith("Adv Plus Banking")) then "Checking"
|
if (.| contains("7778")) then "Checking"
|
||||||
elif (.| startswith("Unlimited Cash Rewards Visa Signature")) then "Credit"
|
elif (.| contains("8704")) then "Assets:Sofi:Checking"
|
||||||
elif (.| startswith("Amazon Prime Rewards Visa Signature")) then "Amazon"
|
elif (.| contains("5809")) then "Credit"
|
||||||
|
elif (.| contains("3116")) then "Amazon"
|
||||||
|
elif (.| contains("3013")) then "Savings"
|
||||||
end));
|
end));
|
||||||
|
|
||||||
.accounts | rename_accounts | format_transactions[]
|
.accounts | rename_accounts | format_transactions[]
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ update() {
|
|||||||
|
|
||||||
# Nixos VMs
|
# Nixos VMs
|
||||||
ssh media@media.randomctf.com -t "$(typeset -f update); update"
|
ssh media@media.randomctf.com -t "$(typeset -f update); update"
|
||||||
ssh logging@logging.randomctf.local -t "$(typeset -f update); update"
|
ssh logging@logging.randomctf.lan -t "$(typeset -f update); update"
|
||||||
ssh mindforge@mindforge.randomctf.local -t "$(typeset -f update); update"
|
ssh mindforge@mindforge.randomctf.lan -t "$(typeset -f update); update"
|
||||||
ssh mnemosyne@mnemosyne.randomctf.local -t "$(typeset -f update); update"
|
ssh mnemosyne@mnemosyne.randomctf.lan -t "$(typeset -f update); update"
|
||||||
|
|
||||||
# Ubuntu VMs
|
# 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user