From 1e4668b955d0f448cc0dc65843dcf90e23e939f1 Mon Sep 17 00:00:00 2001 From: killerSo1234 <73747477+killerSo1234@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:29:41 +0530 Subject: [PATCH 1/5] Update finaltask.cpp --- finaltask.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/finaltask.cpp b/finaltask.cpp index 4af06d1..0752439 100644 --- a/finaltask.cpp +++ b/finaltask.cpp @@ -9,6 +9,7 @@ int gcd(int a, int b) } + int main() { int N, i, max=1, res=0; From dde590df1e01bb9dc354bfe7b5f460b1be3edb7a Mon Sep 17 00:00:00 2001 From: rathorKrishna <73748001+rathorKrishna@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:44:05 +0530 Subject: [PATCH 2/5] Update test.cpp --- test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.cpp b/test.cpp index 7d68a53..e6ee720 100644 --- a/test.cpp +++ b/test.cpp @@ -8,6 +8,7 @@ class Solution { vector ans; bool flag = true; +// Test int size = input.length(); for (size_t i = 0; i < size; i++) { @@ -55,4 +56,4 @@ int main() for(int v:a){ cout< Date: Sun, 31 Oct 2021 20:12:09 +0530 Subject: [PATCH 3/5] HTML CCODe --- Form.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Form.html diff --git a/Form.html b/Form.html new file mode 100644 index 0000000..f41836d --- /dev/null +++ b/Form.html @@ -0,0 +1,47 @@ + + + + + + + + HTML FORM + + + + + +
+
+ First Name :
+ Last Name :
+ Contact No :
+ Gender:Male + Female

+ Hubbies :
+
+ +
+ +

+ Country :

+ + +
+
+ + + \ No newline at end of file From b07ae495f1f47b8ba239a979a1df3e596a4e78f6 Mon Sep 17 00:00:00 2001 From: rathorKrishna <73748001+rathorKrishna@users.noreply.github.com> Date: Mon, 1 Nov 2021 00:01:07 +0530 Subject: [PATCH 4/5] Update Aktardb.cpp --- Aktardb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Aktardb.cpp b/Aktardb.cpp index ac59c07..8c9012e 100644 --- a/Aktardb.cpp +++ b/Aktardb.cpp @@ -5,7 +5,7 @@ using namespace std; // CLASS DECLARATION class DB -{ +{cnmsb cm public: void store(); @@ -152,4 +152,4 @@ int main() cout << "Have a good day! Bye!" << endl; exit(0); -}; \ No newline at end of file +}; From 4ec9fc03ee3f6f7af959d097c7abe9f13811462c Mon Sep 17 00:00:00 2001 From: rathorKrishna <73748001+rathorKrishna@users.noreply.github.com> Date: Mon, 1 Nov 2021 00:23:15 +0530 Subject: [PATCH 5/5] BackUP database Ina code --- BackupDB.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 BackupDB.sh diff --git a/BackupDB.sh b/BackupDB.sh new file mode 100644 index 0000000..8a07611 --- /dev/null +++ b/BackupDB.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +helpFunction() +{ + echo "" + echo "Usage: $0 -u username -p password -d database" + echo -e "\t-u Username of Database" + echo -e "\t-p Password for that DB user" + echo -e "\t-d Database Name" + exit 1 # Exit script after printing help +} + +while getopts "u:p:d:" opt +do + case "$opt" in + u ) user="$OPTARG" ;; + p ) pass="$OPTARG" ;; + d ) db="$OPTARG" ;; + ? ) helpFunction ;; # Print helpFunction in case parameter is non-existent + esac +done + +# Print helpFunction in case parameters are empty +if [ -z "$user" ] || [ -z "$pass" ] || [ -z "$db" ] +then + echo "Some or all of the parameters are empty"; + helpFunction +fi + +# Begin script in case all parameters are correct +echo "${user} ${pass} ${db}" +mysqldump -u ${user} -p${pass} ${db} > ~/${db}_`date +%Y-%m-%d`.sql