In this article, I’d like to explain how to implement one of the more common and simple methods of securing the ELK Stack — deploying…
Linux cheat sheet
A way to get your code deployed to the production server Webhook allows to automatically retrieve the newest code any time a push is performed…
On Linux you can use dd to make a backup from SD card. Reverse if and of (i.e. to where they point – source and destination) afterwards to restore, but…
Introduction to Fail2Ban By default, a client connects to SSH using port 22. Because this is a well-known port, the default configuration is vulnerable to…
I made a simple working script to backup all the containers at once and send it on Linux backup server via RSYNC, here’s how to…
Create script file touch /root/mysql-backup/mysqldump.sh Insert this code #!/bin/bash mysqldump -u root -ppassword dbname | bzip2 -c > dbname$(date +%Y-%m-%d-%H.%M.%S).sql.bz2 Make it executable chmod +x mysqldump.sh Run…
A trunk is a single physical connection that can carry multiple VLANs. Each frame that crosses the trunk has a VLAN identifier attached to it,…
CentOS HDD S.M.A.R.T. shell script Create path exactly this path /var/prtg/scripts Install smartmontools yum install smartmontools Start the service service smartd start chkconfig smartd on…
Create “spooler.bat” and insert script below Script will check if spooler is running or not and will restart the service sc query spooler | find…
Here is a simple trick that I used to restart my python script after unhandled exception. #!/usr/bin/python from subprocess import Popen import sys filename =…