Skip to content

Instantly share code, notes, and snippets.

Install Homebrew OS X package manager:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install ffmpeg with x265 support:
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
Convert video to x265:
ffmpeg -i input -c:v libx265 -preset medium -crf 28 -c:a aac -b:a 128k output.mp4
Uninstall ffmpeg:
@auneri
auneri / website.html
Last active June 28, 2021 09:14
Better motherfucking website template.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1, h2, h3 {
line-height: 1.2;
}
body {
margin: 40px auto;
max-width: 650px;
@sjl
sjl / html.vim
Created October 19, 2011 13:51
Tired of your Mustache/Underscore templates in <script type="text/html"> tags getting highlighted as Javascript in Vim? Change line 167 of /Applications/MacVim.app/Contents/Resources/vim/runtime/syntax/html.vim to this!
syn region javaScript start=+<script[^>]*type="text/javascript"[^>]*>+ keepend end=+</script>+me=s-1 contains=@htmlJavaScript,htmlCssStyleComment,htmlScriptTag,@htmlPreproc