Skip to content

Instantly share code, notes, and snippets.

@eloyesp
eloyesp / capybara.rb
Created January 31, 2017 20:21
auto save and open page on failure
RSpec.configure do |config|
config.after(type: :feature) do |example|
if Capybara::CapybaraError === example.exception
save_and_open_page
end
end
end
@Vestride
Vestride / encoding-video.md
Last active March 12, 2024 16:41
Encoding video for the web

Encoding Video

Installing

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