Skip to content

Commit

Permalink
Update pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripospisil committed Nov 9, 2023
1 parent c0cbd44 commit 8f538bb
Show file tree
Hide file tree
Showing 438 changed files with 5,822 additions and 397 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.12";
const VERSION = "0.0.13";

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

> Show an Android bug report.
> This command can only be used through `adb shell`.
> More information: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/bugreport>.
> More information: <https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreport>.
- Display a complete bug report of an Android device:

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

> Generate a zipped Android bug report.
> This command can only be used through `adb shell`.
> More information: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/bugreportz>.
> More information: <https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreportz>.
- Generate a complete zipped bug report of an Android device:

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

> Android service manager.
> More information: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/cmd/>.
> More information: <https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/cmd/>.
- [l]ist all running services:

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

> Convert images into EPS or PDF files.
> More information: <https://manned.org/a2ping>.
- Convert an image to PDF (Note: Specifying an output filename is optional):

`a2ping {{path/to/image.ext}} {{path/to/output.pdf}}`

- Compress the document using the specified method:

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

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

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

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

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

- Pass extra arguments to `gs``:

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

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

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

- Display help:

`a2ping -h`
28 changes: 28 additions & 0 deletions pages/common/accelerate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Accelerate

> Accelerate is 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:

`accelerate env`

- Interactively create a configuration file:

`accelerate config`

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

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

- Test an Accelerate configuration file:

`accelerate test --config_file {{path/to/config.yaml}}`

- Run a model on CPU with Accelerate:

`accelerate launch {{path/to/script.py}} {{--cpu}}`

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

`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines {{2}}`
12 changes: 0 additions & 12 deletions pages/common/amass-track.md

This file was deleted.

24 changes: 0 additions & 24 deletions pages/common/amass-viz.md

This file was deleted.

12 changes: 12 additions & 0 deletions pages/common/anytopnm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# anytopnm

> Converts an arbitrary type of image file to common image formats.
> More information: <https://netpbm.sourceforge.net/doc/anytopnm.html>.
- Convert an input image to PBM, PGM, or PPM format irrespective of the input type:

`anytopnm {{path/to/input}} > {{path/to/output.pnm}}`

- Display version:

`anytopnm -version`
12 changes: 12 additions & 0 deletions pages/common/asciitopgm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# asciitopgm

> Convert ASCII graphics into a PGM file.
> More information: <https://netpbm.sourceforge.net/doc/asciitopgm.html>.
- Read ASCII data as input and produce a PGM image with pixel values that are an approximation of the "brightness" of the ASCII characters:

`asciitopgm {{path/to/input_file}} > {{path/to/output_file.pgm}}`

- Display version:

`asciitopgm -version`
25 changes: 25 additions & 0 deletions pages/common/aws-codeartifact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# aws codeartifact

> CLI for AWS CodeArtifact.
> CodeArtifact allows you to store artifacts using popular package managers and build tools like Maven, Gradle, npm, Yarn, Twine, pip, NuGet, and SwiftPM.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codeartifact/index.html>.
- List available domains for your AWS account:

`aws codeartifact list-domains`

- Generate credentials for a specific package manager (e.g.: npm, pip):

`aws codeartifact login --tool {{package_manager}} --domain {{your_domain}} --repository {{repository_name}}`

- Get the endpoint URL of a CodeArtifact repository:

`aws codeartifact get-repository-endpoint --domain {{your_domain}} --repository {{repository_name}} --format {{npm|pypi|maven|nuget|generic}}`

- Show list of all available CodeArtifact commands:

`aws codeartifact help`

- Show help for specific EC2 subcommand:

`aws ec2 {{subcommand}} help`
12 changes: 12 additions & 0 deletions pages/common/aws-s3-rb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# aws s3 rb

> Delete an empty S3 bucket.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/s3/rb.html>.
- Delete an empty S3 bucket:

`aws s3 rb s3://{{bucket_name}}`

- Force delete an S3 bucket and its non-versioned objects (will crash if versioned objects are present):

`aws s3 rb s3://{{bucket_name}} --force`
2 changes: 1 addition & 1 deletion pages/common/az-account.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# az account

> Manage Azure subscription information.
> Part of `az`, the command-line client for Microsoft Azure.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/account>.
- Print a list of subscriptions for the logged in account:
Expand Down
37 changes: 37 additions & 0 deletions pages/common/az-acr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# az acr

> Manage private registries with Azure Container Registries.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/acr>.
- Create a managed container registry:

`az acr create --name {{registry_name}} --resource-group {{resource_group}} --sku {{sku}}`

- Login to a registry:

`az acr login --name {{registry_name}}`

- Tag a local image for ACR:

`docker tag {{image_name}} {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}`

- Push an image to a registry:

`docker push {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}`

- Pull an image from a registry:

`docker pull {{registry_name}}.azurecr.io/{{image_name}}:{{tag}}`

- Delete an image from a registry:

`az acr repository delete --name {{registry_name}} --repository {{image_name}}:{{tag}}`

- Delete a managed container registry:

`az acr delete --name {{registry_name}} --resource-group {{resource_group}} --yes`

- List images within a registry:

`az acr repository list --name {{registry_name}} --output table`
25 changes: 25 additions & 0 deletions pages/common/az-advisor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# az advisor

> Manage Azure subscription information.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/advisor>.
- List Azure Advisor configuration for the entire subscription:

`az advisor configuration list`

- Show Azure Advisor configuration for the given subscription or resource group:

`az advisor configuration show --resource_group {{resource_group}}`

- List Azure Advisor recommendations:

`az advisor recommendation list`

- Enable Azure Advisor recommendations:

`az advisor recommendation enable --resource_group {{resource_group}}`

- Disable Azure Advisor recommendations:

`az advisor recommendation disable --resource_group {{resource_group}}`
25 changes: 25 additions & 0 deletions pages/common/az-aks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# az aks

> Manage Azure Kubernetes Service (AKS) clusters.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/aks>.
- List AKS clusters:

`az aks list --resource-group {{resource_group}}`

- Create a new AKS cluster:

`az aks create --resource-group {{resource_group}} --name {{name}} --node-count {{count}} --node-vm-size {{size}}`

- Delete an AKS cluster:

`az aks delete --resource-group {{resource_group}} --name {{name}}`

- Get the access credentials for an AKS cluster:

`az aks get-credentials --resource-group {{resource_group}} --name {{name}}`

- Get the upgrade versions available for an AKS cluster:

`az aks get-upgrades --resource-group {{resource_group}} --name {{name}}`
25 changes: 25 additions & 0 deletions pages/common/az-apim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# az apim

> Manage Azure API Management services.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/apim>.
- List API Management services within a resource group:

`az apim list --resource-group {{resource_group}}`

- Create an API Management service instance:

`az apim create --name {{name}} --resource-group {{resource_group}} --publisher-email {{email}} --publisher-name {{name}}`

- Delete an API Management service:

`az apim delete --name {{name}} --resource-group {{resource_group}}`

- Show details of an API Management service instance:

`az apim show --name {{name}} --resource-group {{resource_group}}`

- Update an API Management service instance:

`az apim update --name {{name}} --resource-group {{resource_group}}`
2 changes: 1 addition & 1 deletion pages/common/az-appconfig.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# az appconfig

> Manage App configurations on Azure.
> Part of `az`, the command-line client for Microsoft Azure.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/appconfig>.
- Create an App Configuration:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/az-bicep.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# az bicep

> Bicep CLI command group.
> Part of `azure-cli`.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/bicep>.
- Install Bicep CLI:
Expand Down
2 changes: 1 addition & 1 deletion pages/common/az-config.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# az config

> Manage Azure CLI configuration.
> Part of `azure-cli`.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/config>.
- Print all configurations:
Expand Down
4 changes: 2 additions & 2 deletions pages/common/az-devops.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# az devops

> Manage Azure DevOps organizations.
> Part of `azure-cli`.
> More information: <https://learn.microsoft.com/en-us/cli/azure/devops?view=azure-cli-latest>.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/devops>.
- Set the Personal Access Token (PAT) to login to a particular organization:

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

> Send feedback to the Azure CLI Team.
> Part of `azure-cli`.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/reference-index#az_feedback>.
- Send feedback to the Azure CLI Team:
Expand Down
4 changes: 2 additions & 2 deletions pages/common/az-group.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# az group

> Manage resource groups and template deployments.
> Part of `azure-cli`.
> More information: <https://docs.microsoft.com/cli/azure/group>.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/group>.
- Create a new resource group:

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

> Manage Azure locks.
> Part of `azure-cli`.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/lock>.
- Create a read-only subscription level lock:
Expand Down
Loading

0 comments on commit 8f538bb

Please sign in to comment.