Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| #!/bin/bash | |
| # ------------------------------------- | |
| # Databases backup with X days storage history | |
| # | |
| # User executing this script must have FULL permissions | |
| # to mysql and mysqldump | |
| # | |
| # Use $HOME/.my.cnf to store MySQL auth | |
| # |
| # Undo latest commit | |
| git reset --soft HEAD^ | |
| # Undo the changes of a commit (creating a new commit) | |
| git revert <commit> | |
| # Undo latest merge (before push) | |
| git reset --merge ORIG_HEAD | |
| # Merge a branch using the version of the current branch in case of conflicts |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |