Git not working in macOS Catalina?

I just updated to macOS Catalina yesterday. When started my terminal, it wasn’t able to recognize it as a Git repository. I work with WordPress plugins. So I thought I might have updated directly from WordPress.org so the Git folder got replaced and it is not a Git repo anymore!

So I tried to clone again from Bitbucket but it showed an error message-

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

So, I googled and found that I need to update Xcode from StackOverflow. This is the code I ran and everything was back to normal again.

xcode-select --install

You can also run xcode-select --reset. That works too!

How to turn on or off a module from Jetpack

I was setting up Jetpack for a new site. I like the WordPress.com interface and love to have all the sites within one single app!

I wanted to use their contact form feature on the new site. But the changes on the form settings were not being saved. Read More

Script to Install a Webserver on Debian and OSX in Minutes

Each time I reinstall the OS on my laptop, I have to struggle with the web server installation and configuration. Because I have minimal hardware and I like my environment clutter free.

So I used to install each package one by one and I had to google a couple of times. One of my colleague from weDevs wrote a cool script to install everything at once. No googling required!

Here is the link to the repo

https://github.com/sohelamin/webserver-setup

It has composer included. So if you need to install WP CLI, then it will ease the process too.

Please let me know if you have any questions about servers 🙂

Reset Lubuntu, Ubuntu or Any Debian Based Distro and Migrate to Other Distro

I was using Lubuntu since last two months on my laptop. But I had scrambled some PHP versions and had multiple apache2 installations. Moreover, my ibus based language input system was conflicting with a earlier installed version.

I was also not happy with the graphics and performance of Lubuntu. So I decided to have a fresh Ubuntu install.

I used Rufus first but the pen drive did not boot. Checked the boot priority, it was okay and the USB device was the first priority. Tried again and failed.

I don’t know why I enabled fast boot later but that totally removed the bios accessing system. Esc, F1, F12, Del… none of the keys helped.

So used the “Startup Disk Creator” tool of Lubuntu. I had some issues earlier last week when I tried to set up a IP Logging server and used “Unet bootin”. So did not try that one. Nothing was helping and it was 12 in the morning.

Then suddenly it clicked on my mind that Lubuntu is a variant of Ubuntu, so I might be able to migrate. So after a couple of searches. I found the commands. But despite following each and every step carefully, Lubuntu was still there.

At the end, I came to know about Resetter – an awesome tool to factory reset any Debian based distro.

It worked really quick and did the trick!

Here is the repo link of Resetter

https://github.com/gaining/Resetter

If you have any questions, please free to ask them in the comments section. I will try my best to help.

How to Renew Let’s Encrypt SSL

Recently I wrote a tutorial to install Let’s Encrypt SSL on a shared hosting. The SSL certificate of my site is about to expire next month and I got 2 notification emails. So I have renewed the certificate today.

Read More

Change texts in WordPress without touching the code!

 

Last Updated: [last-modified]

Want to change a label or wording of a WordPress plugin or theme? Want to whitelabel the entire WordPress environment for your client? This tutorial is for you!

In this post, we will learn how to change any text within the WordPress environment without touching any code!

Read More