To set up an Nginx virtual host as a reverse proxy, just follow these steps: Install Nginx First, you need to install Nginx on your server. You can do this by running the following command: sudo apt-get install nginx Create a new virtual host configuration file Create a new configuration file for your virtual host using your favorite t...
If you need to shuffle array of any objects, you can use the Fisher-Yates algorithm. The algorithm is very simple in principle. const shuffleArray = (arr: any[]): any[] => { let currentIndex: number = arr.length; let randomIndex: number; // While there remain elements to shuffle. while (currentIndex !== 0) { // Pick a remaining element...