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 you would like to remove from the cluster with the following command: pvecm nodes
Linux - remove files and folders older than x days
When running cleanup scripts and you'd like to delete files and folders older than x days you can use the following commands: For zip files: find /path/to/your/folder/ -mtime +3 -name '*.zip' -execdir rm -- '{}' \; For all files and
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 -q)
Remove .html from URL
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} ^YOURDOMAIN\.co.za$ [OR] RewriteCond %{HTTP_HOST} ^www\.YOURDOMAIN\.co.