Code Snippets: Difference between revisions
From Sea of Fate
Jump to navigationJump to search
Wikisailor (talk | contribs) |
Wikisailor (talk | contribs) 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 | This diagram is rendered live via Mermaid. | ||
subgraph | |||
{{#mermaid:graph TD | |||
subgraph External_Network [Public Access] | |||
INET((Internet)) | |||
end | end | ||
subgraph VLAN_DMZ [VLAN 30: DMZ] | subgraph VLAN_DMZ [VLAN 30: DMZ] | ||
T[LAMP - | T[Tayberry - LAMP] | ||
end | |||
subgraph VLAN_Production [VLAN 10: Internal] | |||
P[Plum - MediaWiki] | |||
B[Blackberry - Archiver] | |||
end | end | ||
subgraph VLAN_Compute [VLAN 40: | subgraph VLAN_Compute [VLAN 40: High Power] | ||
Q[ | Q[Quince - AI/GPU] | ||
end | end | ||
INET -->|HTTPS| T | |||
T -.->|Restricted| P | |||
Q --- | 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