Here is how to check when an EC2 instance was created: Option 1. Check the Volume attachment time Option 2. Using a Python script import boto3 ec2 = boto3.resource('ec2', region_name='instance_region_name') volume = ec2.Volume('vol-id') print volume...
In this guide I will cover 3 parts: Detecting a DDoS attackProtecting from a DDoS attackTesting resistance to DDoS Detecting a DDoS attack on Linux To detect DDoS attacks on your server you can use netstat: netstat | grep http | wc -l netstat -ntu |...
Here are 3 different ways to restart EC2 AWS Instance: 1. Reboot EC2 Instance using AWS Console Login into your AWS EC2 ConsoleNavigate to “Instances” and Select instance which you want to restart, right-click on it and then select...
From time to time I’m experiencing Connection timed out errors in cPanel > Sent Summary and I need a way to run MTR at that exact time to troubleshoot the network problem. For this I can create a new script, mtr.sh: /usr/sbin/mtr -r -c 2...
To enable debug mode in CakePHP go to config folder and open app.php find ‘debug’ => filter_var(env(‘DEBUG’, false), FILTER_VALIDATE_BOOLEAN), and change the value of debug false to true Older CakePHP versions To enable...
Shell scripts are always to handy to do some tasks on a Linux-based server for SysAdmins, they can automate everything they do frequently through a shell script. Here I’m going to share a simple script that I got from Muhammed Fasal to monitor...
When migrating a WordPress website database import failed with the error: mysql -u USERNAME -p DB-NAME < /PATH/dump.sql ERROR 1227 (42000) at line 3258: Access denied; you need (at least one of) the SUPER privilege(s) for this operation so I...
Emails sent from cPanel to yahoo users are being rejected with the following error: Messages from X temporarily deferred due to unexpected volume or user complaints – 4.16.55.1; see This happens because the IP was blacklisted by Yahoo due to...
DupeGuru is a simple application to locate all the duplicate files on your PC and delete them easily. The hard disk may be filled with duplicate files that are useless and use valuable space. If we try to locate these files manually would be an...
In Linux, there are a variety of commands to locate files, each with its own set of advantages and disadvantages. Some are only available in certain distributions, and others are not installed by default. Let’s start with the quickest approach...