Should you want to remove .html from a URL you can paste the following in your .htaccess file in the root www/public_html directory: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST}…
Remove .html from URL
WHMCS Call to a member function getResponseFormat() on null Error – Solved
When you're accepting an order for a domain or trying to send it to the registrar you might encounter this error: Call to a member function getResponseFormat() on null Error…
Prompt Users For Input In A Command Line Script
Say you have a little CLI tool, but you want to be able to prompt a user for additional data after the script has started, rather than passing it in…
Change username Ubuntu 16.04
To change the username in Ubuntu it is strongly advised that you are not logged in with the username you're trying to change. As such we created temporary user and…
Error when creating encrypted disk Ubuntu 16.04
In Ubuntu 16.04 you might receive the following error when creating an encrypted volume: error creating luks device error spawning command-line cryptsetup luksformat To resolve this issue, you simply need…
Stop and remove all docker containers
Docker containers need to be stopped prior to being removed. As such the following commands should be run sequentially: docker stop $(docker ps -a -q) docker rm $(docker ps -a…
Start all docker containers with one command
To start all docker containers you can run the following command: docker restart $(docker ps -a -q)
Create docker registry with Letsencrypt
Firstly you will need to get letsencrypt working and get a certificate for the domain which you are planning on accessing your registry with. Issue the following commands: git clone…
Fail2ban – prevent brute force and DDOS
Fail2ban is an awesome piece of software which protects against brute force and DDOS attacks. To install fail2ban: sudo apt-get install fail2ban The next step is to create a local…
Install KVM guest using VNC
It's simple enough to install a headless (without display) distro using KVM, but when it comes to installing a guest with a user interface, this needs to be done over…









