Starting Vim
vim [file1] [file2] ...
It's hard to quarrel with that ancient justification of the free press: "America's right to know." It seems almost cruel to ask, ingeniously, "America's right to know what, please? Science? Mathematics? Economics? Foreign languages?"
None of those things, of course. In fact, one might well suppose that the popular feeling is that Americans are a lot better off without any of that tripe.
There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way throughout political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."
Politicians have routinely striven to speak the language of Shakespeare and Milton as ungrammaticaly as possible in order to avoid offending their audiences by appearing to have gone to school. Thus, Adlai Stevenson, who incautiously allowed intelligence and learning and wit to peep out of his speeches, found the American people
Picking the right architecture = Picking the right battles + Managing trade-offs
jq will sort (-S
) the whole file (.
) and compare STDOUT (<()
) with diff
diff <(jq -S . A.json) <(jq -S . B.json)
/*** | |
Inspired by http://choly.ca/post/typescript-json/ , except this is only for parsing (not stringifying). | |
If you use this, I'd appreciate some credit and some feedback ... but neither are required. | |
Copyright license (Apache) is at the bottom. | |
NOTE THIS WILL PROBABLY NOT WORK if your uglifier changes constructor/class names. This is a pretty common thing, and it makes me sad. | |
The main problem this solves is that JSON.stringify returns plain old JS objects, not TS instances. |
# TODO: replace :token, :user, and :repo | |
curl -H "Authorization: token :token" \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
"https://api.github.com/repos/:user/:repo/dispatches" \ | |
-d '{"event_type": "awesomeness", "client_payload": {"foo": "bar"}}' |
When I click on links from Slack or Outlook on MacOS they open in seemingly random browser windows/profiles. This is annoying.
Open links in a particular google chrome profile window. Be less annoyed.
chrome://version
and find the desired profile name. Mine was Default
. Copy that profile's directory name, like Profile 2
or Default
, not the profile's vanity name you see when you click on your profile icon in the browser.brew install finicky
. After install it should be running and you should see the icon in the upper toolbar.> Config > Create New
~/.finicky
and make it look something like this, filling in your profile name: