Skip to content

Instantly share code, notes, and snippets.

@parisholley
parisholley / mac-vagrant-unison.md
Last active August 2, 2017 21:44 — forked from pch/mac-vagrant-unison.md
How to install Unison on Mac OS El Sierra & Vagrant

How to install Unison on Mac OS El Sierra & Vagrant - for Docker Sync

You can install Unison on the Mac via homebrew (brew install unison), but it's very likely that it won't work properly, resulting in errors like:

Unison failed: Uncaught exception Failure("input_value: bad bigarray kind")
Fatal error: Lost connection with the server
@parisholley
parisholley / config.js
Last active August 29, 2015 14:15
Send Angular logs to Rollbar
app.config(['$provide', function ($provide) {
$provide.decorator('$log', function ($delegate) {
var send = function (type, rollbarType) {
return function () {
$delegate[type].apply(null, arguments);
if (window.Rollbar) {
window.Rollbar[rollbarType || type].apply(window.Rollbar, arguments);
}
};
@parisholley
parisholley / gist:b53787e4d2d46318c834
Last active February 1, 2018 17:32
Vagrant + Docker + Node.JS + Debugging

Here are the hoops you have to jump through to get this working..

In your VagrantFile for the Docker Host (meaning you use d.vagrant_vagrantfile option when configuring your "projects"):

config.vm.network "forwarded_port", guest: 5858, host: 5858

In your project vagrant file: