Install WordPress on cPanel - Remove WordPress Version Number 🔢

Remove WordPress Version Number 🔢

To remove the WordPress version number simply add the following code in your functions.php file or custom plugin: /** * Remove WordPress version number*/ function custom_remove_version() { return ''; } add_filter('the_generator'...

installation - Install 🛡️ CSF Firewall on RHEL / CentOS 8

Install 🛡️ CSF Firewall on RHEL / CentOS 8

ConfigServer (CSF) is advanced open-source firewall for Linux and here is how to install it on CENTOS 8 1. Disable firewalld systemctl stop firewalld systemctl disable firewalld systemctl mask firewalld 2. Install iptables yum -y install...

New interface - Handling Null in ColdFusion 👨‍💻

Handling Null in ColdFusion 👨‍💻

CF uses duck typing to deal with variable types: if it quacks like a date, it must be a date.  More on duck typing When ColdFusion gets a null back from a Java function, it is much like a duck through a jet engine.  It is going to...

comment - Display total number of 💬 comments in WordPress

Display total number of 💬 comments in WordPress

Add the following code to your active theme’s functions.php file and then add this shortcode [wpm_total_comments] anywhere on your website where you want the total number of comments to display. /** *Display total number of WordPress...

rclocal - How to enable rc.local

How to enable rc.local

To enable /etc/rc.local file run on system startup for server runing systemd, run:

systemctl enable rc-local

Then create /etc/rc.local file with 755 permission

touch /etc/rc.local
chmod 755 /etc/rc.local

linux - 🐧 Linux / Unix cp command

🐧 Linux / Unix cp command

cp command copies files from one location to another. Syntax cp [OPTION]… SOURCE DEST cp [OPTION]… SOURCE… DIRECTORY cp [OPTION]… –target-directory=DIRECTORY SOURCE… -a, –archivesame as ...

linux - Run command as another 🐧 Linux user

Run command as another 🐧 Linux user

To run a command as another user on Linux, use:

sudo -u USERNAME COMMAND

or

su USERNAME -s /bin/bash -c COMMAND

or

runuser -l USERNAME -c 'COMMAND'