Code Snippets

From Sea of Fate
Revision as of 08:01, 16 February 2026 by Wikisailor (talk | contribs) (second demo)
Jump to navigationJump to search

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


svg demo

<svg width="200" height="100" xmlns="http://www.w3.org/2000/svg">

 <rect x="10" y="10" width="180" height="80" fill="lightblue" stroke="black" 
       onclick="alert('Connecting to Quince VM...')" style="cursor:pointer;"/>
 
 <text x="100" y="55" font-family="Arial" font-size="14" 
       text-anchor="middle" fill="black">Click for Quince Status</text>
 
 <script>
   console.log("SVG Diagram Script Loaded for Sea of Fate Wiki");
 </script>

</svg>