Skip to content

Instantly share code, notes, and snippets.

@sudowork
sudowork / vpn_fix.sh
Last active April 26, 2016 01:32
Fixes firewall rules and corrects routes that may have been overwritten by a VPN client.
#!/usr/bin/env bash
# You must have sudo ability on your machine
machine=${1:-"default"}
if [[ ! $(docker-machine ls | grep ${machine}) ]]; then
echo "${machine} is not a docker-machine"
exit 1
fi
@sudowork
sudowork / gist:7441905
Last active December 28, 2015 04:19 — forked from jdsiddon/gist:7441841
/* sites.js */
var
mongoose = require('mongoose')
, Schema = mongoose.Schema
, update = require('./updates')
;
//Define the site model
var siteSchema = new Schema({
client: String,