Tips

Lifestyle

Home Videos Via Apple TV

Share MP4 videos on your Mac with your Apple TV via the Apple TV App:

Cropping Videos

How-to crop the sides of a 5-second video clip and convert it from widescreen format (e.g., 16:9) to an old-style movie format (e.g., 4:3) using a CLI program. Use ffmpeg:

ffmpeg -i input.mp4 -vf "crop=ih*4/3:ih:(iw-ih*4/3)/2:0" -t 5 -c:a copy output.mp4

Converting iPhone Ringtones

Chess

Great Chess Openings to master.

Convert portable naming notation (PGN) from chess.com:

pgnconv() {
    cat $1 | sed  "s/ \[%timestamp null\]//g" | sed "s/ [0-9]*\.\.\.//g" > ${1%.*}_2.pgn
}

Baseball

Very useful reference for baseball related hacking: https://github.com/baseballhackday/data-and-resources/wiki/Resources-and-ideas

Poker

Games cheat-sheet patterns: