This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%This is a basic English-to-Prolog translator. It uses a | |
%pathfinding algorithm to find the meaning of each sentence. | |
%For example, output([a,is,greater,than,B],X) means X = (a > b). | |
%The input is an English phrase. The output is a Prolog expression. | |
output(Input,Output) :- | |
is_output(Output), | |
means(Input,Output). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
# | |
# Author: Matt Pascoe - matt@opennetadmin.com | |
# | |
# This awk script is used to extract relavant information from a dhcpd.conf | |
# config file and build a csv with appropriate fields for passing into | |
# a dcm.pl module. This can be used to bootstrap a new database from existing | |
# site data. As usual, inspect the output for accuracy. | |
# Note that for hosts, it will try a reverse lookup on the IP address |