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"
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 January 16, 2026 07:24
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 January 16, 2026 07:22
my VS Code setting.json
{
"workbench.iconTheme": "material-icon-theme",
"files.autoSave": "afterDelay",
"code-runner.runInTerminal": true,
"code-runner.saveAllFilesBeforeRun": true,
"code-runner.saveFileBeforeRun": true,
"editor.wordWrap": "on",
"editor.mouseWheelZoom": true,
"editor.bracketPairColorization.enabled": true,
"editor.fontFamily": "'cascadia code',Consolas, 'Courier New', monospace",