Code Snippets: Difference between revisions

From Sea of Fate
Jump to navigationJump to search
Created page with "==Introduction== Some random code snippets or config options that I think I may want again.It will be best if it is divided into some sort of subject order, it can be cross-referenced at a later date if required. To link back to the section heading '''Random stuff'''. ==Linux Bash & Shell== Some stuff for bash."
 
Tag: Manual revert
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:


Some stuff for bash.
Some stuff for bash.
== mermaid demo ==
This diagram is rendered live via Mermaid.
{{#mermaid:graph TD
    subgraph External_Network [Public Access]
        INET((Internet))
    end
    subgraph VLAN_DMZ [VLAN 30: DMZ]
        T[Tayberry - LAMP]
    end
    subgraph VLAN_Production [VLAN 10: Internal]
        P[Plum - MediaWiki]
        B[Blackberry - Archiver]
    end
    subgraph VLAN_Compute [VLAN 40: High Power]
        Q[Quince - AI/GPU]
    end
    INET -->|HTTPS| T
    T -.->|Restricted| P
    P --- B
    Q --- P
   
    style T fill:#fcc,stroke:#333
    style Q fill:#dfd,stroke:#333
    style P fill:#9cf,stroke:#333
}}
===second demo===
{{#mermaid:graph LR
    A[User] -->|VLAN 10| B(Plum Wiki)
    B -->|SQL| C[(Database)]
   
    style B fill:#f9f,stroke:#333,stroke-width:4px
}}
'''Common Mermaid Shapes:'''
* [Rectangular] = Standard Node
* (Rounded) = Start/End
* {Decision} = Diamond shape
* [(Database)] = Cylinder

Latest revision as of 08:02, 16 February 2026

Introduction

Some random code snippets or config options that I think I may want again.It will be best if it is divided into some sort of subject order, it can be cross-referenced at a later date if required. To link back to the section heading Random stuff.

Linux Bash & Shell

Some stuff for bash.

mermaid demo

This diagram is rendered live via Mermaid.

second demo

Common Mermaid Shapes:

  • [Rectangular] = Standard Node
  • (Rounded) = Start/End
  • {Decision} = Diamond shape
  • [(Database)] = Cylinder