Lurker News
A command line trick, a random factoid, anything that’s interesting to you.

Comments (762) 128 threads

Show all comments

Showing thread 86 of 128

vishnugupta2 replies#
> command line trick

1. "cat foo.json | python -m json.tool" pretty print on console.
2. "cal" pretty prints current month on console. "cal 2022" pretty print current year.
> interesting to you
1. Bank of England one of the earliest banks to issue paper money was establish to finance war expenditure.
2. Federal reserve is holding (and hence funding) ~$2.7T worth of mortgage backed securities[1]. It started out as a stop gap measure to cushion 2008 crisis but they are yet to discontinue it.
[1] https://fred.stlouisfed.org/series/WSHOMCB

flobosg#
More cal tips:

* cal -3 shows the previous, current, and next month
* ncal -C shows the current month with today’s date highlighted
* ncal -C3 is equivalent to cal -3 with highlighting

_zywo#
For JSON pretty printing I generally use jq (`cat foo.json | jq`). It highlights and indents the output, and it's easy to add a filter.