Skip to content

Instantly share code, notes, and snippets.

Avatar
😎

Guilherme Simoes guilhermesimoes

😎
View GitHub Profile
@guilhermesimoes
guilhermesimoes / download.sh
Created Jun 7, 2020 — forked from jmurphyau/download.sh
Download HLS Stream with FFmpeg
View download.sh
#this
ffmpeg -loglevel debug -f hls -referer 'https://10play.com.au/live' -user_agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4050.0 Safari/537.36' -f hls -i "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/2199827728001/6bd7fe89-1f2f-42d0-b7a5-c676791a0d83/10s/master.m3u8?fastly_token=NWUzZDliOGZfNTJhZjJhN2IxMzQ5OTdjNGVkYmEzODkwNjYwZTYyMWY2ZmY1YjNmNGJkNWM3NjdiNDFiZmViNjczNzMwMmJlYQ%3D%3D" -c copy project5.mp4
# or this
ffmpeg -loglevel debug -f hls -referer 'https://10play.com.au/live' -user_agent 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4050.0 Safari/537.36' -f hls -i "https://manifest.prod.boltdns.net/manifest/v1/hls/v4/aes128/2199827728001/6bd7fe89-1f2f-42d0-b7a5-c676791a0d83/10s/master.m3u8?fastly_token=NWUzZDliOGZfNTJhZjJhN2IxMzQ5OTdjNGVkYmEzODkwNjYwZTYyMWY2ZmY1YjNmNGJkNWM3NjdiNDFiZmViNjczNzMwMmJlYQ%3D%3D" -c copy -bsf:a aac_adtstoasc project3.mp4
@guilhermesimoes
guilhermesimoes / README.md
Last active Apr 12, 2020
Animated NBC Peacock Logo
View README.md

My attempt at animating NBC's peacock showing-off.

If you're interested in NBC's past, check out the history of NBC's logo and chime.

@guilhermesimoes
guilhermesimoes / .block
Last active Nov 12, 2017 — forked from HarryStevens/.block
Box and Whisker
View .block
license: gpl-3.0
@guilhermesimoes
guilhermesimoes / .block
Last active Aug 14, 2017
D3 V4 join & enter
View .block
license: gpl-3.0
@guilhermesimoes
guilhermesimoes / .block
Last active Apr 19, 2017 — forked from mbostock/.block
D3 V3 join & enter
View .block
license: gpl-3.0
@guilhermesimoes
guilhermesimoes / loop_starting_at_index_one_benchmark.rb
Created Apr 7, 2017
Ruby Benchmark: Starting a loop at index 1
View loop_starting_at_index_one_benchmark.rb
# gem install benchmark-ips
require "benchmark/ips"
Benchmark.ips do |x|
x.report("range") { (1..100).each { |i| i } }
x.report("upto") { 1.upto(100).each { |i| i } }
x.report("times plus one") { 100.times { |i| i + 1 } }
@guilhermesimoes
guilhermesimoes / .block
Last active Feb 8, 2017
D3.js: Animating a pie chart
View .block
license: gpl-3.0
@guilhermesimoes
guilhermesimoes / last_uri_path_benchmark.rb
Last active Nov 30, 2016
Ruby Benchmark: Determining the last part of a URI
View last_uri_path_benchmark.rb
# gem install benchmark-ips
require "benchmark/ips"
uri = "http://twitter.com/user/statuses/1234567891011121314"
Benchmark.ips do |x|
x.report("file.basename") { File.basename(uri) }
x.report("split('/').last") { uri.split("/").last }
@guilhermesimoes
guilhermesimoes / .block
Last active Apr 6, 2020
D3.js: Encoding values as circles
View .block
license: gpl-3.0
@guilhermesimoes
guilhermesimoes / .block
Last active Sep 2, 2022 — forked from mbostock/.block
D3.js: Automatic text sizing using em units
View .block
height: 760
license: gpl-3.0