This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg -i "$in_file" -vcodec rawvideo -pix_fmt uyvy422 -vtag 2vuy -acodec $audio-codec "$out_file" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* per http://stackoverflow.com/questions/20590239/maintain-aspect-ratio-of-div-but-fill-screen-width-and-height-in-css */ | |
| div { | |
| width: 100vw; | |
| height: 56.25vw; /* height:width ratio = 9/16 = .5625 */ | |
| background: pink; | |
| max-height: 100vh; | |
| max-width: 177.78vh; /* 16/9 = 1.778 */ | |
| margin: auto; | |
| position: absolute; | |
| top:0;bottom:0; /* vertical center */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # per http://asisolve.com/ffmpeg-encoding-settings-for-web-video/ | |
| ffmpeg -i [path-to-video] -vcodec libx264 -preset slow -profile main -crf 25 -acodec libfdk_aac -ab 64k [new-video-name].mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brew install homebrew/versions/v8-315 | |
| brew link --overwrite v8-315 --force | |
| gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
| gem install therubyracer -v '0.12.2' -- --with-system-v8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### XCode | |
| echo "Installing XCode Tools" | |
| xcode-select --install | |
| ### Homebrew | |
| echo "Installing Homebrew" | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| ### Git | |
| brew install git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # based on http://www.stevekamerman.com/2008/03/deleting-tons-of-files-in-linux-argument-list-too-long/ | |
| ls -1 | wc -l && time find . -type f -delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### BEFORE USING THIS, CHANGE ALL THE VALUES BETWEEN DOUBLE-SQUARE-BRACKETS #### | |
| # SEE THE END OF THIS FOR REFERENCES | |
| # YOU SHOULD BE ABLE TO COPY AND PASTE THE FOLLOWING LINES, | |
| # BUT CHUNK IT OUT BY THE # ===== separators | |
| # PERFORM AS ROOT UNLESS OTHERWISE SPECIFIED | |
| # ===== BEGIN INITIAL SETUP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Some config taken from https://natelandau.com/my-mac-osx-bash_profile/ | |
| # --------------------------------------------------------- | |
| # GENERAL: Exports | |
| # --------------------------------------------------------- | |
| export CLICOLOR=1 # add colors to the output | |
| export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx # ^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "binary_file_patterns": | |
| [ | |
| "*.jpg", | |
| "*.jpeg", | |
| "*.png", | |
| "*.gif", | |
| "*.ttf", | |
| "*.tga", | |
| "*.dds", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |