Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions data/capabilities.tbl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1 routing (ipv4)
2 hostname resolution
3 private subnetting (rfc1918)
4 file hosting
5 smtp
6 vpn
6 changes: 6 additions & 0 deletions data/dependencies.tbl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
2 -> 1
3 -> 1
4 -> 2
5 -> 2
6 -> 2
6 -> 3
8 changes: 8 additions & 0 deletions data/dotfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
# dotfile -T png -o graph.png; open graph.png
require 'json'
c = Hash.new();
puts "digraph D {"
File.open("capabilities.tbl").each { |line| c[line.chomp.gsub(/ .*/,"")] = "#{line.chomp}".gsub(/^[0-9]* */,"") };
File.open("dependencies.tbl").each { |dep| (a,b) = dep.chomp.split(" -> "); puts "\"#{c[a]}\" -> \"#{c[b]}\"" }
puts "}"