Skip to content

Instantly share code, notes, and snippets.

View ccauvang's full-sized avatar
:shipit:
ctrl c ctrl v

cauvang ccauvang

:shipit:
ctrl c ctrl v
  • vietnam
  • 16:48 (UTC +07:00)
View GitHub Profile
@pnhoang
pnhoang / howto-download-youtube-videos.md
Last active June 2, 2025 05:38
How to download ALL videos of ANY YouTube Channel
@shd101wyy
shd101wyy / hex.js
Last active May 23, 2025 13:12
string to hex, hex to string
// https://stackoverflow.com/questions/21647928/javascript-unicode-string-to-hex?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
String.prototype.hexDecode = function(){
var j;
var hexes = this.match(/.{1,4}/g) || [];
var back = "";
for(j = 0; j<hexes.length; j++) {
back += String.fromCharCode(parseInt(hexes[j], 16));
}
@AgentOak
AgentOak / youtube_formats.md
Last active May 29, 2025 20:37
Youtube Format IDs

Last updated: April 2021

Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22). Depending on the age and/or popularity of the video, not all formats will be available.

DASH video

Resolution AV1 HFR High AV1 HFR AV1 VP9.2 HDR HFR VP9 HFR VP9 H.264 HFR H.264
MP4 MP4 MP4 WebM WebM WebM MP4 MP4