Skip to content

Commit

Permalink
Update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripospisil committed Jul 14, 2023
1 parent 138c495 commit b1e4e6a
Show file tree
Hide file tree
Showing 30 changed files with 363 additions and 28 deletions.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const Allocator = std.mem.Allocator;

const VERSION = "0.0.4";
const VERSION = "0.0.5";

fn embedData(b: *std.Build, exe: *std.Build.Step.Compile) !void {
var options = b.addOptions();
Expand Down
2 changes: 1 addition & 1 deletion pages/common/bgpgrep.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Filter and print BGP data within MRT dumps.
> Can read files compressed with gzip, bzip2 and xz.
> More information: <https://gitea.it/1414codeforge/ubgpsuite>.
> More information: <https://codeberg.org/1414codeforge/ubgpsuite>.
- Output all routes:

Expand Down
4 changes: 2 additions & 2 deletions pages/common/birdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
> Command tool to retrieve information like routes from bird and perform configurations during runtime.
> More information: <https://bird.network.cz/>.
- Open the remote control console::
- Open the remote control console:

`birdc`

Expand All @@ -16,7 +16,7 @@

`birdc show status`

- Show all active protocols:
- Show all configured protocols:

`birdc show protocols`

Expand Down
20 changes: 20 additions & 0 deletions pages/common/cavif.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# cavif

> PNG/JPEG to AVIF converter.
> More information: <https://github.com/kornelski/cavif-rs>.
- Convert a JPEG file to AVIF:

`cavif {{path/to/file.jpg}}`

- Adjust the image quality (1-100) and convert a PNG file to AVIF:

`cavif --quality {{60}} {{path/to/file.png}}`

- Set the output location explicitly:

`cavif {{path/to/file.jpg}} --output {{path/to/file.avif}}`

- Overwrite the destination file if it already exists:

`cavif --overwrite {{path/to/file.jpg}}`
12 changes: 12 additions & 0 deletions pages/common/exfatlabel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# exfatlabel

> Get or set an exFAT filesystem label.
> More information: <https://manned.org/exfatlabel>.
- Display the current filesystem label:

`exfatlabel {{/dev/sda}}`

- Set the filesystem label:

`exfatlabel {{/dev/sda}} {{new_label}}`
2 changes: 1 addition & 1 deletion pages/common/fastd.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@

`fastd --show-key --config {{path/to/fastd.conf}}`

- Show the current version::
- Show the current version:

`fastd -v`
8 changes: 8 additions & 0 deletions pages/common/ffplay.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

`ffplay {{path/to/file}}`

- Play audio from a media file without a GUI:

`ffplay -nodisp {{path/to/file}}`

- Play media passed by `ffmpeg` through `stdin`:

`ffmpeg -i {{path/to/file}} -c {{copy}} -f {{media_format}} - | ffplay -`

- Play a video and show motion vectors in real time:

`ffplay -flags2 +export_mvs -vf codecview=mv=pf+bf+bb {{path/to/file}}`
Expand Down
2 changes: 1 addition & 1 deletion pages/common/fold.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# fold

> Wraps each line in an input file to fit a specified width and prints it to the standard output.
> More information: <https://www.gnu.org/software/coreutils/fold>.
> More information: <https://manned.org/fold.1p>.
- Wrap each line to default width (80 characters):

Expand Down
6 changes: 5 additions & 1 deletion pages/common/gallery-dl.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

`gallery-dl "{{url}}"`

- Retrieve pre-existing cookies from your web browser (useful for sites that require login):

`gallery-dl --cookies-from-browser {{browser}} "{{url}}"`

- Get the direct URL of an image from a site supporting authentication with username and password:

`gallery-dl --get-urls --username {{username}} --password {{password}} "{{url}}"`

- Filter manga chapters by chapter number and language:

`gallery-dl --chapter-filter "{{10 <= chapter < 20}}" --option "lang={{language_code}}" "{{url}}`
`gallery-dl --chapter-filter "{{10 <= chapter < 20}}" --option "lang={{language_code}}" "{{url}}"`
2 changes: 1 addition & 1 deletion pages/common/head.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# head

> Output the first part of files.
> More information: <https://www.gnu.org/software/coreutils/head>.
> More information: <https://manned.org/head.1p>.
- Output the first few lines of a file:

Expand Down
24 changes: 24 additions & 0 deletions pages/common/macchina.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# macchina

> Display information about your computer.
> More information: <https://github.com/Macchina-CLI/macchina>.
- List out system information, with either default settings or those specified in your configuration file:

`macchina`

- Specify a custom configuration file path:

`macchina --config {{path/to/configuration_file}}`

- List system information, but lengthen uptime, shell and kernel output:

`macchina --long-uptime --long-shell --long-kernel`

- Check for any errors/system failures encountered when trying to fetch system information:

`macchina --doctor`

- List original artists of all the ASCII art:

`macchina --ascii-artists`
18 changes: 11 additions & 7 deletions pages/common/mtr.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
# mtr

> Matt's Traceroute: combined traceroute and ping tool.
> More information: <https://bitwizard.nl/mtr>.
> More information: <https://www.bitwizard.nl/mtr/>.
- Traceroute to a host and continuously ping all intermediary hops:

`mtr {{host}}`
`mtr {{example.com}}`

- Disable IP address and host name mapping:

`mtr -n {{host}}`
`mtr --no-dns {{example.com}}`

- Generate output after pinging each hop 10 times:

`mtr -w {{host}}`
`mtr --report-wide {{example.com}}`

- Force IP IPv4 or IPV6:

`mtr -4 {{host}}`
`mtr -4 {{example.com}}`

- Wait for a given time (in seconds) before sending another packet to the same hop:

`mtr -i {{seconds}} {{host}}`
`mtr --interval {{10}} {{example.com}}`

- Display the Autonomous System Number (ASN) for each hop:

`mtr --aslookup {{hostname}}`
`mtr --aslookup {{example.com}}`

- Display both IP address and reverse DNS name:

`mtr --show-ips {{example.com}}`
36 changes: 36 additions & 0 deletions pages/common/nping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# nping

> Network packet generation tool/ping utility.
> More information: <https://nmap.org/nping/>.
- Ping a specified host using ICMP if the user is allowed to, otherwise using TCP:

`nping {{example.com}}`

- Ping a specified host using ICMP assuming that the user is allowed to do so:

`nping --icmp --privileged {{example.com}}`

- Ping a specified host using UDP:

`nping --udp {{example.com}}`

- Ping a specified host on a given port using TCP:

`nping --tcp --dest-port {{443}} {{example.com}}`

- Ping a certain number of times:

`nping --count {{10}} {{example.com}}`

- Wait a certain amount of time between each ping:

`nping --delay {{5s}} {{example.com}}`

- Send the request over a specified interface:

`nping --interface {{eth0}} {{example.com}}`

- Set the Reserved/Evil bit in sent packets:

`nping --evil {{example.com}}`
2 changes: 1 addition & 1 deletion pages/common/peerindex.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Inspect MRT TABLE_DUMPV2 Peer Index Table.
> Can read files compressed with gzip, bzip2 and xz.
> More information: <https://gitea.it/1414codeforge/ubgpsuite>.
> More information: <https://codeberg.org/1414codeforge/ubgpsuite>.
- Output all peers:

Expand Down
20 changes: 14 additions & 6 deletions pages/common/traceroute.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@
- Traceroute to a host:

`traceroute {{host}}`
`traceroute {{example.com}}`

- Disable IP address and host name mapping:

`traceroute -n {{host}}`
`traceroute -n {{example.com}}`

- Specify wait time for response:
- Specify wait time in seconds for response:

`traceroute -w {{0.5}} {{host}}`
`traceroute --wait={{0.5}} {{example.com}}`

- Specify number of queries per hop:

`traceroute -q {{5}} {{host}}`
`traceroute --queries={{5}} {{example.com}}`

- Specify size in bytes of probing packet:

`traceroute {{host}} {{42}}`
`traceroute {{example.com}} {{42}}`

- Determine the MTU to the destination:

`traceroute --mtu {{example.com}}`

- Use ICMP instead of UDP for tracerouting:

`traceroute --icmp {{example.com}}`
2 changes: 1 addition & 1 deletion pages/common/whisper.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- Convert an audio file specifying the output format of the converted file:

`whisper {{path/to/audio.mp3}} --output-format {{txt}}`
`whisper {{path/to/audio.mp3}} --output_format {{txt}}`

- Convert an audio file using a specific model for conversion:

Expand Down
17 changes: 17 additions & 0 deletions pages/common/yacc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yacc

> Generate an LALR parser (in C) with a given formal grammar specification file.
> See also: `bison`.
> More information: <https://manned.org/man/yacc.1p>.
- Create a file `y.tab.c` containing the C parser code and compile the grammar file with all necessary constant declarations for values. (Constant declarations file `y.tab.h` is created only when the `-d` flag is used):

`yacc -d {{path/to/grammar_file.y}}`

- Compile a grammar file containing the description of the parser and a report of conflicts generated by ambiguities in the grammar:

`yacc -d {{path/to/grammar_file.y}} -v`

- Compile a grammar file, and prefix output filenames with `prefix` instead of `y`:

`yacc -d {{path/to/grammar_file.y}} -v -b {{prefix}}`
16 changes: 16 additions & 0 deletions pages/common/yard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yard

> Documentation tool for Ruby.
> More information: <https://yardoc.org/>.
- Create the documentation:

`yard`

- Create the documentation and save it to one file:

`yard --one-file`

- List all undocumented objects:

`yard stats --list-undoc`
24 changes: 24 additions & 0 deletions pages/linux/farge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# farge

> Display the color of a specific pixel on the screen in either hexadecimal or RGB formats.
> More information: <https://github.com/sdushantha/farge>.
- Display a small preview window of a pixel's color with it's hexadecimal value, and copy this value to the clipboard:

`farge`

- Copy a pixel's hexadecimal value to the clipboard without displaying a preview window:

`farge --no-preview`

- Output a pixel's hexadecimal value to `stdout`, and copy this value to the clipboard:

`farge --stdout`

- Output a pixel's RGB value to `stdout`, and copy this value to the clipboard:

`farge --rgb --stdout`

- Display a pixel's hexadecimal value as a notification which expires in 5000 milliseconds, and copy this value to the clipboard:

`farge --notify --expire-time 5000`
4 changes: 2 additions & 2 deletions pages/linux/fold.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Fold
# fold

> Folds long lines for fixed-width output devices.
> More information: <https://manned.org/fold>.
> More information: <https://gnu.org/software/coreutils/fold>.
- Fold lines in a fixed width:

Expand Down
17 changes: 17 additions & 0 deletions pages/linux/qm-suspend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# qm suspend

> Suspends a virtual machine (VM) in the Proxmox Virtual Environment (PVE).
> Use `--skiplock` and `--skiplockstorage` flags with caution, as they may lead to data corruption in certain situations.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Suspend a virtual machine by id:

`qm suspend {{vm_id}} {{integer}}`

- Skip the lock check when suspending the VM:

`qm suspend {{vm_id}} {{integer}} --skiplock`

- Skip the lock check for storage when suspending the VM:

`qm suspend {{vm_id}} {{integer}} --skiplockstorage`
8 changes: 8 additions & 0 deletions pages/linux/qm-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# qm template

> Create a Proxmox VM template.
> More information: <https://pve.proxmox.com/pve-docs/qm.1.html>.
- Create a template out of a specific virtual machine:

`qm template {{vm_id}}`
17 changes: 17 additions & 0 deletions pages/linux/swaplabel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# swaplabel

> Print or change the label or UUID of a swap area.
> Note: `path/to/file` can either point to a regular file or a swap partition.
> More information: <https://manned.org/swaplabel>.
- Display the current label and UUID of a swap area:

`swaplabel {{path/to/file}}`

- Set the label of a swap area:

`swaplabel --label {{new_label}} {{path/to/file}}`

- Set the UUID of a swap area (you can generate a UUID using `uuidgen`):

`swaplabel --uuid {{new_uuid}} {{path/to/file}}`
Loading

0 comments on commit b1e4e6a

Please sign in to comment.