Skip to content

Instantly share code, notes, and snippets.

@sibinc
sibinc / false_no_gen.sh
Created September 24, 2024 09:21
To generate false numbers by giving exam reg id and starting range
#!/bin/bash
# Prompt the user for input
read -p "Enter MySQL database name: " dbName
read -p "Enter MySQL username: " dbUser
read -s -p "Enter MySQL password: " dbPassword
echo
# Prompt the user for input
read -p "Enter value for @rangeFrom: " rangeFrom
#!/bin/bash
# Ask for input numbers
echo "Enter file names, one per line. Type 'done' and press Enter when finished:"
numbers=()
while read -r line; do
if [ "$line" == "done" ]; then
break
fi
numbers+=("$line")
#!/bin/bash
# Set MySQL credentials
mysql_username="root"
# Initialize a variable to check if the password is correct
password_correct=0
while [ $password_correct -eq 0 ]; do
# Prompt the user for the MySQL password
read -s -p "Enter the MySQL password for user '$mysql_username': " mysql_password
#!/bin/bash
# Author: sibinc
# Latest Update: 2023-10-17
echo "***** Payroll Master Auto Login *****"
echo "What Will It Do:"
echo "# Automatically open the 'mypayrollmaster' website when you log in to your system."
echo "# Note: Automating the login process may require additional browser setup."
echo "# Uninstallation:"
echo "# To remove this automation, you can use the provided uninstall option in the script."
# Find the path to the Google Chrome executable