Go to file
2024-08-06 11:19:04 +02:00
pages Add zswap disabling option to bootloader 2024-08-06 11:19:04 +02:00
plugins (Grav GitSync) Automatic Commit from exu 2024-06-19 20:55:38 +02:00
themes Remove google fonts in learn2 2024-06-30 11:44:29 +02:00
.gitignore Modify to ignore any .sass-cache 2022-11-19 20:14:16 +01:00
README.md Update README 2024-02-25 13:11:06 +01:00

Style guide

Code blocks

PrismJS is used to provide syntax highlighting

Bash / SH

Shell highlighting uses additional keywords in markdown to set a desired prefix

Available options are [shroot] and [shuser]

Usage:

[shroot]

```
echo hello
```

[/shroot]

To filter outputlines, prepend them with (out).
Don't put a space between the keyword and the output

lsusb -d 0781:55a3 -v | grep bcdUSB
(out)bcdUSB               3.20

Sudo

Although I try to avoid using sudo, in some cases it is quite handy. Examples can be seen on the Nextcloud page, where commands need to be executed as www-data.
Following a post on lemmy, I learned of a cool way to do this with just su

This example copies a file in the web directory, using the user www-data. Command blocks using this style should be prefixed with # using [shroot]

[shroot]

```
su -s /bin/sh -c 'cp /var/www/html/html1 /var/www/html/html2' www-data
```

[/shroot]

Variables / Fill your own

Values that should be replaced by the reader are generally represented this way:
[VALUE]