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…
Telegram – find API token for existing bot
sign_and_send_pubkey: signing failed: agent refused operation – SOLVED
To solve this problem, you can run: ssh-add
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…
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,…
SSH/SCP into cPanel
It is very useful to be able to SSH into cPanel for a number of reasons. One such reason is the ability to make use of Git. Another benefit is…
Edit PDF invoice WHMCS
WHMCS generated invoices are neat and professional, though sometimes it is useful to be able to add or edit information to/on these PDF invoices. The file that needs to be…









