Conjuring unicorns

All things related to Terminal

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 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

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 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
article

The Silver Searcher

Clarice Bouwer
Clarice Bouwer
Thursday, 29 August 2019 · Estimated 1 minute read

The utility was designed to replace 99% of the uses of grep. As stated in the man page Ack searches the named input FILEs (or standard input if no files are named, or the file name - is given) for l…

article

Greet users with the message of the day

Clarice Bouwer
Clarice Bouwer
Friday, 15 February 2019 · Estimated 1 minute read

The message of the day is known as motd. It's used to send a message to users after logging into a shell, commonly used on hosts. You can generate ASCII art and paste it into the motd file to spice t…

#95
article

Cisco ASA cheat sheet

Clarice Bouwer
Clarice Bouwer
Sunday, 10 February 2019 · Estimated 2 minute read

Cisco Adaptive Security Appliancy is known as the Cisco ASA. It is used to protect networks and data centres. It offers firewall, VPN and facilitates dynamic routing amongst other features and capabi…

article

Getting started with Cisco Adaptive Security Virtual Appliance in AWS

Clarice Bouwer
Clarice Bouwer
Saturday, 9 February 2019 · Estimated 4 minute read

I work with NATs and ACLs on Cisco ASA (Adaptive Security Appliance) in the terminal. I want a sandbox environment for me to go bonkers. I couldn't find an image from Cisco to download and install so…

article

Migrate my search from Solr to Elasticsearch

Clarice Bouwer
Clarice Bouwer
Tuesday, 5 February 2019 · Estimated 4 minute read

An NRT (near-realtime) search platform. It's about a one second delay from the time a document is indexed until it is searchable. I have been using Solr for my search but have been wanting to migrate…

article

Installing Elasticsearch and Kibana

Clarice Bouwer
Clarice Bouwer
Tuesday, 5 February 2019 · Estimated 4 minute read

An NRT (near-realtime) search platform. It's about a one second delay from the time a document is indexed until it is searchable. Elasticsearch Installation There are a lot of ways to install Elastic…

article

Uninstall an app from the terminal

Clarice Bouwer
Clarice Bouwer
Monday, 4 February 2019 · Estimated 1 minute read

I installed an application. It misbehaved. I wanted to try out a time tracking app. It should let me track reminders and record activity spent in meetings, out-of-office and on tasks I am working on,…

article

Set $JAVA_HOME in Linux

Clarice Bouwer
Clarice Bouwer
Saturday, 2 February 2019 · Estimated 1 minute read

$JAVA_HOME an environment variable. It is the root path of the JRE or JDK which some applications and services use to access Java. I know that Java is installed but its not in the path , the output …

article

Working With Git Remotes

Clarice Bouwer
Clarice Bouwer
Tuesday, 29 January 2019 · Estimated 2 minute read

I have a repository with two remotes. origin is my personal repository and bitbucket is by BitBucket repository. The nugget of this post is to push to both branches in one command. The git remote com…

article

Create a symlink for hidden files

Clarice Bouwer
Clarice Bouwer
Sunday, 27 January 2019 · Estimated 1 minute read

I want to create a symlink for all hidden files excluding the hidden directories. I want to put my configuration files in my home directory into version control. I need to exclude the hidden director…

article

Why I Create Atomic Commits In Git

Clarice Bouwer
Clarice Bouwer
Saturday, 26 January 2019 · Estimated 2 minute read

I wrote about crafting changes into small atomic commits using Git. It looked like there was some confusion. I want to share what I understand about atomic and monolithic commits and why I create ato…

article

How To Craft Your Changes Into Small Atomic Commits Using Git

Clarice Bouwer
Clarice Bouwer
Tuesday, 15 January 2019 · Estimated 6 minute read

Small, atomic commits makes it easier for code reviews, browsing the history and reverting changes. Life happens and commits can touch more lines and files than I want but the changes committed shoul…

article

Using the tar Command in Linux

Clarice Bouwer
Clarice Bouwer
Monday, 14 January 2019 · Estimated 6 minute read

I used to right-click on a zipped file and manage the archive using the GUI. Gone are those days. Now I mainly work with tar files and need a cheat sheet to remember the commands for the terminal. 😊 …

article

Checking Disk Usage in Linux

Clarice Bouwer
Clarice Bouwer
Sunday, 13 January 2019 · Estimated 8 minute read

I had to find out much free space was available on a file system on a Linux server. Now getting this information on the GUI is simple - a few clicks, modals and stuff, but the server doesn't have a G…