Update cheatsheets

This commit is contained in:
ivuorinen
2024-09-20 00:16:41 +00:00
parent 428866811b
commit 7b74e73417
8 changed files with 56 additions and 27 deletions

View File

@@ -3,39 +3,39 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aws-ce
# aws ce
> Analyze and manage access controls and security settings within your Cloud Environment.
> More information: <https://awe-ce-cli.documentation.com/latest/reference/awe-ce/index.html>.
> Run cost management operations through the AWS Cost Explorer service.
> More information: <https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ce/index.html>.
- Create a new Access Control Analyzer:
- Create anomaly monitor:
`awe-ce create-analyzer --analyzer-name {{analyzer_name}} --type {{type}} --tags {{tags}}`
`aws ce create-anomaly-monitor --monitor {{monitor_name}} --monitor-type {{monitor_type}}`
- Delete an existing Access Control Analyzer:
- Create anomaly subscription:
`awe-ce delete-analyzer --analyzer-arn {{analyzer_arn}}`
`aws ce create-anomaly-subscription --subscription {{subscription_name}} --monitor-arn {{monitor_arn}} --subscribers {{subscribers}}`
- Get details of a specific Access Control Analyzer:
- Get anomalies:
`awe-ce get-analyzer --analyzer-arn {{analyzer_arn}}`
`aws ce get-anomalies --monitor-arn {{monitor_arn}} --start-time {{start_time}} --end-time {{end_time}}`
- List all Access Control Analyzers:
- Get cost and usage:
`awe-ce list-analyzers`
`aws ce get-cost-and-usage --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metrics {{metrics}}`
- Update settings of an Access Control Analyzer:
- Get cost forecast:
`awe-ce update-analyzer --analyzer-arn {{analyzer_arn}} --tags {{new_tags}}`
`aws ce get-cost-forecast --time-period {{start_date}}/{{end_date}} --granularity {{granularity}} --metric {{metric}}`
- Create a new Access Control Analyzer archive rule:
- Get reservation utilization:
`awe-ce create-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}} --filter {{filter}}`
`aws ce get-reservation-utilization --time-period {{start_date}}/{{end_date}} --granularity {{granularity}}`
- Delete an Access Control Analyzer archive rule:
- List cost category definitions:
`awe-ce delete-archive-rule --analyzer-arn {{analyzer_arn}} --rule-name {{rule_name}}`
`aws ce list-cost-category-definitions`
- List all Access Control Analyzer archive rules:
- Tag resource:
`awe-ce list-archive-rules --analyzer-arn {{analyzer_arn}}`
`aws ce tag-resource --resource-arn {{resource_arn}} --tags {{tags}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pkg
> FreeBSD package manager.
> More information: <https://man.freebsd.org/cgi/man.cgi?query=pkg&sektion=8>.
> More information: <https://man.freebsd.org/cgi/man.cgi?pkg>.
- Install a new package:

View File

@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
- Set a specific login shell for the current user interactively:
`sudo chsh`
`chsh`
- Set a specific login [s]hell for the current user:
`sudo chsh --shell {{path/to/shell}}`
`chsh --shell {{path/to/shell}}`
- Set a login [s]hell for a specific user:
@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
- [l]ist available shells:
`sudo chsh --list-shells`
`chsh --list-shells`

29
tldr/lychee Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# lychee
> Find broken URLs.
> More information: <https://lychee.cli.rs/usage/cli/>.
- Scan a website for broken links:
`lychee {{https://example.com}}`
- Display a breakdown of error types:
`lychee --format detailed {{https://example.com}}`
- Limit the amount of connections to prevent DDOS protection:
`lychee --max-concurrency {{5}} {{links.txt}}`
- Check files in a directory structure for any broken URLs:
`grep -r "{{pattern}}" | lychee -`
- Display help:
`lychee --help`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# cal
> Display a calendar.
> More information: <https://man.freebsd.org/cgi/man.cgi?cal>.
> More information: <https://man.netbsd.org/cal.1>.
- Display a calendar for the current month:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Add or change user database information, including login shell and password.
> See also: `passwd`.
> More information: <https://man.openbsd.org/chsh>.
> More information: <https://man.netbsd.org/chsh>.
- Set a specific login shell for the current user interactively:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# df
> Display an overview of the filesystem disk space usage.
> More information: <https://man.netbsd.org/NetBSD-9.3/df.1>.
> More information: <https://man.netbsd.org/df.1>.
- Display all filesystems and their disk usage using 512-byte units:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> List open Internet or UNIX domain sockets.
> Note: this program is a rewrite for NetBSD 3.0 from FreeBSD's `sockstat`.
> See also: `netstat`.
> More information: <https://man.freebsd.org/cgi/man.cgi?sockstat>.
> More information: <https://man.netbsd.org/sockstat.1>.
- Show information for IPv4, IPv6 and Unix sockets for both listening and connected sockets: