Skip to content

Instantly share code, notes, and snippets.

@antonioiksi
antonioiksi / diagrams.md
Created September 2, 2022 11:11 — forked from blackcater/diagrams.md
Markdown Diagrams

Diagrams

Markdown Preview Enhanced supports rendering flow charts, sequence diagrams, mermaid, PlantUML, WaveDrom, GraphViz, Vega & Vega-lite, Ditaa diagrams. You can also render TikZ, Python Matplotlib, Plotly and all sorts of other graphs and diagrams by using Code Chunk.

Please note that some diagrams don't work well with file exports such as PDF, pandoc, etc.

Flow Charts

This feature is powered by flowchart.js.

@antonioiksi
antonioiksi / forticlientsslvpn-expect.sh
Created July 22, 2022 18:28 — forked from mgeeky/forticlientsslvpn-expect.sh
Simple script intended to automate Fortinet SSL VPN Client connection on Linux using expect scripting.
#!/bin/bash
# Forticlient SSL VPN Client launching script utilizing expect.
# --------------------------------------------
# CONFIGURATION
# If empty - script will take some simple logic to locate appropriate binary.
FORTICLIENT_PATH=""
@antonioiksi
antonioiksi / while_for_syntax_bash.sh
Created September 15, 2020 18:15 — forked from bench/while_for_syntax_bash.sh
while and for loop syntax in bash
# While loop
while [ $i -lt 10 ];
do
[...]
done
# C style for loop
for (( c=1; c<=$MAX_VAL; c++ ))
do
[...]
@antonioiksi
antonioiksi / condition_syntax_bash.sh
Created September 15, 2020 18:15 — forked from megamcloud/condition_syntax_bash.sh
conditions syntax in bash
## check the return of a command
if command; then
[...]
fi
## check by string comparison / numerical / file existence / or more
if [[ CHECK ]]; then
[...]
fi
name: Manage Inventory
type: module
description: 'Provides Inventory entity.'
package: Custom
core: 8.x
package: Custom