Backing up and restoring a MySQL or MariaDB database is super easy. I’ve listed out a few different ways you can do it. Example MariaDB/MySQL
Port Scan the Entire Internet in 5 Minutes?
One of my favorite sub-reddits is /r/coolgithubprojects. I check it out a few times a week looking for interesting open source projects. One interesting project
Using netstat to Monitor Connections and DDoS on Your Server
Netstat is a wonderful Linux command to peak into networking processes on your server. Combined with other commands such as sort netstat can become extremely
How To Setup a Swap Partition in Ubuntu on EC2
Many cloud servers don’t come with a swap partition setup by default, including Amazon EC2 servers. Luckily it’s fairly simple to setup. Below were using
How To Dump a Man Page to a Text File
Dumping a man page is easy, just redirect the output to standard outvia a bash as below.
Easy Log Rotation with Logrotate On Ubuntu
You don’t need to write your own log rotation service in Linux, you can use the built in service called logrotate super easily. Below is
How to Update Brew and Upgrade all Packages on OSX
I used to run Linux Ubuntu up until a few years ago as my laptop. But I find the hardware and software on a Mac
Cron Job at 7 am Everyday and Other Crontab Examples
Cron is the Linux system for repeated scheduled tasks. Below are a few examples on how to use cron, what the fields mean, and how
Search Inside Text Files With Grep
Grep is too important not to know for Linux sysadmins. Grep is commonly combined with other commands via pipes to search and filter standard output.
Several Ways to Run Queries from Bash
In some of these examples, particularly the remote server I’ve included usernames and passwords, but you might not need it locally, depending on your mysql