Stop generating additional image sizes in WordPress

When a image added to media library, WordPress will generate 6 default image sizes and store them separately. Then theme and plugins might generate some additional image sizes. In my case total of 13 additional image sizes were created. 🤯

How I put a stop to spam in Contact Form 7

Contact Form 7 Limit Submissions: Unfortunately there was no available plugins or codes to limit the submissions in Contact Form 7, so I built one. This is how I built it. Create Table in Database: First I created a table

Useful Nginx Hacks

The Regular Expression translates to: “rewrite all URLs without any ‘.’ (dot) in them that don’t end with a ‘/’ to the URI + ‘/’” Or simply: “If the URI doesn’t have a period and does not end with a

Useful RunCloud Hacks

In this page I shared all the RunCloud hacks that I have been using. 1) WordPress under subdirectory in Nginx If you want to install WordPress under subdirectory in RunCloud Native Nginx stack, then this will help you configure it.

How I almost got hacked

This is a story about how I almost got hacked. By “almost” I meant the virus infected me but the attacker did not accomplish what he was supposed to. Let me tell you briefly. Today I was debugging & testing

How I discovered faulty code in a WordPress theme

Update: I can’t seem to reproduce the issue anymore. I don’t know what exactly happened. I have been using Publisher WordPress Theme by Better-Studio for a long time. 5 of my clients uses it. And to be honest this is

Force HTTPS non-www or www using .htaccess

Use the following codes on .htaccess to force non-www or www on your site. The below codes works perfectly when your setup using Nginx in front of Apache as a reverse proxy. Force non-www + HTTPS # Force non-www+https <IfModule

Nginx config for Cloud Torrent

If Cloud Torrent setup not working with Nginx, try the below codes. Nginx as Reverse Proxy location / { proxy_pass; } location /sync { proxy_pass; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; } Native Nginx location /

Filemasking in DigitalOcean Spaces Sync

DigitalOcean Spaces Sync plugin connects your WordPress Media Library to a container in DigitalOcean Spaces. It syncs data such as images, attachments from your website to DigitalOcean Spaces Object Storage and replaces links to images (optional). You may keep the

Increase Swap in Linux

Swap space is fake memory that is actually disk space. The purpose of swap space is to be emergency overflow memory. Normally, if your server runs out of memory, the Linux kernel has to decide which processes to kill to

Install & Use Geekbench 5 on Linux

Geekbench is a cross-platform processor benchmark tool with a scoring system that separates single-core and multi-core performance and workloads that simulate real-world scenarios. The higher Geekbench score means the better and faster CPU. Enter the following commands one by one: