How to set ZSH as your default Shell
You may have installed ZSH and every-time you open your terminal, it opens BASH by default.
How do you set your default shell to open as ZSH? …
Read Article →132 articles about cli development, tools, and best practices
You may have installed ZSH and every-time you open your terminal, it opens BASH by default.
How do you set your default shell to open as ZSH? …
Read Article →If you need to either Encode or Decode a Base64 value, there are many ways to achieve this, one of them is directly from your commandline itself!
There are a few different ways to enable Syntax Highlighting in Vim.
Add syntax on to your local ~/.vimrc
echo "syntax …
Read Article →
You may come across a message that reads similar to the following:
<meta charset="utf-8">Encoded authorization failure message
A full …
Read Article →If you need to generate a random AlphaNumeric string from the Linux/MacOS Command-Line, then you can use the following script:
dd if=/dev/random bs=8 …
Read Article →
Sometimes you will find that your Mac is running very hot, and you may want to keep track of it over time to see if it’s persistent or only a …
Read Article →This error often looks something like:
.zshrc: /usr/local/bin/aws: bad interpreter:
/usr/local/opt/python/bin/python3.6: no such file or directory …
Read Article →
If you have a CommandLine application (CLI) written in Python, you have a number of ways that you can take arguments from the user.
You could take the …
Read Article →If you get the following error while trying to install something via Homebrew
AttributeError: 'int' object has no attribute 'split' - make: *** …
By default, Docker pushes its images to Docker Hub.
While Docker Hub is a great way to share both your public and private images, you may find the …
Read Article →So for some strange reason, your audio has stopped playing through the Macbook Pro speakers, but if you plug in an external audio device, it still …
Read Article →chmod alters the permissions for a file or directory, you could allow full read/write access to a file or directory by running the following command: …
You may find your /var/log/journal directory taking up a lot of disk-space.
How do you go about removing, or deleting all these files under var log …
It’s amazing how many times I’ve need to find out the total size of all the files in a directory on one of our servers.
I have grown to …
Read Article →I tail logs quite a lot.
An example would be to tail the Apache2 access logs.
This is simple to do:
tail -f /var/log/apache2/access.log
This will show …
Read Article →If you need to replace all newline characters with a comma, or perhaps some other delimiter, then using the build-in tr utility will work very well …
You have a directory with a lot of files, and you want to delete only the files that don’t match a specific extension.
This is a simple task …
Read Article →So you are getting an error 404 or perhaps even worse, a 500!
The error in your Apache2 logs looks something like this:
***.162.245.*** - - …
If you’ve ever typed date into your Ubuntu Server and seen a different time or timezone appear than you expected, then it probably means that …
Learning Go or Golang as a Python developer, programmer or software engineer is easier than you think.
While there are quite a lot of things to learn …
Read Article →Programming languages provide the ability to remove special characters from a string quite easily.
Sometimes you need to also do this from your …
Read Article →Given a directory that contains:
|
|- app.py
|- requirements.txt
|- ...
|- <- other-files ->
|- ...
We can create a runme.sh file to always make …
Docker images are usually stored on Docker Hub, but AWS’s Elastic Container Registry can also be used. It’s a great solution and this post …
Read Article →There is a fantastic tool to see and monitor Bandwidth and Network Traffic on Linux.
It’s called bmon and it works out of the box.