How to Generate a Random AlphNumeric String in Linux/MacOS
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 →
50 articles about linux development, tools, and best practices
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 →
If you are getting the following error in MySQL:
ERROR 1030 (HY000): Got error 168 from storage engine
Then this usually means that your server has …
Read Article →On Linux, you can change the hostname by using the hostnamectl command.
You’ll typically need to do this right after provisioning a new server, …
Read Article →Certbot allows simple, quick and free provisioning of SSL certificates using LetsEncrypt.
sudo snap …
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 …
I needed to find all files in a directory on Linux that ended with the file extension .php.
You …
Read Article →Operating Systems come in a few competing choices, of which the major players are Apple’s MacOS, Microsoft’s Windows and then the various …
Read Article →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 →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 …
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 →Let’s take a really common example. Say we want to follow redirects with cURL for google.com. It is common to curl follow redirect a URL.
I often need to test a specific Linux binary or make sure something works as expected from yum install or apt install.
To do this, it’s common …
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.
Screen on Linux is a popular command-line program that lets you multiplex between interactive shells.
What that means is, you can use screen to save …
I am a professional software engineer and do an absolute ton of devops work as well.
I’ve actually never been hired into devops roles as I …
Read Article →Sometimes you need to see what an application is doing under the hood — what files it’s opening, what system calls it’s making, or what …
Read Article →The Web server (running the Web site) is currently unable to handle the HTTP request due to a temporary overloading or maintenance of the server. The …
Read Article →If you’re managing a headless Ubuntu server and want to check the network speed, you can’t just open speedtest.net in a browser. The …
Read Article →
Today we have finalised for ourselves that Windows 7 is definitely a “better” operating system than Ubuntu 12.04 when it comes to …
Read Article →You are no doubt trying to add a vhost and you get the following error when attempting to affect changes by restarting the http daemon (httpd):
(EAI …
Read Article →Firstly let’s just note that crontabs are read in the following way:
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of …
Read Article →
A quick and easy way would be to type the following in one line with single spaces in the Terminal.
This way of installing OpenGL and SDL libraries …