let message = ‘helloWorld’ let convertedMessage=message.replace(/[A-Z]/g, letter => `_${letter.toLowerCase()}`); console.log(convertedMessage); output -> hello_world
Most Used Cron Expressions
Cron Job Every Minute * * * * * Cron Job Every Hour 0 * * * * Cron Job Every Day Midnight 0 0 * * * Cron Job Every 5 Minute */5 * * * * Cron Job Every 2 Hours 0 */2 * * * Cron Job Every Week 0 0 * […]
Create a New User in PostgreSQL
Note: This post only provides the key commands of the postgreSQL as a easy way for developers. If you need to learn in depth, please refer to the official documentation Create a new user in PostgreSQL CREATE USER <name> WITH PASSWORD ‘<password>’; If the user already exists, add the password by using ALTER USER: ALTER USER […]
How To Install Docker on Ubuntu
Update the apt package index and install packages to allow apt to use a repository over HTTPS: sudo apt-get update sudo apt-get install ca-certificates curl gnupg lsb-release Add Docker’s official GPG key: sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /etc/apt/keyrings/docker.gpg Use the following command to set up the repository: echo “deb [arch=$(dpkg –print-architecture) […]
How to Setup Free SSL for Nginx on Ubuntu
Install and Setup free SSL on NGINX on Ubuntu