From 09231721ce67fe526062fd243fb9a3a9c8731d46 Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 25 Jun 2022 19:53:14 +0000 Subject: deploy: 6b252dbc87462a5ccfd31c8fc6c27195646365dd --- tools/awk.html | 2 +- tools/bash.html | 2 +- tools/dot.html | 272 +++++++++++++++++++++++++++++++++++++++++++++++++++ tools/emacs.html | 2 +- tools/fish.html | 2 +- tools/gdb.html | 2 +- tools/gdbserver.html | 2 +- tools/git.html | 2 +- tools/gpg.html | 2 +- tools/index.html | 3 +- tools/pacman.html | 6 +- tools/qemu.html | 2 +- tools/radare2.html | 2 +- tools/tmux.html | 2 +- tools/zsh.html | 2 +- 15 files changed, 289 insertions(+), 16 deletions(-) create mode 100644 tools/dot.html (limited to 'tools') diff --git a/tools/awk.html b/tools/awk.html index ee5a39b..76404ae 100644 --- a/tools/awk.html +++ b/tools/awk.html @@ -81,7 +81,7 @@ diff --git a/tools/bash.html b/tools/bash.html index 1078a60..72598e3 100644 --- a/tools/bash.html +++ b/tools/bash.html @@ -81,7 +81,7 @@ diff --git a/tools/dot.html b/tools/dot.html new file mode 100644 index 0000000..a78f568 --- /dev/null +++ b/tools/dot.html @@ -0,0 +1,272 @@ + + + + + + dot - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + +
+
+

dot(1)

+

Example dot file to copy & paste from.

+

Can be rendered to svg with the following command.

+
dot -T svg -o g.svg g.dot
+
+

Example dot file.

+
// file: g.dot
+digraph {
+    // Render ranks from left to right.
+    rankdir=LR
+    // Make background transparent.
+    bgcolor=transparent
+
+    // Global node attributes.
+    node [shape=box]
+    // Global edge attributes.
+    edge [style=dotted,color=red]
+
+    // Add nodes & edge.
+    stage1 -> stage2
+    // Add multiple edges at once.
+    stage2 -> { stage3_1, stage3_2 }
+    // Add edge with custom attributes.
+    stage3_2 -> stage4 [label="some text"]
+
+    // Set custom attributes for specific node.
+    stage4 [color=green,fillcolor=lightgray,style="filled,dashed",label="s4"]
+
+    // Create a subgraph. This can be used to group nodes/edges or as scope for
+    // global node/edge attributes.
+    // If the name starts with 'cluster' a border is drawn.
+    subgraph cluster_1 {
+        stage5_1
+        stage5_2
+    }
+
+    // Add some edges to subgraph nodes.
+    stage3_1 -> { stage5_1, stage5_2 }
+}
+
+

Rendered svg file. +g.svg

+

References

+ + +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/emacs.html b/tools/emacs.html index 485ba0b..8c289fa 100644 --- a/tools/emacs.html +++ b/tools/emacs.html @@ -81,7 +81,7 @@ diff --git a/tools/fish.html b/tools/fish.html index 58e387b..99acae9 100644 --- a/tools/fish.html +++ b/tools/fish.html @@ -81,7 +81,7 @@ diff --git a/tools/gdb.html b/tools/gdb.html index c45f6c2..d9544fb 100644 --- a/tools/gdb.html +++ b/tools/gdb.html @@ -81,7 +81,7 @@ diff --git a/tools/gdbserver.html b/tools/gdbserver.html index fa11a42..65c62e3 100644 --- a/tools/gdbserver.html +++ b/tools/gdbserver.html @@ -81,7 +81,7 @@ diff --git a/tools/git.html b/tools/git.html index 7b55287..9492363 100644 --- a/tools/git.html +++ b/tools/git.html @@ -81,7 +81,7 @@ diff --git a/tools/gpg.html b/tools/gpg.html index 5f5b341..4b5c3c0 100644 --- a/tools/gpg.html +++ b/tools/gpg.html @@ -81,7 +81,7 @@ diff --git a/tools/index.html b/tools/index.html index 1ed9f60..da1396b 100644 --- a/tools/index.html +++ b/tools/index.html @@ -81,7 +81,7 @@ @@ -167,6 +167,7 @@
  • radare2
  • qemu
  • pacman
  • +
  • dot
  • diff --git a/tools/pacman.html b/tools/pacman.html index 5f683a5..a5885e6 100644 --- a/tools/pacman.html +++ b/tools/pacman.html @@ -81,7 +81,7 @@ @@ -203,7 +203,7 @@ package and sort by size.

    - @@ -221,7 +221,7 @@ package and sort by size.

    - diff --git a/tools/qemu.html b/tools/qemu.html index 7aa441c..042892d 100644 --- a/tools/qemu.html +++ b/tools/qemu.html @@ -81,7 +81,7 @@ diff --git a/tools/radare2.html b/tools/radare2.html index 2c53707..9f6e58b 100644 --- a/tools/radare2.html +++ b/tools/radare2.html @@ -81,7 +81,7 @@ diff --git a/tools/tmux.html b/tools/tmux.html index 7d0482d..b1e41de 100644 --- a/tools/tmux.html +++ b/tools/tmux.html @@ -81,7 +81,7 @@ diff --git a/tools/zsh.html b/tools/zsh.html index 2e8a748..52e5764 100644 --- a/tools/zsh.html +++ b/tools/zsh.html @@ -81,7 +81,7 @@ -- cgit v1.2.3