Skip to content

Commit 6c37472

Browse files
committed
Add commands
1 parent 90b20c3 commit 6c37472

55 files changed

Lines changed: 4871 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/commands/quicklisp.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# TLDR
2+
3+
**Install Quicklisp**
4+
5+
```curl -O https://beta.quicklisp.org/quicklisp.lisp && sbcl --load quicklisp.lisp```
6+
7+
**Load a system**
8+
9+
```(ql:quickload "system-name")```
10+
11+
**Search for systems**
12+
13+
```(ql:system-apropos "keyword")```
14+
15+
**Update Quicklisp**
16+
17+
```(ql:update-client)```
18+
19+
# SYNOPSIS
20+
21+
Quicklisp Common Lisp library manager
22+
23+
# DESCRIPTION
24+
25+
**Quicklisp** is a library manager for Common Lisp. It downloads, installs, and loads libraries and their dependencies automatically. It works with most Common Lisp implementations.
26+
27+
# INSTALLATION
28+
29+
```lisp
30+
; Download and load installer
31+
(load "quicklisp.lisp")
32+
33+
; Install to default location
34+
(quicklisp-quickstart:install)
35+
36+
; Add to init file
37+
(ql:add-to-init-file)
38+
```
39+
40+
# EXAMPLES
41+
42+
```lisp
43+
; Load a library
44+
(ql:quickload "cl-ppcre")
45+
46+
; Load multiple
47+
(ql:quickload '("alexandria" "cl-json"))
48+
49+
; Search for libraries
50+
(ql:system-apropos "http")
51+
52+
; Update dist
53+
(ql:update-dist "quicklisp")
54+
55+
; Update client
56+
(ql:update-client)
57+
58+
; List installed
59+
(ql:system-list)
60+
```
61+
62+
# COMMON LIBRARIES
63+
64+
```
65+
alexandria - Utility functions
66+
cl-ppcre - Regular expressions
67+
drakma - HTTP client
68+
cl-json - JSON parsing
69+
hunchentoot - Web server
70+
```
71+
72+
# CAVEATS
73+
74+
Requires Common Lisp implementation (SBCL, CCL, etc.). Libraries installed to ~/quicklisp/ by default.
75+
76+
# HISTORY
77+
78+
Quicklisp was created by **Zach Beane** in 2010 to simplify Common Lisp library management.
79+
80+
# SEE ALSO
81+
82+
[sbcl](/man/sbcl)(1), [clisp](/man/clisp)(1), [asdf](/man/asdf)(1)

assets/commands/quotaon.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# TLDR
2+
3+
**Enable quotas on filesystem**
4+
5+
```sudo quotaon [/home]```
6+
7+
**Enable all quotas**
8+
9+
```sudo quotaon -a```
10+
11+
**Enable user quotas only**
12+
13+
```sudo quotaon -u [/home]```
14+
15+
**Enable group quotas only**
16+
17+
```sudo quotaon -g [/home]```
18+
19+
**Verbose output**
20+
21+
```sudo quotaon -v [/home]```
22+
23+
# SYNOPSIS
24+
25+
**quotaon** [_options_] [_filesystem_...]
26+
27+
# PARAMETERS
28+
29+
**-a**
30+
> Enable all filesystems in /etc/fstab.
31+
32+
**-u**
33+
> Enable user quotas.
34+
35+
**-g**
36+
> Enable group quotas.
37+
38+
**-v**
39+
> Verbose mode.
40+
41+
**-p**
42+
> Print status only.
43+
44+
**-f**
45+
> Force enable.
46+
47+
# DESCRIPTION
48+
49+
**quotaon** enables disk quota enforcement on filesystems. Quotas must first be configured in /etc/fstab and quota files created with quotacheck.
50+
51+
# EXAMPLES
52+
53+
```bash
54+
# Enable all configured quotas
55+
sudo quotaon -a
56+
57+
# Enable on specific filesystem
58+
sudo quotaon /home
59+
60+
# Enable user quotas only
61+
sudo quotaon -u /home
62+
63+
# Check what would be enabled
64+
sudo quotaon -p /home
65+
66+
# Enable with verbose output
67+
sudo quotaon -vug /home
68+
```
69+
70+
# SETUP WORKFLOW
71+
72+
```bash
73+
# 1. Edit /etc/fstab (add usrquota,grpquota)
74+
# 2. Remount filesystem
75+
mount -o remount /home
76+
77+
# 3. Create quota files
78+
quotacheck -cug /home
79+
80+
# 4. Enable quotas
81+
quotaon /home
82+
83+
# 5. Set user limits
84+
edquota -u username
85+
```
86+
87+
# CAVEATS
88+
89+
Requires quota support in kernel and filesystem. Must run quotacheck first. Requires root privileges.
90+
91+
# HISTORY
92+
93+
Disk quotas originated in **BSD Unix** and were adopted by Linux for managing disk space allocation.
94+
95+
# SEE ALSO
96+
97+
[quotaoff](/man/quotaoff)(8), [quotacheck](/man/quotacheck)(8), [edquota](/man/edquota)(8), [repquota](/man/repquota)(8)
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# TLDR
2+
3+
**Check node health**
4+
5+
```rabbitmq-diagnostics check_running```
6+
7+
**Check cluster status**
8+
9+
```rabbitmq-diagnostics cluster_status```
10+
11+
**Check alarms**
12+
13+
```rabbitmq-diagnostics check_alarms```
14+
15+
**Memory breakdown**
16+
17+
```rabbitmq-diagnostics memory_breakdown```
18+
19+
**Check virtual hosts**
20+
21+
```rabbitmq-diagnostics check_virtual_hosts```
22+
23+
# SYNOPSIS
24+
25+
**rabbitmq-diagnostics** [_options_] _command_ [_command_options_]
26+
27+
# PARAMETERS
28+
29+
**-n** _node_
30+
> Target node.
31+
32+
**-t** _timeout_
33+
> Command timeout.
34+
35+
**--formatter** _format_
36+
> Output format (json, csv).
37+
38+
**-q**
39+
> Quiet mode.
40+
41+
# DESCRIPTION
42+
43+
**rabbitmq-diagnostics** provides health checks and diagnostic information for RabbitMQ nodes and clusters. It's the primary tool for monitoring RabbitMQ health.
44+
45+
# EXAMPLES
46+
47+
```bash
48+
# Node health check
49+
rabbitmq-diagnostics check_running
50+
51+
# Cluster status
52+
rabbitmq-diagnostics cluster_status
53+
54+
# Check for alarms
55+
rabbitmq-diagnostics check_alarms
56+
57+
# Memory usage
58+
rabbitmq-diagnostics memory_breakdown
59+
60+
# Check port listeners
61+
rabbitmq-diagnostics check_port_connectivity
62+
63+
# JSON output
64+
rabbitmq-diagnostics status --formatter json
65+
```
66+
67+
# HEALTH CHECKS
68+
69+
```bash
70+
check_running # Node is running
71+
check_alarms # No resource alarms
72+
check_local_alarms # No local alarms
73+
check_port_connectivity # Ports accessible
74+
check_virtual_hosts # VHosts operational
75+
```
76+
77+
# CAVEATS
78+
79+
Requires running RabbitMQ node. Some commands need appropriate permissions. Part of RabbitMQ server package.
80+
81+
# HISTORY
82+
83+
rabbitmq-diagnostics was introduced in **RabbitMQ 3.8** as a dedicated diagnostics tool, replacing some rabbitmqctl functions.
84+
85+
# SEE ALSO
86+
87+
[rabbitmqctl](/man/rabbitmqctl)(8), [rabbitmq-plugins](/man/rabbitmq-plugins)(8), [rabbitmq-server](/man/rabbitmq-server)(8)
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# TLDR
2+
3+
**List plugins**
4+
5+
```rabbitmq-plugins list```
6+
7+
**Enable plugin**
8+
9+
```rabbitmq-plugins enable [rabbitmq_management]```
10+
11+
**Disable plugin**
12+
13+
```rabbitmq-plugins disable [rabbitmq_management]```
14+
15+
**Enable multiple plugins**
16+
17+
```rabbitmq-plugins enable [plugin1] [plugin2]```
18+
19+
**Show enabled plugins**
20+
21+
```rabbitmq-plugins list --enabled```
22+
23+
# SYNOPSIS
24+
25+
**rabbitmq-plugins** [_options_] _command_ [_command_options_]
26+
27+
# PARAMETERS
28+
29+
**-n** _node_
30+
> Target node.
31+
32+
**--offline**
33+
> Modify without running node.
34+
35+
**--online**
36+
> Require running node.
37+
38+
# COMMANDS
39+
40+
**list**
41+
> List all plugins.
42+
43+
**enable** _plugins_
44+
> Enable plugins.
45+
46+
**disable** _plugins_
47+
> Disable plugins.
48+
49+
**set** _plugins_
50+
> Set exact plugin list.
51+
52+
# DESCRIPTION
53+
54+
**rabbitmq-plugins** manages RabbitMQ plugins. Plugins extend RabbitMQ functionality with features like management UI, MQTT support, and LDAP authentication.
55+
56+
# EXAMPLES
57+
58+
```bash
59+
# List all plugins
60+
rabbitmq-plugins list
61+
62+
# Enable management UI
63+
rabbitmq-plugins enable rabbitmq_management
64+
65+
# Enable MQTT
66+
rabbitmq-plugins enable rabbitmq_mqtt
67+
68+
# Disable plugin
69+
rabbitmq-plugins disable rabbitmq_stomp
70+
71+
# Offline enable
72+
rabbitmq-plugins enable --offline rabbitmq_management
73+
```
74+
75+
# COMMON PLUGINS
76+
77+
```
78+
rabbitmq_management - Web UI and API
79+
rabbitmq_mqtt - MQTT protocol
80+
rabbitmq_stomp - STOMP protocol
81+
rabbitmq_shovel - Message transfer
82+
rabbitmq_federation - Federation
83+
rabbitmq_prometheus - Metrics export
84+
```
85+
86+
# CAVEATS
87+
88+
Some plugins require node restart. Dependencies enabled automatically. Management UI on port 15672.
89+
90+
# HISTORY
91+
92+
RabbitMQ plugins system was developed by **Pivotal** (now VMware) as part of RabbitMQ's extensible architecture.
93+
94+
# SEE ALSO
95+
96+
[rabbitmqctl](/man/rabbitmqctl)(8), [rabbitmq-diagnostics](/man/rabbitmq-diagnostics)(8), [rabbitmq-server](/man/rabbitmq-server)(8)

0 commit comments

Comments
 (0)