Blog

A collection of quotes, things learned, and who-knows-whats

Prevent the Display, System, and Disk From Sleeping on Mac

When you step away from your Mac, it can be useful to prevent it from sleeping. Say you want to grab some coffee, but not deal with unlocking your screen and such when you get back. It’s as easy as running a quick command.

NightwatchJS Template

The following are README excerpts from a repo I’ve been working on. If you do end-to-end testing on your project, check it out, it’s a good resource. And, I’m quite happy with it.

Wait for Element Text to Equal a Specific Value in NightwatchJS

It can be useful to wait for an element’s text to equal a specific value before doing the rest of your test steps. This is possible in NightwatchJS, you just have to dig in the docs a little. Note: Instead of text, you can also wait for an element’s attribute to equal something. And instead of equal, you can do contain, or use not to check the inverse. Many other variants are available in the Expect API docs.

Set Environment Variables in Your Bash Shell From a .env File

I experimented with many ways of doing this, but my favorite solution was from this stackoverflow answer. It keeps the .env file syntax clean so that it can be used across projects. Here’s a minimal, reproducible example.

There Is a Richness and Complexity That Is Completely Inexhaustible Right at Hand

The following is an excerpt from a Jordan Peterson lecture.

Current page: 21 of 44
Total blog posts: 220