Code Snippets: Difference between revisions

From Sea of Fate
Jump to navigationJump to search
Tag: Manual revert
 
(4 intermediate revisions by the same user not shown)
Line 7: Line 7:
Some stuff for bash.
Some stuff for bash.


==mermaid==
== mermaid demo ==
graph TB
This diagram is rendered live via Mermaid.
     subgraph VLAN_Production [VLAN 10: Production]
 
        W[MediaWiki - Plum]
{{#mermaid:graph TD
         B[Archiver - Blackberry]
     subgraph External_Network [Public Access]
         INET((Internet))
     end
     end


     subgraph VLAN_DMZ [VLAN 30: DMZ]
     subgraph VLAN_DMZ [VLAN 30: DMZ]
         T[LAMP - Tayberry]
         T[Tayberry - LAMP]
    end
 
    subgraph VLAN_Production [VLAN 10: Internal]
        P[Plum - MediaWiki]
        B[Blackberry - Archiver]
     end
     end


     subgraph VLAN_Compute [VLAN 40: AI/GPU]
     subgraph VLAN_Compute [VLAN 40: High Power]
         Q[Ollama/Jellyfin - Quince]
         Q[Quince - AI/GPU]
     end
     end


     Internet((Internet)) -.->|Port 443| T
     INET -->|HTTPS| T
     W --- B
    T -.->|Restricted| P
     Q --- W
     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