Skip to content

Automating my work life

I chose a lazy person to do a hard job. Because a lazy person will find an easy way to do it.

— Bill Gates

The Usual

This site contains generic examples of things I have learned about and use at work. If my work life was a story, every chapter would start with something like this...

I did not realize these things had these properties! I wonder how many of these things exist with this, that, or the other thing? If I give you a list of the things I care about, can you do a "search" and give me a list of things that have the properties I am looking for?

— Ends (aka End Users)

The Usual Diagram

Requirements

  1. Vault - I am using the vault CLI to access secrets at work for API calls (vaultOAuthToken.mjs line 15), but this is not required to use the generic GitHub API and Google BigQuery examples.

  2. Google Cloud - I am using the gcloud CLI to authenticate and access BigQuery.

gcloud CLI - Authorize with a user account

gcloud auth application-default login

Tests

npm run test
 PASS  test/general.test.js
 PASS  test/requirements.test.js

Test Suites: 2 passed, 2 total
Tests:       8 passed, 8 total
Snapshots:   0 total
Time:        2.005 s
Ran all test suites.

CLI examples

npm run start

CLI