Skip to content

Instantly share code, notes, and snippets.

function QueryStringToJSON() {
var pairs = location.search.slice(1).split('&');
var result = {};
pairs.forEach(function(pair) {
pair = pair.split('=');
result[pair[0]] = decodeURIComponent(pair[1] || '');
});
return JSON.parse(JSON.stringify(result));
(function() {
var newScript, load,
firstScriptTag = document.getElementsByTagName('script')[0];
load = function load(url) {
newScript = document.createElement('script');
newScript.async = true;
newScript.src = url;
firstScriptTag.parentNode.insertBefore(newScript, firstScriptTag);
@fordlee404
fordlee404 / boot2docker-NFS.md
Last active August 29, 2015 14:25 — forked from haggen/README.md
boot2docker on nfs

A script to switch boot2docker to use NFS instead of VBoxfs for speed.

1) In your Mac, open the file /etc/nfs.conf and add this line:

nfs.server.mount.require_resv_port = 0

2) Then, open /etc/exports and add this line, changing the values to match your case: