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
| #!/bin/bash | |
| # Ensure the script is run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "❌ Please run this script as root (use sudo)." | |
| exit 1 | |
| fi | |
| echo "======================= ✅ STEP 1: Folder Setup =======================" | |
| FOLDER="/others" |
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
| #!/bin/bash | |
| # Ensure the script is run as root | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "❌ Please run this script as root (use sudo)." | |
| exit 1 | |
| fi | |
| echo "======================= ✅ STEP 1: Folder Setup =======================" | |
| FOLDER="/others" |
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
| All cs notes | |
| https://csegyan.com/notes/computer-science-engineering-notes.html | |
| https://drive.google.com/drive/folders/0B9jTEZ4HKsPHbjRQeTlrWERnNmM | |
| https://rethmic.com/course/the-complete-c-programming-bootcamp-0227-direct-free-download | |
| https://mega.nz/folder/71VQyTKL | |
| https://www.udemy.com/course/competitive-programming-algorithms-coding-minutes/ | |
| (key)==> KsLYHxaw16X1LfUkYndRtw | |
| ------------------------------------------------------------------------------ | |
| https://www.apnacollege.in/course/placement-course-java | |
| https://mega.nz/folder/sX5WUQrS |
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
| -- ******************* PART 1 ****************************** | |
| CREATE DATABASE temp; | |
| USE temp; | |
| CREATE TABLE student( | |
| id INT PRIMARY KEY, | |
| name VARCHAR(255) | |
| ); | |
| INSERT INTO student values(1, "Nishant"); | |
| INSERT INTO student values(2, "Aman"); |
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
| Donwload a complete youtube playlist with naming of the file start a digit for Linux: | |
| yt-dlp -f 'bestvideo[height<=720]+bestaudio' -o '/home/nishant/Downloads/Youtube_Playlist/%(playlist_index)s-%(title)s.%(ext)s' --playlist-start 1 --playlist-end SIZE_OF_PLAYLIST 'PLAYLIST_URL' | |
| Donwload a complete youtube playlist with naming of the file start a digit For Windows: | |
| yt-dlp -f 'best[height<=720]' -o 'D:\Discrete_Structure\%(playlist_index)s-%(title)s.%(ext)s' --playlist-start 1 --playlist-end 103 https://www.youtube.com/playlist?list=PLz8TdOA7NTzTk-kaYf8NVfMM4ZDNQKDgA; cd D:\Discrete_Structure; foreach ($i in Get-ChildItem *.webm) { ffmpeg -i "$i" -i "$($i.BaseName).m4a" -c:v copy -c:a aac "$($i.BaseName).mp4"; Remove-Item "$i", "$($i.BaseName).m4a" } | |
| download video with english subtitle enbed with video: | |
| yt-dlp --write-auto-sub --sub-lang en --embed-subs -f "bestvideo[height<=2160]+bestaudio" https://youtu.be/1f6N2UrCK6o |
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
| { | |
| "code-runner.runInTerminal": true, | |
| "code-runner.saveAllFilesBeforeRun": true, | |
| "code-runner.saveFileBeforeRun": true, | |
| "files.autoSave": "afterDelay", | |
| "workbench.iconTheme": "material-icon-theme", | |
| "editor.wordWrap": "on", | |
| "liveServer.settings.donotShowInfoMsg": true, | |
| "editor.mouseWheelZoom": true, | |
| "editor.bracketPairColorization.enabled": true, |
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
| const mongoose = require('mongoose'); | |
| const validator = require('validator') | |
| // connection creation and creation a new database | |
| mongoose.connect("mongodb://localhost:27017/ttchannel", { useNewUrlParser: true, useUnifiedTopology: true }) | |
| .then(() => console.log("connection successfull .....")) | |
| .catch(() => console.log("error in connection")); | |
| const playListSchema = new mongoose.Schema({ | |
| name: { | |
| // VALIDATION IN MONGO DB | |
| type: String, |