Skip to content

Commit

Permalink
Update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripospisil committed Jan 4, 2024
1 parent 8f538bb commit dc1d810
Show file tree
Hide file tree
Showing 505 changed files with 4,248 additions and 746 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.13";
const VERSION = "0.0.14";

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

`bugreportz -p`

- Show the version of `bugreportz`:
- Display version:

`bugreportz -v`

Expand Down
4 changes: 2 additions & 2 deletions pages/common/!.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Bash builtin to substitute with a command found in history.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Event-Designators>.
- Substitute with the previous command and run it with sudo:
- Substitute with the previous command and run it with `sudo`:

`sudo !!`

Expand All @@ -15,7 +15,7 @@

`!-{{number}}`

- Substitute with the most recent command that starts with `string`:
- Substitute with the most recent command that starts with a string:

`!{{string}}`

Expand Down
6 changes: 3 additions & 3 deletions pages/common/7z.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@

- [a]rchive using a specific archive type:

`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{path/to/archive.7z}} {{path/to/file_or_directory}}`
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{path/to/archive}} {{path/to/file_or_directory}}`

- [l]ist the contents of an archive:

`7z l {{path/to/archive.7z}}`

- List available archive types:
- Set the level of compression (higher means more compression, but slower):

`7z i`
`7z a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`
4 changes: 2 additions & 2 deletions pages/common/7za.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@

`7za l {{path/to/archive.7z}}`

- List available archive types:
- Set the level of compression (higher means more compression, but slower):

`7za i`
`7za a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`
4 changes: 2 additions & 2 deletions pages/common/7zr.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@

`7zr l {{path/to/archive.7z}}`

- List available archive types:
- Set the level of compression (higher means more compression, but slower):

`7zr i`
`7zr a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`
2 changes: 1 addition & 1 deletion pages/common/[.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Test if a given variable is equal/not equal to the specified string:

`[ "${{variable}}" {{==|!=}} "{{string}}" ]`
`[ "${{variable}}" {{=|!=}} "{{string}}" ]`

- Test if a given variable is [eq]ual/[n]ot [e]qual/[g]reater [t]han/[l]ess [t]han/[g]reater than or [e]qual/[l]ess than or [e]qual to the specified number:

Expand Down
8 changes: 4 additions & 4 deletions pages/common/a2ping.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@

`a2ping --nocompress {{none|zip|best|flate}} {{path/to/file}}`

- Scan HiResBoundingBox if present (Note: It Defaults to yes):
- Scan HiResBoundingBox if present (defaults to yes):

`a2ping --nohires {{path/to/file}}`

- Allow page content below and left of the origin (Note: It defaults to no):
- Allow page content below and left of the origin (defaults to no):

`a2ping --below {{path/to/file}}`

- Pass extra arguments to `gs``:
- Pass extra arguments to `gs`:

`a2ping --gsextra {{arguments}} {{path/to/file}}`

- Pass extra arguments to external program (i.e pdftops):
- Pass extra arguments to external program (i.e `pdftops`):

`a2ping --extra {{arguments}} {{path/to/file}}`

Expand Down
14 changes: 9 additions & 5 deletions pages/common/ab.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,24 @@
- Execute 100 HTTP GET requests to a given URL:

`ab -n {{100}} {{url}}`
`ab -n 100 {{url}}`

- Execute 100 HTTP GET requests, in concurrent batches of 10, to a URL:

`ab -n {{100}} -c {{10}} {{url}}`
`ab -n 100 -c 10 {{url}}`

- Execute 100 HTTP POST requests to a URL, using a JSON payload from a file:

`ab -n {{100}} -T {{application/json}} -p {{path/to/file.json}} {{url}}`
`ab -n 100 -T {{application/json}} -p {{path/to/file.json}} {{url}}`

- Use HTTP [K]eep Alive, i.e. perform multiple requests within one HTTP session:
- Use HTTP [k]eep-Alive, i.e. perform multiple requests within one HTTP session:

`ab -k {{url}}`

- Set the maximum number of seconds to spend for benchmarking:
- Set the maximum number of seconds ([t]imeout) to spend for benchmarking:

`ab -t {{60}} {{url}}`

- Write the results to a CSV file:

`ab -e {{path/to/file.csv}}`
8 changes: 4 additions & 4 deletions pages/common/abduco.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@

`abduco`

- Attach to a session, creating it if it doesn't exist:
- [A]ttach to a session, creating it if it doesn't exist:

`abduco -A {{name}} {{bash}}`

- Attach to a session with `dvtm`, creating it if it doesn't exist:
- [A]ttach to a session with `dvtm`, creating it if it doesn't exist:

`abduco -A {{name}}`

- Detach from a session:

`Ctrl + \`
`<Ctrl> + \`

- Attach to a session in read-only mode:
- [A]ttach to a session in [r]ead-only mode:

`abduco -Ar {{name}}`
6 changes: 3 additions & 3 deletions pages/common/accelerate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Accelerate

> Accelerate is a library that enables the same PyTorch code to be run across any distributed configuration.
> A library that enables the same PyTorch code to be run across any distributed configuration.
> More information: <https://huggingface.co/docs/accelerate/index>.
- Print environment information:
Expand All @@ -11,7 +11,7 @@

`accelerate config`

- Print the estimated GPU memory cost of running a huggingface model with different data types:
- Print the estimated GPU memory cost of running a Hugging Face model with different data types:

`accelerate estimate-memory {{name/model}}`

Expand All @@ -25,4 +25,4 @@

- Run a model on multi-GPU with Accelerate, with 2 machines:

`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines {{2}}`
`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines 2`
2 changes: 1 addition & 1 deletion pages/common/ack.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ack

> A search tool like grep, optimized for developers.
> A search tool like `grep`, optimized for developers.
> See also: `rg`, which is much faster.
> More information: <https://beyondgrep.com/documentation>.
Expand Down
2 changes: 1 addition & 1 deletion pages/common/acme.sh.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# acme.sh

> Shell script implementing ACME client protocol, an alternative to certbot.
> Shell script implementing ACME client protocol, an alternative to `certbot`.
> See also `acme.sh dns`.
> More information: <https://github.com/acmesh-official/acme.sh>.
Expand Down
10 changes: 5 additions & 5 deletions pages/common/act.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Execute GitHub Actions locally using Docker.
> More information: <https://github.com/nektos/act>.
- List the available actions:
- [l]ist the available actions:

`act -l`

Expand All @@ -15,18 +15,18 @@

`act {{event_type}}`

- Run a specific action:
- Run a specific [a]ction:

`act -a {{action_id}}`

- Do not actually run the actions (i.e. a dry run):
- Do [n]ot actually run the actions (i.e. a dry run):

`act -n`

- Show verbose logs:
- Show [v]erbose logs:

`act -v`

- Run a specific workflow:
- Run a specific [W]orkflow:

`act push -W {{path/to/workflow}}`
2 changes: 1 addition & 1 deletion pages/common/ag.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ag

> The Silver Searcher. Like ack, but aims to be faster.
> The Silver Searcher. Like `ack`, but aims to be faster.
> More information: <https://github.com/ggreer/the_silver_searcher>.
- Find files containing "foo", and print the line matches in context:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/age-keygen.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
> See `age` for how to encrypt/decrypt files.
> More information: <https://manned.org/age-keygen>.
- Generate a key pair, save it to an unencrypted file and print the public key to `stdout`:
- Generate a key pair, save it to an unencrypted file, and print the public key to `stdout`:

`age-keygen --output {{path/to/file}}`

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

> Decrypt a WEP, WPA or WPA2 encrypted capture file.
> Decrypt a WEP, WPA, or WPA2 encrypted capture file.
> Part of Aircrack-ng network software suite.
> More information: <https://www.aircrack-ng.org/doku.php?id=airdecap-ng>.
Expand Down
2 changes: 1 addition & 1 deletion pages/common/alex.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- Analyze a specific file:

`alex {{textfile.md}}`
`alex {{path/to/file.md}}`

- Analyze all Markdown files except `example.md`:

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

`amass -help`

- Show help on an Amass subcommand (like `intel`, `enum`, etc.):
- Display help on an Amass subcommand (like `intel`, `enum`, etc.):

`amass -help {{subcommand}}`

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

- Specify episode to watch:

`ani-cli -a {{episode_number}} "{{anime_name}}"`
`ani-cli -e {{episode_number}} "{{anime_name}}"`

- Continue watching anime from history:

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

- Display a custom inventory:

`ansbile-inventory --list --inventory {{path/to/file_or_script_or_directory}}`
`ansible-inventory --list --inventory {{path/to/file_or_script_or_directory}}`

- Display the default inventory in YAML:

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

`argocd app list --output {{json|yaml|wide}} `
`argocd app list --output {{json|yaml|wide}}`

- Get application details:

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

> Store your shell history in a searchable database.
> Optionally sync your encrypted history between machines.
> More information: <https://atuin.sh/docs/overview/introduction/>.
> More information: <https://atuin.sh/docs/commands>.
- Install atuin into your shell:

Expand Down
4 changes: 2 additions & 2 deletions pages/common/awk.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

- Print all lines where the 10th column value equals the specified value:

`awk '($10 == value)'`
`awk '($10 == {{value}})'`

- Print all the lines which the 10th column value is between a min and a max:

`awk '($10 >= min_value && $10 <= max_value)'`
`awk '($10 >= {{min_value}} && $10 <= {{max_value}})'`
2 changes: 1 addition & 1 deletion pages/common/aws-codeartifact.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

`aws codeartifact help`

- Show help for specific EC2 subcommand:
- Display help for specific EC2 subcommand:

`aws ec2 {{subcommand}} help`
2 changes: 1 addition & 1 deletion pages/common/aws-codecommit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# aws codecommit

> AWS CodeCommit is a managed source control service that hosts private Git repositories.
> A managed source control service that hosts private Git repositories.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/codecommit/>.
- Display help for a specific command:
Expand Down
36 changes: 36 additions & 0 deletions pages/common/aws-dynamodb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# aws dynamodb

> CLI for AWS dynamodb.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/dynamodb/>.
- Create a table:

`aws dynamodb create-table --table-name {{table_name}} --attribute-definitions {{AttributeName=S,AttributeType=S}} --key-schema {{AttributeName=S,KeyType=HASH}} --provisioned-throughput {{ReadCapacityUnits=5,WriteCapacityUnits=5}}`

- List all tables in the DynamoDB:

`aws dynamodb list-tables`

- Get details about a specific table:

`aws dynamodb describe-table --table-name {{table_name}}`

- Add an item to a table:

`aws dynamodb put-item --table-name {{table_name}} --item '{{{"AttributeName": {"S": "value"}}}}'`

- Retrieve an item from a table:

`aws dynamodb get-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}'`

- Update an item in the table:

`aws dynamodb update-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}' --update-expression "{{SET Name = :n}}" --expression-attribute-values '{{{":n": {"S": "Jane"}}}}'`

- Scan items in the table:

`aws dynamodb scan --table-name {{table_name}}`

- Delete an item from the table:

`aws dynamodb delete-item --table-name {{table_name}} --key '{{{"ID": {"N": "1"}}}}'`
2 changes: 1 addition & 1 deletion pages/common/aws-ec2.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@

`aws ec2 help`

- Show help for specific EC2 subcommand:
- Display help for specific EC2 subcommand:

`aws ec2 {{subcommand}} help`
Loading

0 comments on commit dc1d810

Please sign in to comment.