Skip to content

Instantly share code, notes, and snippets.

View rusins's full-sized avatar

Raitis Rūsiņš Kriķis rusins

View GitHub Profile
@danirukun
danirukun / yt-clip.sh
Created May 17, 2021 21:08
Download YT VOD in timestamp interval
youtube-dl -f "(bestvideo+bestaudio/best)[protocol!*=dash]" --external-downloader ffmpeg --external-downloader-args "-ss 00:00:00 -to 00:00:00" "youtube link"

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.