Skip to content

Instantly share code, notes, and snippets.

@arielpontes
arielpontes / two-vagrants.md
Last active August 28, 2019 14:45
How to use two versions of Vagrant on a Mac

How to use two versions of Vagrant on a Mac

Vagrant doesn't make it easy to manage multiple versions of it. I was lucky enough to ended up working on a project whose vagrant up only works with the legacy Vagrant 1.4 and another one that only works with newer versions. I'll explain here how I managed to keep both. In this case I'll install Vagrant 1.4.3 and 1.7.4 (the newest as of now), but in principle it should work with other versions as well.

Vagrant 1.4.3 doesn't work with newer versions of VirtualBox (>4.3). During this experiment I messed up all my installations several times, so I'm installing everything from scratch (just go to the download page, download the dmg and run the pkg installer normally).

2. Hack the Vagrant 1.4.3 installation

@arielpontes
arielpontes / webvtt_notes.md
Last active November 10, 2015 23:44
WebVTT notes

WebVTT is a W3C standard for displaying timed text in HTML5. Its specification is currently (as of May 2015) in draft stage and therefore not all features are implemented by major players, especially when it comes to positioning. Since there are no recent summaries of WebVTT positioning online and the specification cannot be used by any sane person for quick reference, I'll make a short summary here.

#WebVTT Positioning

Let's start with an example. This file contains the main positioning parameters supported by WebVTT:

WEBVTT

00:00:01.000 --> 00:00:05.000 position:75% align:middle