Error: Compilation failed: invalid range in character class at offset [Solved]

If you recently updated your server to PHP 7.3, you might have seen this error message: Compilation failed: invalid range in character class at offset . . . This error is due to update in PHP 7.3 and how it handles regular expressions. Error: Compilation failed: invalid range in character class at offset I encountered […]

WordPress redirect hack [Solved]

This week, a massive hack attempt on numerous wordpress based websites happened. The hack causes your wordpress website to redirect to or any other similar website. This was an interesting find and was due to a zero day exploit in a wordpress plugin. I successfully fixed one of my clients website infected with this […]

How to implement reCaptcha v3

This post explains how to implement the Google reCaptcha v3 easily in your site code. You can use this method or code in any PHP site, including WordPress, Joomla!, Drupal, etc. The code consists of three parts: Generate site-key and secret-key from google recaptcha for your site First part of code goes into your form […]

Connect GCC via Mac Terminal

Google cloud console provides a browser based SSH client that we can use to easily connect to our google cloud console instance. However there are reasons why you might want to connect using your operating systems ssh client. One being faster connection and response obviously. Secondly it’s easier to manage your virtual server from your […]

Remove sidebar from Schema lite single page

This tutorial explains how you can remove the sidebar from the single page template of Schema lite WordPress theme to make by making a full page template for single page without sidebar. How to remove sidebar from schema lite wordpress theme Follow these steps: Make a copy of page.php Goto the theme folder and make […]

How to update WordPress to 5.0 (manual & automatic)

Today WordPress version 5.0 has been released as a major release update. WordPress 5.0 has a code name “Bebo”. In this tutorial, you will learn how to update your wordpress installation from any previous version to the 5.0. First of all we will see how to do this automatically, and then we will also discuss […]

How to download iOS ipsw directly

Recently I encountered the famous bug of iOS 12 beta update which all beta tester developers faced. The bug was that the iOS keeps asking you to update your software version to newer beta release (beta 12 as of writing this post) repeatedly. Issues was, I was in africa and didn’t have a stable internet […]

VirtualMin WordPress Nginx Permalinks 404 [Solved]

On default virtualmin install with LEMP, running nginx, the permalinks for WordPress don’t work properly and give a 404 error. This article explains how to fix this issue. Why WordPress permalinks show 404 in virtualmin fresh install? The reason is nginx configuration file. The configuration for wordpress needs some extra lines of code and logic […]

How to keep macbook running on lid down

Yesterday mac os 10.14, mojave, developer beta was released. And obviously I wanted to use it as soon as possible so I set it to download at night. However, I wasn’t comfortable in letting it run with lid open (due to personal reasons), so I decided to tweak my mac to run with lid down, […]