What I learned this week

Software

Nice overview of jq, was using the aws emr cli to describe clusters so I could SSH into them aws emr describe-cluster --cluster-id and decided to use jq instead of grep -i dns

I guess you can use spark in Athena

echo {1..10} returns 1-10

< lines awk 'NR%2 == 0' filtering raw lines out of text file with awk is pretty handy

< lines sample -r 10% quick “random” sample

In an awk rule, either the pattern or the action can be omitted, but not both. If the pattern is omitted, then the action is performed for every input line. If the action is omitted, the default action is to print all lines that match the pattern.

So, awk '/li/ {print}' mailing-list == awk '/li/' mailing-list

In make, it’s all about files. make only cares about the name of the target. It does not check whether a file of the same name actually gets created by the rule.

git shortlog command is used to summarize the output of git log.

git stash branch <new branchname>, creates a new branch, checks out the commit when you stashed your work, reapplies your work there, and then drops the stash if it applies successfully.

Business/Finance

Interesting Consulting Read RIP Chegg

Math/Stats

Travel

Other

“A man on a thousand mile walk has to forget his goal and say to himself every morning, ‘Today I’m going to cover twenty-five miles and then rest up and sleep.” ― Leo Tolstoy, War and Peace