This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1: Install ripgrep | |
# First, update your package list to make sure everything is up to date. | |
sudo apt update | |
# Install ripgrep using the package manager. | |
sudo apt install ripgrep | |
# Step 2: Verify installation | |
# Check that ripgrep was installed successfully by running: | |
rg --version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 1: Install fzf | |
sudo apt update | |
sudo apt install fzf | |
# Step 1: Install fzf | |
# Update your package list to ensure everything is up-to-date. | |
sudo apt update | |
# Install fzf package. | |
sudo apt install fzf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable '*' feedback when typing the password in sudo (Linux - Professional Setup) | |
# Create a configuration file in /etc/sudoers.d/ to activate pwfeedback | |
echo "Defaults pwfeedback" | sudo tee /etc/sudoers.d/pwfeedback | |
# (Verify that the file was created correctly) | |
sudo cat /etc/sudoers.d/pwfeedback | |
# (If sudo does not ask for the password because of an active session, reset it) | |
sudo -k |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dotenv/config'; // Load environment variables from a .env file | |
import * as joi from 'joi'; // Import Joi for schema validation | |
// Define an interface for type safety | |
interface EnvVars { | |
PORT: number; | |
} | |
// Define the validation schema for environment variables | |
const envsSchema = joi.object({ |