Skip to content

Instantly share code, notes, and snippets.

View jspenaq's full-sized avatar
:shipit:
Bruh

Juan Sebastian Peña jspenaq

:shipit:
Bruh
  • National University of Colombia
  • Colombia
View GitHub Profile
@yogeshsinghgit
yogeshsinghgit / download_as_video.py
Last active June 2, 2024 13:30
Download YouTube Videos in Mp4 Format using Python Pytube module
from pytube import YouTube
def download_Video(yt):
# filter mp4 streams from object
my_streams = yt.streams.filter(file_extension='mp4',only_video=True)
for streams in my_streams:
# print itag, resolution and codec format of Mp4 streams
print(f"Video itag : {streams.itag} Resolution : {streams.resolution} VCodec : {streams.codecs[0]}")
@glubsy
glubsy / howto_record_youtube_livestreams.md
Last active June 7, 2024 03:56
How to properly record Youtube & Twitch live streams

How to record Youtube live streams:

  • use livestream_saver to download from the first segment. Can also record membership-only streams by supplying it your cookies (uses yt-dlp to download)

  • use ytarchive which basically does the same thing, except a bit better.

  • use youtube_stream_capture. You can use cookies file to get member-only streams too. Be aware that this script currently fails to download chunks as soon as the stream has ended (this might be a bug).

  • or use live-dl which does monitoring of streams too. This is a wrapper around streamlink and yt-dlp.

#!/bin/bash
# This script will bootstrap Ubuntu with Docker
###############################################################################
# Customize the script by passing values to the named parameters below, e.g.
# ./bootstrap-ubuntu-docker.sh --user nate
use_current_user=${use_current_user:-true}
user=${user:-ubuntu}
wsl=${wsl:-false}
keygen=${keygen:-true}
@nsticco
nsticco / bootstrap-ubuntu-devops.sh
Last active August 18, 2023 13:59
Shell script to install DevOps tools for Ubuntu
#!/bin/bash
# This script will bootstrap Ubuntu with DevOps related tools
###############################################################################
# Customize the script by passing values to the named parameters below, e.g.
# ./bootstrap-ubuntu-devops.sh --kubectl 1.20.2
nodejs=${nodejs:-16}
kubectl=${kubectl:-1.26.5}
terragrunt=${terragrunt:-0.50.0}
packer=${packer:-1.9.2}