Skip to content

Instantly share code, notes, and snippets.

View nishantbadhautiya's full-sized avatar

Nishant Badhautiya nishantbadhautiya

  • Agra
View GitHub Profile
@nishantbadhautiya
nishantbadhautiya / youtube_playlist_downloader_with_gdrive.sh
Created June 2, 2025 05:01
Download youtube videos and upload them on GDrive using rclone
#!/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"
@nishantbadhautiya
nishantbadhautiya / youtube_playlist_downloader.sh
Last active April 7, 2025 16:54
YouTube Playlist Downloader Script
#!/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"
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
-- ******************* 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");
@nishantbadhautiya
nishantbadhautiya / mpv_media_player.txt
Last active August 28, 2024 15:56
This is the setting and Lua script files to modify behaviour of MPV Media Player.
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
@nishantbadhautiya
nishantbadhautiya / setting.json
Last active February 16, 2025 08:06
my VS Code setting.json
{
"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,
@nishantbadhautiya
nishantbadhautiya / mongoDB_tutorial.js
Last active November 13, 2023 06:28
This is for mongoDB tutorial by Thapa Technical
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,