Skip to content

Instantly share code, notes, and snippets.

@codyhanson
codyhanson / gist:63ebfef0f8c2dbb36189f30bc94bd552
Created February 12, 2017 21:12
NETCDL Example Document
# Certification Subject: Home Network
# Author: Cody Hanson <chanson@uwalumni.com>
# Date: 10/1/2016
# Version: 1.0
define host myRouter as 192.168.1.1
define network myNetwork as 192.168.1.0/24
define network DMZ as 10.0.0.0/24
define host ftpSite as speedtest.tele2.net
@codyhanson
codyhanson / gist:d52069cf04054705dac2175b46ec0e4e
Last active February 12, 2017 21:18
NETCDL Certifier Implementation Standards
NETCDL Certifier Implementation Standards
This document, while not a formal RFC, should serve as a guide for implemen-
tors of future NETCDL Certifier Software. The key words ”MUST”, ”MUST NOT”,
”REQUIRED”, ”SHALL”, ”SHALL NOT”, ”SHOULD”, ”SHOULD NOT”, ”REC-
OMMENDED”, ”MAY”, and ”OPTIONAL” in this document are to be interpreted
as described in RFC2119[7].
A NETCDL certifier MUST recognize and parse a body of text that conforms to the official NETCDL grammar specification.
If a parse error occurs, the certifier SHOULD inform the user the cause of the error, so that they may fix it.
During certification the certifier SHALL evaluate every assertion in the input document.
@codyhanson
codyhanson / mongoNonUnique.js
Created November 13, 2017 16:02
MongoDB count non-unique
db.cases.aggregate([{"$group":{"_id":"$guid", "count": {"$sum":1}}}, {"$match": {"count":{"$gt":1}}}])