Skip to content

Instantly share code, notes, and snippets.

@bashkirtsevich
bashkirtsevich / ffplay.c
Created November 23, 2016 10:03
ffplay source code
/*
* Copyright (c) 2003 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
@jimmywarting
jimmywarting / readme.md
Last active April 16, 2026 08:45
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@artbikes
artbikes / yooper.sh
Created December 5, 2017 21:54
Display title of youtube video
#!/bin/bash
curl -s \
--data-urlencode "url=$1" \
--data-urlencode "format=json" \
http://www.youtube.com/oembed |
jq '.title'
@sidneys
sidneys / youtube_format_code_itag_list.md
Created January 20, 2018 11:12
YouTube video stream format codes itags

YouTube video stream format codes

Comprehensive list of YouTube format code itags

itag Code Container Content Resolution Bitrate Range VR / 3D
5 flv audio/video 240p - - -
6 flv audio/video 270p - - -
17 3gp audio/video 144p - - -
18 mp4 audio/video 360p - - -
22 mp4 audio/video 720p - - -
@ivanskodje
ivanskodje / youtube-dl-download-youtube-music-playlists.md
Last active October 27, 2025 16:45
youtube-dl for downloading music from YouTube

Downloading Music Playlists from YouTube

Disclaimer

Use this knowledge at your own risk.

youtube-dl for Windows

youtube-dl will allow you to download entire youtube playlists and store them as MP3s. This will also allow you to download individual MP3s.

@rosswd
rosswd / shell.sh
Last active January 25, 2025 19:13
Get video titles from a Youtube channel
# get a list of video titles for a channel
youtube-dl -i -e https://youtube.com/channel/CHANNEL_ID
# alternative
youtube-dl --skip-download --ignore-errors https://youtube.com/channel/CHANNEL_ID
@dvf
dvf / change-codec.md
Last active April 22, 2026 11:10
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@lhuxman-lhux
lhuxman-lhux / yt.php
Last active January 4, 2026 19:53
youtube download
<?php
if (file_exists('sig1.php')) {
unlink('sig1.php');
}
function getc($url)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.