Skip to content

Instantly share code, notes, and snippets.

View cosmicqbit's full-sized avatar
🍃
Learning Learning & Learning

Shariq Raza Qadri cosmicqbit

🍃
Learning Learning & Learning
View GitHub Profile
@cosmicqbit
cosmicqbit / video-download.sh
Created June 25, 2023 14:03
Youtube Downloader
#!/bin/bash
opt1="YTDL-Best Quality"
opt2="YTDL-Maximum 720p"
opt3="YTDLP-Best Quality"
opt4="YTDLP-Maximum 720p"
opt5="Export YT Comments"
opt6="Export YT Subtitles"
opt7="Export YT Info"
timestamp=$(date +%Y-%m-%d_%H_%M)
videodownloadmenu=$(zenity --list --title "Video Downloader" --radiolist --column "" --column "" TRUE "$opt1" FALSE "$opt2" FALSE "$opt3" FALSE "$opt4" FALSE "$opt5" FALSE "$opt6" FALSE "$opt7" --height=400 --width=300)
@cosmicqbit
cosmicqbit / brew.sh
Last active January 8, 2023 07:10
Install brew on Mac
# Copy paste this command into terminal and hit enter
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@cosmicqbit
cosmicqbit / youtube.lua
Created November 13, 2022 15:22
VLC YT Playlist Stream
--[[
Copyright © 2007-2022 the VideoLAN team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@cosmicqbit
cosmicqbit / .py
Last active October 16, 2022 18:02
Batch Convert Images to PDF
from email.mime import base
from PIL import Image
import os
image_list = []
files = os.listdir()
image_files = []
for i in range(len(files)):
if files[i].endswith(".png"):
@cosmicqbit
cosmicqbit / script.js
Created October 11, 2022 05:24
Unsubscribe from all YouTube channels in one click.
var i = 0; var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)");
myTimer();
function myTimer () { if (count == 0) return; el = document.querySelector('.ytd-subscribe-button-renderer');
el.click(); setTimeout(function () { var unSubBtn = document.getElementById("confirm-button").click();
i++; count--;
console.log(i + " unsubscribed");
console.log(count + " remaining");
setTimeout(function () { el = document.querySelector("ytd-channel-renderer");
el.parentNode.removeChild(el); myTimer(); }, 250); }, 250); }

Keybase proof

I hereby claim:

  • I am cosmicqbit on github.
  • I am cosmicqbit (https://keybase.io/cosmicqbit) on keybase.
  • I have a public key ASBNBIjJnhNxEtadHVgeMNA6VHy35VPH-lUnrMvxR2Ecswo

To claim this, I am signing this object: