Summoning binary
Gradient background

Scribbles

scribble

VS Code extensions that I use every day

Clarice Bouwer
Clarice Bouwer
Tuesday, 1 November 2022 · Estimated 1 minute read

I use numerous VS Code extensions to increase productivity and make life easier as a developer and blogger. Here are some of them: Theme Atom One Dark Theme is based on Atom's One Dark theme. It is t…

scribble

How to read Node.js environment variables

Clarice Bouwer
Clarice Bouwer
Tuesday, 18 October 2022 · Estimated 1 minute read

Running a Node app is simple. Sometimes you want to add environment variables that either contain sensitive information or are contextual to the environment you want to run your app on. You can set t…

scribble

Hack to fix Gatsby image process from stalling

Clarice Bouwer
Clarice Bouwer
Sunday, 9 October 2022 · Estimated 1 minute read

Build stuck at running jobs (image transformation) GitHub #34051

#21
scribble

Utility to fix npm dependencies

Clarice Bouwer
Clarice Bouwer
Sunday, 9 October 2022 · Estimated 1 minute read

There is a utility called npm-check that offers the ability to interactively update outdated, incorrect or unused dependencies: Take a look at the switches. It offers way more than just that. Usage S…

scribble

How to show filenames in code snippets in Gatsby in Markdown

Clarice Bouwer
Clarice Bouwer
Sunday, 9 October 2022 · Estimated 1 minute read

With the gatsby-remark-code-titles plugin. Custom title gets injected and then needs to be styled. Example from docs: Usage This plugin will parse the Markdown AST, pluck the title, and then “clean” …

#23
scribble

Why you will see the error 'Loading chunk \d+ failed'

Clarice Bouwer
Clarice Bouwer
Tuesday, 6 September 2022 · Estimated 1 minute read

I know of the following reasons why chunks cannot be downloaded: Network errors Inspect the network in the browser dev tools to find out more information about the errors. Resources not found They do…

scribble

Redact values in a map using clojure.walk/postwalk

Clarice Bouwer
Clarice Bouwer
Monday, 22 August 2022 · Estimated 1 minute read

#19
scribble

How to run a single Clojure test from the terminal using Leiningen

Clarice Bouwer
Clarice Bouwer
Monday, 8 August 2022 · Estimated 1 minute read

You may want to target and run a specific test or set of tests when testing your code so that you don't keep executing the entire suite each time you make changes to specific tests. This creates a fa…

#18
scribble

Edit your web page content directly in Chrome

Clarice Bouwer
Clarice Bouwer
Friday, 22 July 2022 · Estimated 1 minute read

Executing in the browser console will let you click and type anywhere you want on your page. This is helpful if you want to experiment with text directly on the page instead of in the DOM.

scribble

How to unmap a var from a Clojure namespace

Clarice Bouwer
Clarice Bouwer
Tuesday, 21 June 2022 · Estimated 1 minute read

I was working with a multimethod that I needed to redefine in my REPL and came across this doc. There is an entry that states if you are in the REPL and need to redefine then you will need to unmap t…

#16
scribble

How to minify CSS files via CopyWebpackPlugin for Webpack5

Clarice Bouwer
Clarice Bouwer
Wednesday, 15 June 2022 · Estimated 1 minute read

Goal Emit minified vendor-based CSS files on build. Dependencies Elaborate I have a few unminified vendor CSS files that I simply want to minify and copy to an output directory. These files were not …

scribble

How to debug a specific Gatsby package on build

Clarice Bouwer
Clarice Bouwer
Saturday, 28 May 2022 · Estimated 1 minute read

I got an error and needed to get verbose logs for a particular package during a Gatsby build. I came across this issue on GitHub with reference to a DEBUG env var that can be set to get better logs.

#14
scribble

How to write stdout both to the terminal and a file

Clarice Bouwer
Clarice Bouwer
Wednesday, 4 May 2022 · Estimated 1 minute read

Below I use the tee command to write the output of an script to both to the terminal and to a log file.

scribble

How to sort your package.json dependencies

Clarice Bouwer
Clarice Bouwer
Monday, 18 April 2022 · Estimated 1 minute read

is short hand for and . "example" is just the name of a package. You can use it verbatim because it will most likely not be in your package.json. Your packages are sorted by running npm remove even …

scribble

Name CSS Split Chunks using MiniCssExtractPlugin

Clarice Bouwer
Clarice Bouwer
Thursday, 17 March 2022 · Estimated 1 minute read

React: 17.0.2 Webpack: 5.67.0 Webpack CLI: 4.9.1 mini-css-extract-plugin 2.5.3 Snippet Objective Bust the cache for CSS files that are emitted on build using Webpack 5 with Split Chunks. Set up one …

scribble

How to recover a file from another branch in Git

Clarice Bouwer
Clarice Bouwer
Tuesday, 25 January 2022 · Estimated 1 minute read

Where branch can be any ref including a branch name, tag, HEAD. Thanks to this Stack Overflow reference.

#10
scribble

How to see the contents of stashed changes in Git

Clarice Bouwer
Clarice Bouwer
Monday, 24 January 2022 · Estimated 1 minute read

Where is the indexed location of the item in the stash. Find all items in the stash using: https://stackoverflow.com/questions/3573623/is-it-possible-to-preview-stash-contents-in-git https://stacko…

#9
scribble

How to kill processes running on localhost (macOS)

Clarice Bouwer
Clarice Bouwer
Thursday, 20 January 2022 · Estimated 2 minute read

Motivation Sometimes a process, like a web server or running Clojure REPL, closes unexpectedly but the port is never released. I'd need to find that process and kill it so that I can rightfully claim…

scribble

How to find text anywhere in your Git repository from the very beginning

Clarice Bouwer
Clarice Bouwer
Wednesday, 19 January 2022 · Estimated 1 minute read

Stack Overflow - Search all of Git history for a string Stack Overflow - How to grep Git commit diffs or contents for a certain word

#5
scribble

Why you will see the error 'Loading chunk \d+ failed'

Clarice Bouwer
Clarice Bouwer
Wednesday, 19 January 2022 · Estimated 1 minute read

This includes cases where the file has been renamed. More Stack Overflow: , show all commits including merges

#6
scribble

How to use a different email address in Git in sub directories

Clarice Bouwer
Clarice Bouwer
Wednesday, 19 January 2022 · Estimated 1 minute read

I want to override my personal email address I use for Git with my work email address in my work directory without manually changing it each time.

#7
scribble

How to search through all files in your web application in Google Chrome

Clarice Bouwer
Clarice Bouwer
Tuesday, 18 January 2022 · Estimated 1 minute read

I am running Version 97.0.4692.71 (Official Build) (arm64) to date. Why? Use this feature to find text in any resource served by the web server. It's handy for searching for things where the location…

scribble

How to sort stories alphabetically in Storybook (6.2)

Clarice Bouwer
Clarice Bouwer
Monday, 17 January 2022 · Estimated 1 minute read

scribble

How to reference a local Webpack npm package

Clarice Bouwer
Clarice Bouwer
Friday, 14 January 2022 · Estimated 1 minute read

With the help of this question and answer from Stack Overflow: Install the local npm package using the file path. Check node_modules to see the installed package. (or depending on the requirements) …

scribble

Use React hooks inside an MDX story in Storybook

Clarice Bouwer
Clarice Bouwer
Thursday, 13 January 2022 · Estimated 1 minute read