If you've moved your WordPress over to another domain or changed the URL you might end up with a situation where the images that have been uploaded are pointing to…
Update WordPress image URLs after URL change
Rename Proxmox node
Renaming a Proxmox node isn't as simple as one would imagine, especially if you have existing VMs. Simply follow this guide step by step and you'll be good to go…
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…
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 🙂
Resize Ubuntu Volume group LVM
So you've seen the light and decided to start using LVM. You'll quickly find out that by default Ubuntu doesn't allocate all available disk space to the volume group. To…
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:…
Set default page cPanel/WHM
Copy index.html into the following directory: /root/cpanel3-skel/public_html
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…
Find duplicate rows MySQL
A nice simple query to find duplicate rows in MySQL: SELECT COLUMN_NAME, COUNT(*) c FROM TABLE GROUP BY COLUMN_NAME HAVING c > 1; Credit to the Tin Man
Strange emoticons/icons in Thunderbird Ubuntu
Thunderbird on Ubuntu sometimes displays enlarged icons for mails containing certain emoticons. To solve this you can run the following command: sudo apt-get install fonts-symbola
