From time to time you might find that some scripts have been compromised for a particular user's website (WordPress, Joomla, etc). To identify the directory from where these scripts are…
Locate spam scripts in Exim WHM
Setup Apache as reverse proxy with mod_proxy Ubuntu
In order to use Tomcat with Apache it is necessary to enable the mod_proxy module for Apache to forward all requests on ports 80 and 443 to port 8080. Tomcat…
Setup LetsEncrypt with Nginx on Ubuntu
The first step is to add the certbot repo: sudo add-apt-repository ppa:certbot/certbot Next, update the package list: sudo apt-get update Next, install Certbot's Nginx package: sudo apt-get install python-certbot-nginx Next,…
Create local folder symlink to Apache
Let's say you have a folder somewhere on your local machine and you want Apache to serve your website from this folder. First, remove the html directory with: sudo rm…
Mount NFS share Ubuntu
To mount an NFS share in Ubuntu you need to install nfs-common: sudo apt-get install nfs-common Next, create the directory to which you would like to mount the share: sudo…
Delete files older than x many days Ubuntu Terminal
To delete files older than 'x' many days, you can execute the following command in the terminal: find /path/to/ -type f -mtime +7 -name '*.zip' -execdir rm — '{}' ;…
Telegram – find API token for existing bot
Open Telegram and search for: BotFather Issue the following command: /mybots You will see a list of existing bots. Select the bot for which you would like the token, and…
Received unexpected end-of-file from SFTP server – Solved
If you receive the following error when trying to use SFTP: Received unexpected end-of-file from SFTP server This can be solved as follows: sudo nano /etc/ssh/sshd_config Comment out the following…
Get Chat Id of Telegram user
The first step is to get the API token for you bot. See this guide on how to do this. Next, navigate the following URL, replacing YOUR_BOT_API_TOKEN with the token…
Remove node from cluster Proxmox
To remove a node from a Proxmox cluster you will need to SSH into any node other than the one you want removed. Next, identify the name of the node…
