| #!/bin/sh | |
| if [ -z "$1" ] ; then | |
| echo "Convert MediaInfo encoding settings to x264 commands" | |
| echo "Usage: $0 <video>" | |
| echo " $0 \"MediaInfo encoding settings\"" | |
| exit 0 | |
| fi | |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| 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 |
| #!/usr/bin/python3 | |
| """ | |
| !! IMPORTANT !! | |
| !! READ THIS !! | |
| In order to run this script you need python3 and pip3 installed. | |
| You also need some additional python modules. Please run | |
| sudo pip3 install httplib2 oauth2client | |
| sudo pip3 install --upgrade google-api-python-client | |
I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.
So below I made a list of leetcode problems that are as close to grokking problems as possible.

