Update cheatsheets

This commit is contained in:
ivuorinen
2024-05-29 00:14:54 +00:00
parent f104adf657
commit 16a9d40c57
14 changed files with 91 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# asterisk
> Run and manage telephone and exchange (phone) server instances.
> More information: <https://wiki.asterisk.org/wiki/display/AST/Home>.
> More information: <https://docs.asterisk.org>.
- [R]econnect to a running server, and turn on logging 3 levels of [v]erbosity:

37
tldr/linux/auditctl Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# auditctl
> Utility to control the behavior, get status and manage rules of the Linux Auditing System.
> More information: <https://manned.org/auditctl>.
- Display the [s]tatus of the audit system:
`sudo auditctl -s`
- [l]ist all currently loaded audit rules:
`sudo auditctl -l`
- [D]elete all audit rules:
`sudo auditctl -D`
- [e]nable/disable the audit system:
`sudo auditctl -e {{1|0}}`
- Watch a file for changes:
`sudo auditctl -a always,exit -F arch=b64 -F path={{/path/to/file}} -F perm=wa`
- Recursively watch a directory for changes:
`sudo auditctl -a always,exit -F arch=b64 -F dir={{/path/to/directory/}} -F perm=wa`
- Display [h]elp:
`auditctl -h`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# eopkg
> Package manager for Solus.
> More information: <https://getsol.us/articles/package-management/basics/en/>.
> More information: <https://help.getsol.us/docs/user/package-management/basics>.
- Install a specific package:

View File

@@ -6,7 +6,8 @@ source: https://github.com/tldr-pages/tldr.git
# feedreader
> A GUI desktop RSS client.
> More information: <https://jangernert.github.io/FeedReader/>.
> Note: FeedReader is no longer being maintained.
> More information: <https://github.com/jangernert/FeedReader>.
- Print the count of unread articles:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# gummy
> Screen brightness/temperature manager for Linux/X11.
> More information: <https://github.com/Fushko/gummy>.
> More information: <http://web.archive.org/web/20230717200025/https://github.com/Fushko/gummy>.
- Set the screen temperature to 3000K:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# kdialog
> Show KDE dialog boxes from within shell scripts.
> More information: <https://develop.kde.org/deploy/kdialog/>.
> More information: <https://develop.kde.org/docs/administration/kdialog/>.
- Open a dialog box displaying a specific message:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lxterminal
> Terminal emulator for LXDE.
> More information: <https://wiki.lxde.org/en/LXTerminal>.
> More information: <https://github.com/lxde/lxterminal>.
- Open an LXTerminal window:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ntpdate
> Synchronize and set the date and time via NTP.
> More information: <http://support.ntp.org/documentation>.
> More information: <https://manned.org/ntpdate>.
- Synchronize and set date and time:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# obabel
> Translate chemistry-related data.
> More information: <https://openbabel.org/wiki/Main_Page>.
> More information: <https://open-babel.readthedocs.io/en/latest/Command-line_tools/babel.html>.
- Convert a .mol file to XYZ coordinates:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rpmbuild
> RPM Package Build tool.
> More information: <https://docs.fedoraproject.org/en-US/quick-docs/creating-rpm-packages/>.
> More information: <https://manned.org/man/rpmbuild>.
- Build binary and source packages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# swupd
> Package management utility for Clear Linux.
> More information: <https://docs.01.org/clearlinux/latest/guides/clear/swupd.html>.
> More information: <https://www.clearlinux.org/clear-linux-documentation/guides/clear/swupd.html>.
- Update to the latest version:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# vrms
> Report non-free packages installed on Debian-based OSes.
> More information: <https://debian.pages.debian.net/vrms/>.
> More information: <https://salsa.debian.org/debian/check-dfsg-status>.
- List non-free and contrib packages (and their description):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# warpd
> A modal keyboard driven pointer manipulation program.
> More information: <https://github.com/rvaiya/warpd/blob/master/man.md>.
> More information: <https://github.com/rvaiya/warpd/blob/master/warpd.1.md>.
- Run warpd in normal mode:

41
tldr/mypy Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# mypy
> Type check Python code.
> More information: <https://mypy.readthedocs.io/en/stable/running_mypy.html>.
- Type check a specific file:
`mypy {{path/to/file.py}}`
- Type check a specific [m]odule:
`mypy -m {{module_name}}`
- Type check a specific [p]ackage:
`mypy -p {{package_name}}`
- Type check a string of code:
`mypy -c "{{code}}"`
- Ignore missing imports:
`mypy --ignore-missing-imports {{path/to/file_or_directory}}`
- Show detailed error messages:
`mypy --show-traceback {{path/to/file_or_directory}}`
- Specify a custom configuration file:
`mypy --config-file {{path/to/config_file}}`
- Display [h]elp:
`mypy -h`