All things Terminal

Hack to fix Gatsby image process from stalling

Estimated 1 minute read

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

Utility to fix npm dependencies

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 Switches Switch Description -u, --update Interactiv…

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

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 faster feedback loop for you to build and fix code. …

How to debug a specific Gatsby package on build

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.

How to write stdout both to the terminal and a file

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.

How to recover a file from another branch in Git

Estimated 1 minute read

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

How to see the contents of stashed changes in Git

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://stackoverflow.com/questions/10725729/see-whats-in-a-stas…

How to kill processes running on localhost (macOS)

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 my port back. Find the process It will return som…

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

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

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

Estimated 1 minute read

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

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

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.

The Silver Searcher

Estimated 2 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 lines containing a match to the given PATTERN . By …

Greet users with the message of the day

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 things up. I found that patorjk.com offers a nice w…

Cisco ASA cheat sheet

Estimated 3 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 capabilities. It runs on Linux using a single Executable…

Getting started with Cisco Adaptive Security Virtual Appliance in AWS

Estimated 5 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 I chose to go shopping on the AWS Marketplace. I …

Migrate my search from Solr to Elasticsearch

Estimated 6 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 to Elasticsearch for experience in this technolog…

Installing Elasticsearch and Kibana

Estimated 6 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 Elasticsearch and on many different platforms. Pick your …

Uninstall an app from the terminal

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, etc. I need to be able to interact with it in the…

Set $JAVA_HOME in Linux

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 is empty. Configure for single user Open the shell…

Working With Git Remotes

Estimated 4 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 command lets you create, view, and delete connections…

Create a symlink for hidden files

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 directories because they contain binaries and what not. Us…

Why I Create Atomic Commits In Git

Estimated 3 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 atomic commits in Git. I got a question in Reddit by …

How To Craft Your Changes Into Small Atomic Commits Using Git

Estimated 8 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 should be distinct. "Don't mix your apples with your to…

Using the tar Command in Linux

Estimated 10 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. 😊 You can find that at the end of this post. This po…

Checking Disk Usage in Linux

Estimated 12 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 GUI so it's off to the terminal I go 😋 The other sc…

We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic. By clicking 'Accept', you agree to our website's cookie use as described in our Privacy Policy.