Simple command-line tool to print cheatsheets.
Requires Python3.
The available cheats (and thus a list of them) can be viewed here.
This cheatsheet is insipred by the one created by martialblog.
Clone the repository into your home:
git clone https://github.com/tbauriedel/cheat-docs.git ~/.cheat-docsAdd an alias to have it more comfortable:
alias cheatdocs="python3 ~/.cheat-docs/docs.py"List all available cheat docs:
cheatdocs --listPrint cheat doc:
cheatdocs <cheat>☁ ~ cheatdocs --list
--------------------------------------------------------------------------------------------------------------------------------------------------------------
List of available cheat docs:
utils => list of useful utils for debugging, etc.
openssl => openssl command-lint util
git => git command-line util
...☁ ~ cheatdocs openssl
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Cheat: openssl
Description: openssl command-lint util
Sections: ['keys', 'csr', 'x509', 'debugging']
Source: /root/.cheat-docs/docs/openssl.ini
--------------------------------------------------------------------------------------------------------------------------------------------------------------
[x509]
create self-signed x509 => openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365
create self-signed from key and csr => openssl x509 -req -in foobar.csr -signkey foobar.key -out foobar.crt -days 365
[debugging]
print x509 details => openssl x509 -text -noout -in <certificate-file>
verify x509 is signed by ca => openssl verify -CAfile <ca-file> <certificate-file>
check pkcs12 => openssl pkcs12 -info -in <pkcs12-file>
check an ssl connection => openssl s_client -connect localhost:443
...You can add custom cheat docs by creating a new .ini inside the docs folder. The cheat-docs tool will read all .ini files inside of this directory and make it available.
Please ensure to have the cheat section as well (This is used to print the meta information in --list and the cheatdoc itself).
If you want to add some free text, use text inside of your cheat section.
MIT License - Copyright (c) 2025 Tobias Bauriedel