-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0cbd44
commit 8f538bb
Showing
438 changed files
with
5,822 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.