Update cheatsheets

This commit is contained in:
ivuorinen
2026-02-05 00:27:50 +00:00
parent b35cae5346
commit c97d225ae0
9 changed files with 164 additions and 1 deletions

13
tldr/dos/ren Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, dos]
source: https://github.com/tldr-pages/tldr.git
---
# REN
> Rename files (use for moving too).
> More information: <https://www.dosbox.com/wiki/Commands#REN>.
- Rename file:
`REN {{path/to/file}} {{new_name}}`

13
tldr/dos/rescan Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, dos]
source: https://github.com/tldr-pages/tldr.git
---
# RESCAN
> Refresh mounted drives (like CTRL-F4).
> More information: <https://www.dosbox.com/wiki/RESCAN>.
- Refresh mounted drives:
`RESCAN`

13
tldr/dos/set Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, dos]
source: https://github.com/tldr-pages/tldr.git
---
# SET
> Set/display environment variables.
> More information: <https://www.dosbox.com/wiki/Commands#SET>.
- Set variable:
`SET {{VAR}}={{value}}`

13
tldr/dos/type Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, dos]
source: https://github.com/tldr-pages/tldr.git
---
# TYPE
> Display the contents of a text file.
> More information: <https://www.dosbox.com/wiki/Commands#TYPE>.
- Show file:
`TYPE {{path/to/file.txt}}`

13
tldr/dos/ver Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, dos]
source: https://github.com/tldr-pages/tldr.git
---
# VER
> View/set reported DOS version.
> More information: <https://www.dosbox.com/wiki/Commands#VER>.
- Set version:
`VER set {{major_version}} {{minor_version}}`

37
tldr/ng-new Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# ng new
> Create and initialize a new Angular application.
> More information: <https://angular.dev/cli/new>.
- Create a new Angular application:
`ng {{[n|new]}} {{app_name}}`
- Preview the actions without creating files:
`ng {{[n|new]}} {{app_name}} {{[-d|--dry-run]}}`
- Skip generating unit test (`spec.ts`) files:
`ng {{[n|new]}} {{app_name}} {{[-S|--skip-tests]}}`
- Skip automatic package installation:
`ng {{[n|new]}} {{app_name}} --skip-install`
- Skip Git repository initialization:
`ng {{[n|new]}} {{app_name}} {{[-g|--skip-git]}}`
- Configure AI tooling for the project:
`ng {{[n|new]}} {{app_name}} --ai-config {{claude|copilot|cursor|gemini|jetbrains|none|windsurf}}`
- Disable interactive prompts:
`ng {{[n|new]}} {{app_name}} --interactive false`

39
tldr/noseyparker Normal file
View File

@@ -0,0 +1,39 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# noseyparker
> Scan text and Git history for secrets and sensitive information.
> Note: Use a separate datastore directory (`--datastore`) for each scan.
> See also: `trufflehog`.
> More information: <https://github.com/praetorian-inc/noseyparker#usage-examples>.
- Scan a local file or directory for secrets:
`noseyparker scan {{path/to/file_or_directory}} {{[-d|--datastore]}} {{path/to/datastore.np}}`
- Show a report from a previous scan:
`noseyparker report {{[-d|--datastore]}} {{path/to/datastore.np}}`
- Show a report in different format (default is `human`):
`noseyparker report {{[-d|--datastore]}} {{path/to/datastore.np}} {{[-f|--format]}} {{human|json|jsonl|sarif}}`
- Scan a remote Git repo (and Git history) for secrets:
`noseyparker scan --git-url {{URL}} {{[-d|--datastore]}} {{path/to/datastore.np}}`
- Scan all GitHub repositories of a user or organization for secrets:
`noseyparker scan {{--github-user|--github-organization}} {{username_or_org_name}} {{[-d|--datastore]}} {{path/to/datastore.np}}`
- List all scan rules:
`noseyparker rules list`
- List all GitHub repositories of a user or organization:
`noseyparker github repos list {{--user|--organization}} {{username_or_org_name}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# osv-scanner
> Scan various mediums for dependencies and matches them against the OSV database.
> More information: <https://google.github.io/osv.dev/faq/>.
> More information: <https://google.github.io/osv-scanner/usage/>.
- Scan a Docker image:

22
tldr/run-help Normal file
View File

@@ -0,0 +1,22 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# run-help
> Get instructions for Zsh commands.
> Note: This command is an alias of `man` by default.
> More information: <https://manned.org/zshcontrib>.
- Activate Zsh's `run-help`, which adds instructions for Zsh built-ins:
`unalias run-help && autoload run-help`
- Display all Zsh-specific topics:
`run-help`
- Display help for a command:
`run-help {{command}}`