How to know if a disk is an SSD or an HDD

Linux automatically detects SSD, and since kernel version 2.6.29, you may verify sda with: cat /sys/block/sda/queue/rotational You should get 1 for hard disks and 0 for a SSD. It will probably not work if your disk is a logical device emulated by hardware (like a RAID controller).

How to Program a Chevy Key Fob It’s easy to learn how to program a Chevy key fob. Simply hold the new key fob in your hand, make your way over to your new Chevy model, and follow these steps, whether you’re at home in Bloomington or working in Decatur: Manually unlock your car door … Read more

Basic rsync notes

Here are some basic rsync notes. Always remember… rsync interprets a directory with no trailing slash as copy this directory, and a directory with a trailing slash as copy This will put the contents of “foo” inside of “bar”: This command will put the directory “foo” inside of “bar” Remember…rsync interprets a directory with no … Read more

IP Geolocation Script

This repository contains a small script that you can use when you need to geolocate a bunch of IP addresses. It uses the IP2C API, which is free and doesn’t require any registration or API key. It takes a file containing a list of IPs as an input, and outputs a CSV friendly format. Input … Read more

Replace WordPress with a Know Good Copy

Here is a way to replace wordpress files with known good copies. Download WordPress files from GitHub repository The wp-content folder and the wp-config.php file are the only unique items in wordpress. (with the exception of domain verification files.) It contains media, plugins, and themes. Download a fresh copy of the WordPress files from the … Read more

How to Test a Slow Website

Curl Output: A brief explanation of each option is shown below: time_connect – Display the time in seconds from the connect was noticed by curl until the first byte arrived.time_namelookup – Display the time in seconds it took from the start until the name resolving was completed.time_pretransfer – Display the time in seconds it took … Read more

WHAT IS AHREFSBOT AND HOW TO BLOCK IT?

Method 1: Block Ahrefsbot With robots.txtAhrefs says that Ahrefsbot follows robots.txt rules. You can block Ahrefsbot by adding new rules to your robots.txt file. You have two options here: Change the frequency Ahrefsbot can visit your siteCompletely block Ahrefsbot from visiting your siteTo change the frequency of Ahrefsbot visiting your site, add the following code … Read more