lavina/docs/cheatsheet.md

967 B

Cheatsheet

Some useful commands for development and testing.

Certificates

Following commands require OpenSSL to be installed. It is provided as openssl package in Arch Linux.

Generate self-signed TLS certificate. Mind the common name (CN) field, it should match the domain name of the server. Example for localhost:

openssl req -x509 -newkey rsa:4096 -sha256 -days 365 -noenc \
-keyout certs/xmpp.key -out certs/xmpp.pem \
-subj "/CN=localhost"

Print content of a TLS certificate:

openssl x509 -in certs/xmpp.pem -text

Protocol Specs

XMPP XSDs - [https://xmpp.org/schemas/index.shtml]

IRC modern spec - [https://modern.ircdocs.horse/]

Using irssi

irssi in a TUI-based IRC client.

Connecting:

/connect -nocap <address> [<port> [<password> [<nick>]]]

Password should be the same as in storage. Example:

/connect -nocap 127.0.0.1 6667 parolchik1 kek