Skip to content

Instantly share code, notes, and snippets.

View gh-rusinov's full-sized avatar
🧡
Swift

Igor Rusinov gh-rusinov

🧡
Swift
  • Saint-Petersburg
View GitHub Profile
@dmthomas
dmthomas / Apple Special Event Apr 2021 1080p, 1440p, 2160p
Created April 20, 2021 19:18
Apple Special Event Apr 2021 1080p, 1440p, 2160p
#I broke the audio out separately because it's the same stream regardless of which video resolution you choose.
#Audio for all
ffmpeg -i https://p-events-delivery.akamaized.net/2503gakrdvgbtjurznurjjqymkcddibq/vod_7cmxCio8T7ZZkbTQAXsL24ej7cqN6z27/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, April 2021 temp.aac"
#h264 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2503gakrdvgbtjurznurjjqymkcddibq/vod_7cmxCio8T7ZZkbTQAXsL24ej7cqN6z27/SDR_avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, April 2021 (1080p) temp.mp4"
ffmpeg -i "Apple Special Event, April 2021 (1080p) temp.mp4" -i "Apple Special Event, April 2021 temp.aac" -c copy "Apple Special Event, April 2021 (1080p).mp4"
#h265 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2503gakrdvgbtjurznurjjqymkcddibq/vod_7cmxCio8T7ZZkbTQAXsL24ej7cqN6z27/SDR_hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, April 2021 (1080p) temp.mp4"
@dmthomas
dmthomas / Apple Special Event Oct 2020 1080p, 1440p, 2160p
Last active October 21, 2020 21:41
Apple Special Event Oct 2020 1080p, 1440p, 2160p
#h264 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/avc_1080p_8500/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.aac"
ffmpeg -i "Apple Special Event, October 2020 (1080p) temp.mp4" -i "Apple Special Event, October 2020 (1080p) temp.aac" -c copy "Apple Special Event, October 2020 (1080p).mp4"
#h265 1080p
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/hvc_1080p_7000/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.mp4"
ffmpeg -i https://p-events-delivery.akamaized.net/2109isftrwvmiekgrjkbbhxhfbkxjkoj/vod/audio_english_128/prog_index.m3u8 -c copy "Apple Special Event, October 2020 (1080p) temp.aac"
ffmpeg -i "Apple Special Event, October 2020 (1080p) temp.mp4" -i "Apple Special Event, October 2020 (1
# Script to download all the WWDC 2020 session videos in the highest 4K video and audio
# You may have to update ffmpeg before using this script. I needed version 4.3 or higher to successfully download the videos.
#
# If you want the lower bitrate audio, do a find/replace of "audio_english_192" with "audio_english_64"
# If you want lower bitrate or lower resolution video, do a find/replace of "hvc_2160p_16800" with any of the following:
# "hvc_2160p_11600"
# "hvc_1440p_8100"
# "hvc_1080p_5800"
# "hvc_1080p_4500"
# "hvc_720p_3400"
@gaearon
gaearon / modern_js.md
Last active July 18, 2024 10:37
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@zacwest
zacwest / ios-font-sizes.swift
Last active July 17, 2024 21:39
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@t-mart
t-mart / netrw quick reference.md
Last active July 25, 2024 13:56
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@JJediny
JJediny / gist:a466eed62cee30ad45e2
Created October 5, 2015 20:42
Jekyll Liquid Cheatsheet

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by
@squarism
squarism / iterm2.md
Last active July 28, 2024 13:44
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active July 4, 2024 15:00
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@debidatta
debidatta / git-checkout-ours-theirs
Last active July 4, 2019 14:35
Merging two branches with priority in conflict resolution
# If you want to keep changes of the current branch
grep -lr '<<<<<<<' . | xargs git checkout --ours
# If you want to keep the changes of the branch that is being merged
grep -lr '<<<<<<<' . | xargs git checkout --theirs