Skip to content

Commit

Permalink
Update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripospisil committed Jan 26, 2024
1 parent dc1d810 commit c65a133
Show file tree
Hide file tree
Showing 212 changed files with 1,916 additions and 282 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.14";
const VERSION = "0.0.15";

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/alacritty.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

`alacritty --config-file {{path/to/config.yml}}`

- Run with live config reload enabled (can also be enabled by default in `alacritty.yml`):
- Run with live configuration reload enabled (can also be enabled by default in `alacritty.yml`):

`alacritty --live-config-reload --config-file {{path/to/config.yml}}`
4 changes: 2 additions & 2 deletions pages/common/box.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`box compile`

- Compile a new Phar file using a specific config file:
- Compile a new Phar file using a specific configuration file:

`box compile -c {{path/to/config}}`

Expand All @@ -19,7 +19,7 @@

`box info {{path/to/phar_file}}`

- Validate the first found config file in the working directory:
- Validate the first found configuration file in the working directory:

`box validate`

Expand Down
2 changes: 1 addition & 1 deletion pages/common/boxes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# boxes

> Draw, remove, and repair ASCII art boxes.
> More information: <https://boxes.thomasjensen.com>.
> More information: <https://boxes.thomasjensen.com/boxes-man-1.html>.
- Draw a box around a string:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/bq.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@

`bq cp {{dataset}}.{{OLD_TABLE}} {{dataset}}.{{new_table}}`

- Print help:
- Display help:

`bq help`
2 changes: 1 addition & 1 deletion pages/common/brittany.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

`brittany --indent {{4}} --columns {{100}} {{path/to/file.hs}}`

- Format a Haskell source file according to the style defined in the specified config file:
- Format a Haskell source file according to the style defined in the specified configuration file:

`brittany --config-file {{path/to/config.yaml}} {{path/to/file.hs}}`
2 changes: 1 addition & 1 deletion pages/common/browser-sync.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

`browser-sync init`

- Start Browsersync from config file:
- Start Browsersync from configuration file:

`browser-sync start --config {{config_file}}`
2 changes: 1 addition & 1 deletion pages/common/bshell.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A GUI tool for browsing for SSH/VNC servers on the local network.
> See also: `bssh` and `bvnc`.
> More information: <https://linux.extremeoverclocking.com/man/1/bssh>.
> More information: <https://manned.org/bshell>.
- Browse for both SSH and VNC servers:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/bssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A GUI tool for browsing for SSH/VNC servers on the local network.
> See also: `bvnc` and `bshell`.
> More information: <https://linux.extremeoverclocking.com/man/1/bssh>.
> More information: <https://manned.org/bssh>.
- Browse for SSH servers:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/bvnc.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> A GUI tool for browsing for SSH/VNC servers on the local network.
> See also: `bssh` and `bshell`.
> More information: <https://linux.extremeoverclocking.com/man/1/bssh>.
> More information: <https://manned.org/bvnc>.
- Browse for VNC servers:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/cargo-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

`cargo login`

- Specify the name of the registry to use (registry names can be defined in the config - the default is <https://crates.io>):
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):

`cargo login --registry {{name}}`
2 changes: 1 addition & 1 deletion pages/common/cargo-logout.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

`cargo logout`

- Specify the name of the registry to use (registry names can be defined in the config - the default is <https://crates.io>):
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):

`cargo logout --registry {{name}}`
2 changes: 1 addition & 1 deletion pages/common/cargo-owner.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@

`cargo owner --list {{crate}}`

- Specify the name of the registry to use (registry names can be defined in the config - the default is <https://crates.io>):
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):

`cargo owner --registry {{name}}`
2 changes: 1 addition & 1 deletion pages/common/cargo-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

`cargo publish --dry-run`

- Specify the name of the registry to use (registry names can be defined in the config - the default is <https://crates.io>):
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):

`cargo publish --registry {{name}}`
2 changes: 1 addition & 1 deletion pages/common/cargo-yank.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

`cargo yank --undo {{crate}}@{{version}}`

- Specify the name of the registry to use (registry names can be defined in the config - the default is <https://crates.io>):
- Use the specified registry (registry names can be defined in the configuration - the default is <https://crates.io>):

`cargo yank --registry {{name}} {{crate}}@{{version}}`
16 changes: 16 additions & 0 deletions pages/common/chronic.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# chronic

> Display `stdout` and `stderr` of a command if and only if it fails.
> More information: <https://joeyh.name/code/moreutils/>.
- Display `stdout` and `stderr` of the specified command if and only if it produces a non-zero exit code or crashes:

`chronic {{command options ...}}`

- Display `stdout` and `stderr` of the specified command if and only if it produces a non-empty `stderr`:

`chronic -e {{command options ...}}`

- Enable [v]erbose mode:

`chronic -v {{command options ...}}`
4 changes: 2 additions & 2 deletions pages/common/chroot.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

`chroot {{path/to/new/root}} {{command}}`

- Specify user and group (ID or name) to use:
- Use a specific user and group:

`chroot --userspec={{user:group}}`
`chroot --userspec={{username_or_id:group_name_or_id}}`
4 changes: 4 additions & 0 deletions pages/common/cloudflared.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

`cloudflared tunnel login`

- Create a tunnel with a specific name:

`cloudflared tunnel create {{name}}`

- Establish a tunnel to a host in Cloudflare from the local server:

`cloudflared tunnel --hostname {{hostname}} localhost:{{port_number}}`
Expand Down
22 changes: 22 additions & 0 deletions pages/common/combine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# combine

> Perform set operations on lines of two files.
> The order of the output lines is determined by the order of the lines in the first file.
> See also: `diff`.
> More information: <https://joeyh.name/code/moreutils/>.
- Output lines that are in both specified files:

`combine {{path/to/file1}} and {{path/to/file2}}`

- Output lines that are in the first but not in the second file:

`combine {{path/to/file1}} not {{path/to/file2}}`

- Output lines that in are in either of the specified files:

`combine {{path/to/file1}} or {{path/to/file2}}`

- Output lines that are in exactly one of the specified files:

`combine {{path/to/file1}} xor {{path/to/file2}}`
2 changes: 1 addition & 1 deletion pages/common/cs-fetch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cs fetch

> Fetch fetches the JARs of one or more dependencies.
> Fetch fetches the JARs of dependencies.
> More information: <https://get-coursier.io/docs/cli-fetch>.
- Fetch a specific version of a jar:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cs-launch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cs launch

> Launch an application from the name directly from one or more Maven dependencies without the need of installing it.
> Launch an application from the name directly from Maven dependencies without the need of installing it.
> More information: <https://get-coursier.io/docs/cli-launch>.
- Launch a specific application with arguments:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cs-resolve.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cs resolve

> Resolve lists the transitive dependencies of one or more other dependencies.
> Resolve lists the transitive dependencies of other dependencies.
> More information: <https://get-coursier.io/docs/cli-resolve>.
- Resolve lists of transitive dependencies of two dependencies:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cupsaccept.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cupsaccept

> Accept jobs sent to one or more destinations.
> Accept jobs sent to destinations.
> NOTE: destination is referred as a printer or a class of printers.
> See also: `cupsreject`, `cupsenable`, `cupsdisable`, `lpstat`.
> More information: <https://www.cups.org/doc/man-cupsaccept.html>.
Expand Down
2 changes: 1 addition & 1 deletion pages/common/cupsreject.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cupsreject

> Reject jobs sent to one or more printers.
> Reject jobs sent to printers.
> NOTE: destination is referred as a printer or a class of printers.
> See also: `cupsaccept`, `cupsenable`, `cupsdisable`, `lpstat`.
> More information: <https://www.cups.org/doc/man-cupsaccept.html>.
Expand Down
8 changes: 4 additions & 4 deletions pages/common/cut.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

`{{command}} | cut --{{characters|fields}}={{1|1,10|1-10|1-|-10}}`

- Print a range of each line with a specific delimiter:
- Print a field range of each line with a specific delimiter:

`{{command}} | cut --delimiter="{{,}}" --{{fields}}={{1}}`
`{{command}} | cut --delimiter="{{,}}" --fields={{1}}`

- Print a range of each line of the specific file:
- Print a character range of each line of the specific file:

`cut --{{characters}}={{1}} {{path/to/file}}`
`cut --characters={{1}} {{path/to/file}}`
4 changes: 2 additions & 2 deletions pages/common/deb-get.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

- Search for a given package:

`sudo deb-get search {{package}}`
`deb-get search {{package}}`

- Show information about a package:

`sudo deb-get show {{package}}`
`deb-get show {{package}}`

- Install a package, or update it to the latest available version:

Expand Down
2 changes: 1 addition & 1 deletion pages/common/deemix.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

`deemix --bitrate {{bitrate}} --path {{path}} {{url}}`

- Create a portable deemix config in the current directory:
- Create a portable deemix configuration file in the current directory:

`deemix --portable --bitrate {{bitrate}} --path {{path}} {{url}}`
2 changes: 1 addition & 1 deletion pages/common/dexter.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

`dexter auth -i {{client_id}} -s {{client_secret}}`

- Override the default kube config location:
- Override the default kube configuration file location:

`dexter auth -i {{client_id}} -s {{client_secret}} --kube-config {{sample/config}}`
18 changes: 7 additions & 11 deletions pages/common/df.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
# df

> Gives an overview of the filesystem disk space usage.
> More information: <https://www.gnu.org/software/coreutils/df>.
> Display an overview of the filesystem disk space usage.
> More information: <https://manned.org/df.1posix>.
- Display all filesystems and their disk usage:
- Display all filesystems and their disk usage using 512-byte units:

`df`

- Display all filesystems and their disk usage in human-readable form:

`df -h`

- Display the filesystem and its disk usage containing the given file or directory:

`df {{path/to/file_or_directory}}`

- Display statistics on the number of free inodes:
- Use 1024-byte units when writing space figures:

`df -i`
`df -k`

- Display filesystems but exclude the specified types:
- Display information in a portable way:

`df -x {{squashfs}} -x {{tmpfs}}`
`df -P`
2 changes: 1 addition & 1 deletion pages/common/doas.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

`doas -s`

- Parse a config file and check if the execution of a command as another user is allowed:
- Parse a configuration file and check if the execution of a command as another user is allowed:

`doas -C {{config_file}} {{command}}`

Expand Down
2 changes: 1 addition & 1 deletion pages/common/docker-rm.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker rm

> Remove one or more containers.
> Remove containers.
> More information: <https://docs.docker.com/engine/reference/commandline/rm>.
- Remove containers:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/docker-rmi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker rmi

> Remove one or more Docker images.
> Remove Docker images.
> More information: <https://docs.docker.com/engine/reference/commandline/rmi/>.
- Display help:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/docker-save.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker save

> Export one or more docker images to archive.
> Export Docker images to archive.
> More information: <https://docs.docker.com/engine/reference/commandline/save/>.
- Save an image by redirecting `stdout` to a tar archive:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/docker-start.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# docker start

> Start one or more stopped containers.
> Start stopped containers.
> More information: <https://docs.docker.com/engine/reference/commandline/start/>.
- Display help:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/doctl-auth.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# doctl auth

> Authenticate doctl with one or more API tokens.
> Authenticate `doctl` with API tokens.
> More information: <https://docs.digitalocean.com/reference/doctl/reference/auth/>.
- Open a prompt to enter an API token and label its context:
Expand Down
4 changes: 2 additions & 2 deletions pages/common/duplicity.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- Backup a directory to Amazon S3, doing a full backup every month:

`duplicity --full-if-older-than {{1M}} --use-new-style s3://{{bucket_name[/prefix]}}`
`duplicity --full-if-older-than {{1M}} s3://{{bucket_name[/prefix]}}`

- Delete versions older than 1 year from a backup stored on a WebDAV share:

Expand All @@ -26,4 +26,4 @@

- Restore a subdirectory from a GnuPG-encrypted local backup to a given location:

`PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --file-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup/directory}} {{path/to/directory/to/restore/to}}`
`PASSPHRASE={{gpg_key_password}} duplicity restore --encrypt-key {{gpg_key_id}} --path-to-restore {{relative/path/restoredirectory}} file://{{absolute/path/to/backup/directory}} {{path/to/directory/to/restore/to}}`
8 changes: 4 additions & 4 deletions pages/common/dvc-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@

`dvc config --unset core.remote`

- Get the config value for a specified key for the current project:
- Get the configuration value for a specified key for the current project:

`dvc config {{key}}`

- Set the config value for a key on a project level:
- Set the configuration value for a key on a project level:

`dvc config {{key}} {{value}}`

- Unset a project level config value for a given key:
- Unset a project level configuration value for a given key:

`dvc config --unset {{key}}`

- Set a local, global, or system level config value:
- Set a local, global, or system level configuration value:

`dvc config --local/global/system {{key}} {{value}}`
Loading

0 comments on commit c65a133

Please sign in to comment.