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…
Get Chat Id of Telegram user
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 — '{}' ;…
WooCommerce only show "completed" orders in reports
By default WooCommerce reports consider "on hold", "processing", and "completed" statuses as successful sales in the reports. I personally think only the "completed" status should be considered as a successful…
Locate spam scripts in Exim WHM
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…
unifi db – DbServer stopped – Unifi controller solved
A nice simple fix from SYSADMIN: sudo rm -f /usr/lib/unifi/bin/mongod sudo nano /usr/lib/unifi/bin/mongod Paste the following in the mongod file: #!/bin/bash exec /usr/bin/mongod ${*//–nohttpinterface/} Save the file and add permissions…
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,…
Setup Tomcat 8 with Nginx on Ubuntu
Setting up Tomcat 8 with Nginx is very straight forward. sudo nano /etc/nginx/sites-enabled/default Search for the following text with CTRL + W location / And add the following line of…
Completely uninstall Nginx Ubuntu
To completely uninstall Nginx on Ubuntu (including all config files), you can run the following command: sudo apt-get purge nginx nginx-common
Load website header/menu dynamically on multiple pages
So you've got a website consisting of multiple pages and you're tired of changing the links and information in the header/menu on each and every page. A neat solution is…
Remove trailing slash / from URL
To remove the trailing slash / from the URL in Apache, you can edit the .htaccess file in the root web directory and add the following snippet: RewriteCond %{REQUEST_FILENAME} !-d…









