If you have existing Docker containers which you'd like to update to start automatically upon boot, you can run the following command: docker update –restart=always CONTAINER_NAME There are a couple…
Auto start Tomcat and Docker containers
Disable smart error for specific disk Proxmox
We recently removed a disk from Proxmox and started receiving SMART errors with the info FailedReadSmartData. All that was required was to edit the smartd.conf file as follows: nano /etc/smartd.conf…
UNMS Docker Redis keeps restarting
After updating UNMS Redis sometimes gets itself into a restart loop. To solve this, simply run the following three commands and Bob should be your uncle 🙂 sudo ~unms/app/unms-cli stop…
Enable PHP exec and shell_exec PHP-FPM WHM/cPanel
Edit the following file (be sure to replace username.tld with the appropriate username): nano /opt/cpanel/ea-php70/root/etc/php-fpm.d/username.domain.conf This assumes we are enabling these functions for PHP version 7.0. Simply change according to…
Regex to validate domain name / URL in jQuery
function is_valid_url(url) { return /^((http|https)://)?([a-zA-Z0-9_][-_a-zA-Z0-9]{0,62}.)+([a-zA-Z0-9]{1,10})$/.test(url); } Enjoy 🙂
Add new disk to Proxmox VM
Adding a new disk to an Ubuntu VM running on Proxmox can be achieved as follows: Click on the VM -> Hardware -> Add "Hard Disk". I always choose cahce…
Create, get, delete cookie Javascript
With tons of information out there I searched for way to long to find out how to do basic cookie manipulation in Javascript / jQuery, so here goes: Create/Set cookie…
DirectAdmin website showing as suspended
From time to time DirectAdmin shows a website as suspended even though the website is not suspended. This often happens if a client doesn't pay their hosting invoice, ends up…
Windows mapped network drive over SFTP
After searching the Net high and low I came across some fantastic open-source software called SSHFS-Win. All instructions on how to setup and use are available on the linked GitHub…
Resize/Grow/Shrink LVM disk Proxmox
To resize a LVM disk you can start by listing the disks with the following command: lvdisplay You should get an ouput similar to that shown in the following image:…









