This script clears all wishlist items on Myntra. Uses document.querySelector() and btn.click().
How to Use
- Open the wishlist page
- Open Browser DevTools → Console
- Paste the script
- Press Enter
- Let it run until completion
This script clears all wishlist items on Myntra. Uses document.querySelector() and btn.click().
How to Use
| # 1. Create deployer User (from root) | |
| adduser deployer | |
| usermod -aG sudo deployer | |
| # This: | |
| # - Creates a new user deployer | |
| # - Adds them to the sudo group (but we'll limit what they can actually do) | |
| # 2. Set Up SSH Access for deployer | |
| # Switch user to deployer | |
| sudo su - deployer |
| "use client"; | |
| import { useRouter, useSearchParams } from "next/navigation"; | |
| import React from "react"; | |
| const FilterPanel = () => { | |
| const router = useRouter(); | |
| const searchParams = useSearchParams(); | |
| const handleFilterChange = (e) => { | |
| const params = new URLSearchParams(searchParams.toString()); |
Do not use Nodemon in the production environment as it is intended for development purposes only.
When running the backend using the Process Manager (PM2), ensure that all folder names are included as values of the ignore_path property in the ecosystem.config.js file.
To upload product data to MongoDB and images to Cloudinary in a MERN stack application, you can follow these steps:
Set up your MongoDB and Cloudinary accounts: Ensure that you have created accounts and obtained the necessary credentials for both MongoDB and Cloudinary.
Set up the server-side (Node.js) code:
const mongoose = require('mongoose');/^[1-9][0-9]{5}$/
Here's what this regex means:
^: This anchor matches the start of the string.[1-9]: This character set matches any digit from 1 to 9 (the first digit of the PIN code cannot be 0).[0-9]{5}: This character set matches any five digits from 0 to 9 (the remaining digits of the PIN code).$: This anchor matches the end of the string.
Put together, this regular expression matches any six-digit string that starts with a digit from 1 to 9 and ends with five digits from 0 to 9, which is the format of a valid Indian PIN code.If I were to restart Javascript again from scratch then I will follow this roadmap.
| [ | |
| { | |
| "name": "John Doe", | |
| "designation": "Developer", | |
| "Contact": [ | |
| { | |
| "type": "primary", | |
| "number": "9087654321" | |
| }, | |
| { |
| { | |
| "[html]": { | |
| "editor.defaultFormatter": "vscode.html-language-features" | |
| }, | |
| "[css]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "liveServer.settings.donotShowInfoMsg": true, | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |