Docker is a framework for downloading and easily installing applications on your server. If you don’t use Docker and install an application directly on your system, it can change your system files, and you may need to resolve dependencies, among other things. Uninstalling the application can leave stuff on your server as well. But with […]
All About Winget Upgrade in Windows
Those moving from one operating system to another must get used to a new way of doing things. If you’re a lifetime Windows user, you need to familiarize yourself with the concept of packages, repositories, and more because you come from a world where you download a file from the Internet or external media, double-click […]
All You Need To Know About How To Paste In Vim
Vim has a surprisingly robust pasting mechanism. For what looks like a basic text editing program, you can perform complex wizardry using concepts like registers, and you can even enhance its pasting functionality using plugins. All of this without resorting to a mouse! Vim is an exemplary example of how a keyboard-based tool can encapsulate […]
How To Do Bash Math, And When To Use It
Bash math refers to the mathematical operations you can conduct on the Linux terminal. Normally, you wouldn’t associate bash with math operations – after all, why would you choose to type in clunky commands on the terminal, when you could open a calculator instead? However, there are some surprisingly useful use case scenarios where it […]
How to Use the xxd Command in Linux
We use the xxd command in Linux to convert a file into its hex equivalent and to show the hex output side by side with the ASCII representation. This might seem like a niche use case scenario, but it’s surprisingly useful for debugging. There are certain file formats, for example, that are supposed to start […]
How to Use “envsubst” In Linux
The “envsubst” tool is part of the GNU’s “gettext” package that programmers use to create multilingual programs. We use envsubst to substitute environment variables in a file or a data stream. This is particularly useful when creating and adapting configuration file templates in a variety of scenarios. For example, you sometimes have a template configuration […]
How to Use the Awk “If Else” Statement
Earlier, I’d written about how the awk statement in Linux can be a superior alternative to grep in many situations. One of those included the ability to perform complex operations, including control loops. The “if-else” statement is one of the most basic control loops in all languages. While it’s strange to view awk as a […]
How to Remove a Remote Origin in Git
Most people working on a git repository, have done so by cloning a remote one. The thousands of developers who work on projects everyday, have mostly taken an existing repo and are working on it. When you do this, git sets up a connection to the remote repo and calls it the “origin”. This makes […]
What Is SIGSEGV and How Do We Fix It?
SIGSEGV is a signal sent by the operating system to a process indicating that the process has attempted to access memory that it shouldn’t. This kind of error is prevalent in low-level code – that deals directly with system code, for example. These days, SIGSEGV errors are rare because of improvements in modern programming languages […]
How to Reset the Last Commit in Git
While the purpose of git is to maintain a faithful record of a project’s history, it’s usually not a good idea to blindly include every single change, including mistakes or tiny commits that should be merged into a single one. I’ve written before, about how we can use git squash to keep a clean project, […]