The Locate command (Linux)

If there is something that is quite vital, on Linux systems in CLI mode (no GUIs, no KDE or Gnome), is to have a simple way to search for specific files/folders on the filesystem. To do this we can install and use the locate utility, on Linux systems. Read More …

Rename an existing PostgreSQL Database

Renaming a PostgreSQL is one of the activities that could be necessary during a normal database lifecycle, sometimes due to testing or development related activities linked to a pre-existing database. Let’s see which PL/pgSQL statement we can use to rename a database. Read More …

WordPress – Disabling XML-RPC and Rest API to improve security

In WordPress we have always had inbuilt features that let us remotely interact with our site. We have two different approaches available: XML-RPC, a legacy method, or the newer Wordpress REST API that simplifies the remote interactivity and development of external apps. We can disable both of them if we do not need any remote access to the site and/or we do not use any app for the Wordpress resource. Read More …

Powershell – Test URL “ping” from command line

The following scenario could be useful for those that need to regularly monitor the response type of specifc URL or URLs; this can be done quite easily by using Powershell. The approach can be easily integrated in functions and automated/scheduled scripts to get a periodic status of the URLs monitored. Read More …

Raspberry Pi – Controlling PWR and ACT LEDs (Red and Green LEDs)

Raspberry Pi models have a few built-in LEDs; the modern models have a PWD and a ACT LEDs, that can be turned off quite easily directly by software, to save a bit of mW (energy) and letting it to run without disturbing lights. Read More …