Terminal Colors Are Just Text

ANSI escape codes are used to colorize text in a terminal.

 · 3 min · 603 words

You Can Detect if Code Is Being Run Inside a Terminal

Most programming languages have a way to detect if code is being run in a terminal.

 · 2 min · 318 words

Creating High Quality GIFs from Asciinema Recordings

Use agg with a huge font size to get high quality GIFs.

 · Updated  · 1 min · 184 words

Quick Tip: Mute the Terminal Login Message with a .hushlogin File

Create a .hushlogin file in your home directory to silence login messages.

 · Updated  · 1 min · 102 words

How to Clone a Specific Git Branch Without Other Branches

Clone a single Git branch using –single-branch and –depth for faster cloning.

 · Updated  · 1 min · 119 words

Delete All Pulumi Stacks with One Command

How to delete all Pulumi stacks with a shell one-liner.

 · Updated  · 2 min · 251 words

AWS SSM: Run a Shell Command Against Multiple EC2 Instances

How to run a shell command against multiple EC2 instances using AWS Systems Manager

 · Updated  · 3 min · 626 words

Delete All node_modules Directories Recursively in macOS and Linux

How to delete all node_modules directories recursively in macOS and Linux systems.

Scrape Contributor Emails From Any Git Repository

Scraping contributor emails from git repositories using git shortlog.

Cleaning Up Residual Files on macOS After Deleting Apps

Clean up residual files and directories after deleting macOS apps.