Skip to content

Instantly share code, notes, and snippets.

@m3dwards
m3dwards / machine-diskutil.sh
Created April 21, 2016 16:28 — forked from cristobal/machine-diskutil.sh
Machine Diskutil to mount/unmont external volumes inside docker machines running on Virtualbox
#!/usr/bin/env sh
# @see http://stackoverflow.com/questions/30040708/how-to-mount-local-volumes-in-docker-machine
# @see https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md
################################################################################
# Dependency Section #
# #
################################################################################
check_deps() {
## Make sure commands are available
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
echo I am provisioning...
date > /etc/vagrant_provisioned_at
echo installing git...
sudo apt-get update
sudo apt-get install -y git-core
echo installing java...
@m3dwards
m3dwards / gist:4588041
Created January 21, 2013 18:13
MongoDB C# Driver Example
using System;
using MongoDB.Bson;
using MongoDB.Driver;
using MongoDB.Driver.Builders;
using MongoDB.Driver.GridFS;
using MongoDB.Driver.Linq;
using MelvilleAdmin.Models;