Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-10 00:19:02 +00:00
parent 9f85bd373f
commit c39b4c5f19
53 changed files with 152 additions and 86 deletions

View File

@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display help: - Display help:
`doctl account --help` `doctl account {{[-h|--help]}}`

View File

@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Show available commands: - Show available commands:
`doctl auth --help` `doctl auth {{[-h|--help]}}`

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Get the balance of an account associated with an access token: - Get the balance of an account associated with an access token:
`doctl balance get --access-token {{access_token}}` `doctl balance get {{[-t|--access-token]}} {{access_token}}`
- Get the balance of an account associated with a specified context: - Get the balance of an account associated with a specified context:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases` command with an access token: - Run a `doctl databases` command with an access token:
`doctl databases {{command}} --access-token {{access_token}}` `doctl databases {{command}} {{[-t|--access-token]}} {{access_token}}`
- Get details for a database cluster: - Get details for a database cluster:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases db` command with an access token: - Run a `doctl databases db` command with an access token:
`doctl databases db {{command}} --access-token {{access_token}}` `doctl databases db {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve the name of the given database hosted in the given database cluster: - Retrieve the name of the given database hosted in the given database cluster:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases firewalls` command with an access token: - Run a `doctl databases firewalls` command with an access token:
`doctl databases firewalls {{command}} --access-token {{access_token}}` `doctl databases firewalls {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve a list of firewall rules for a given database: - Retrieve a list of firewall rules for a given database:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases maintenance-window` command with an access token: - Run a `doctl databases maintenance-window` command with an access token:
`doctl databases maintenance-window {{command}} --access-token {{access_token}}` `doctl databases maintenance-window {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve details about a database cluster's maintenance windows: - Retrieve details about a database cluster's maintenance windows:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases options` command with an access token: - Run a `doctl databases options` command with an access token:
`doctl databases options {{command}} --access-token {{access_token}}` `doctl databases options {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve a list of the available database engines: - Retrieve a list of the available database engines:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases pool` command with an access token: - Run a `doctl databases pool` command with an access token:
`doctl databases pool {{command}} --access-token {{access_token}}` `doctl databases pool {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve information about a database connection pool: - Retrieve information about a database connection pool:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases replica` command with an access token: - Run a `doctl databases replica` command with an access token:
`doctl databases pool {{command}} --access-token {{access_token}}` `doctl databases pool {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve information about a read-only database replica: - Retrieve information about a read-only database replica:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases sql-mode` command with an access token: - Run a `doctl databases sql-mode` command with an access token:
`doctl databases sql-mode {{command}} --access-token {{access_token}}` `doctl databases sql-mode {{command}} {{[-t|--access-token]}} {{access_token}}`
- Get a MySQL database cluster's SQL modes: - Get a MySQL database cluster's SQL modes:

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run a `doctl databases user` command with an access token: - Run a `doctl databases user` command with an access token:
`doctl databases user {{command}} --access-token {{access_token}}` `doctl databases user {{command}} {{[-t|--access-token]}} {{access_token}}`
- Retrieve details about a database user: - Retrieve details about a database user:

View File

@@ -20,9 +20,9 @@ source: https://github.com/tldr-pages/tldr.git
`godot {{[-p|--project-manager]}}` `godot {{[-p|--project-manager]}}`
- Export a project for a given export preset (the preset must be defined in the project): - Export a project for release using a given export preset (the preset must be defined in the project):
`godot --export {{preset}} {{output_path}}` `godot --export-release {{preset}} {{output_path}}`
- Execute a standalone GDScript file (the script must inherit from `SceneTree` or `MainLoop`): - Execute a standalone GDScript file (the script must inherit from `SceneTree` or `MainLoop`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# grip # grip
> Preview GitHub-flavoured Markdown files locally. > Preview GitHub-flavoured Markdown files locally.
> More information: <https://github.com/joeyespo/grip>. > More information: <https://manned.org/grip>.
- Start the server and serve the rendered `README` file of a current directory: - Start the server and serve the rendered `README` file of a current directory:
@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Start the server and open the `README` file of the current directory in the browser: - Start the server and open the `README` file of the current directory in the browser:
`grip --browser` `grip {{[-b|--browser]}}`
- Start the server in the specified port and serve the rendered `README` file of the current directory: - Start the server in the specified port and serve the rendered `README` file of the current directory:

View File

@@ -6,28 +6,28 @@ source: https://github.com/tldr-pages/tldr.git
# handbrakecli # handbrakecli
> Command-line interface to the HandBrake video conversion and DVD ripping tool. > Command-line interface to the HandBrake video conversion and DVD ripping tool.
> More information: <https://handbrake.fr/>. > More information: <https://handbrake.fr/docs/en/latest/cli/command-line-reference.html>.
- Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video): - Convert a video file to MKV (AAC 160kbit audio and x264 CRF20 video):
`handbrakecli --input {{input.avi}} --output {{output.mkv}} --encoder x264 --quality 20 --ab 160` `handbrakecli {{[-i|--input]}} {{input.avi}} {{[-o|--output]}} {{output.mkv}} {{[-e|--encoder]}} x264 {{[-q|--quality]}} 20 {{[-B|--ab]}} 160`
- Resize a video file to 320x240: - Resize a video file to 320x240:
`handbrakecli --input {{input.mp4}} --output {{output.mp4}} --width 320 --height 240` `handbrakecli {{[-i|--input]}} {{input.mp4}} {{[-o|--output]}} {{output.mp4}} {{[-w|--width]}} 320 {{[-l|--height]}} 240`
- List available presets: - List available presets:
`handbrakecli --preset-list` `handbrakecli {{[-z|--preset-list]}}`
- Convert an AVI video to MP4 using the Android preset: - Convert an AVI video to MP4 using the Android preset:
`handbrakecli --preset="Android" --input {{input.ext}} --output {{output.mp4}}` `handbrakecli {{[-Z|--preset]}} "Android" {{[-i|--input]}} {{input.ext}} {{[-o|--output]}} {{output.mp4}}`
- Print the content of a DVD, getting the CSS keys in the process: - Print the content of a DVD, getting the CSS keys in the process:
`handbrakecli --input {{/dev/sr0}} --title 0` `handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 0`
- Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists: - Rip the first track of a DVD in the specified device. Audiotracks and subtitle languages are specified as lists:
`handbrakecli --input {{/dev/sr0}} --title 1 --output {{out.mkv}} --format av_mkv --encoder x264 --subtitle {{1,4,5}} --audio {{1,2}} --aencoder copy --quality {{23}}` `handbrakecli {{[-i|--input]}} {{/dev/sr0}} {{[-t|--title]}} 1 {{[-o|--output]}} {{out.mkv}} {{[-f|--format]}} av_mkv {{[-e|--encoder]}} x264 {{[-s|--subtitle]}} {{1,4,5}} {{[-a|--audio]}} {{1,2}} {{[-E|--aencoder]}} copy {{[-q|--quality]}} {{23}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hardhat # hardhat
> A development environment for Ethereum software. > A development environment for Ethereum software.
> More information: <https://hardhat.org>. > More information: <https://hardhat.org/hardhat-runner/docs/getting-started#quick-start>.
- List available subcommands (or create a new project if no configuration exists): - List available subcommands (or create a new project if no configuration exists):

View File

@@ -6,19 +6,19 @@ source: https://github.com/tldr-pages/tldr.git
# highlight # highlight
> Outputs syntax-highlighted source code to a variety of formats. > Outputs syntax-highlighted source code to a variety of formats.
> More information: <http://www.andre-simon.de/doku/highlight/highlight.php>. > More information: <http://andre-simon.de/doku/highlight/en/highlight.php>.
- Produce a complete HTML document from a source code file: - Produce a complete HTML document from a source code file:
`highlight --out-format={{html}} --style {{theme_name}} --syntax {{language}} {{path/to/source_code}}` `highlight {{[-o|--out-format]}} {{html}} {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}} {{path/to/source_code}}`
- Produce an HTML fragment, suitable for inclusion in a larger document: - Produce an HTML fragment, suitable for inclusion in a larger document:
`highlight --out-format={{html}} --fragment --syntax {{language}} {{source_file}}` `highlight {{[-o|--out-format]}} {{html}} {{[-f|--fragment]}} {{[-S|--syntax]}} {{language}} {{source_file}}`
- Inline the CSS styling in every tag: - Inline the CSS styling in every tag:
`highlight --out-format={{html}} --inline-css --syntax {{language}} {{source_file}}` `highlight {{[-o|--out-format]}} {{html}} --inline-css {{[-S|--syntax]}} {{language}} {{source_file}}`
- List all supported languages, themes, or plugins: - List all supported languages, themes, or plugins:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Print a CSS stylesheet for a theme: - Print a CSS stylesheet for a theme:
`highlight --out-format={{html}} --print-style --style {{theme_name}} --syntax {{language}}] --stdout` `highlight {{[-o|--out-format]}} {{html}} --print-style {{[-s|--style]}} {{theme_name}} {{[-S|--syntax]}} {{language}}] --stdout`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Combine labels equal in their high-order bits: - Combine labels equal in their high-order bits:
`ipaggmanip --prefix {{16}} {{path/to/file}}` `ipaggmanip {{[-p|--prefix]}} {{16}} {{path/to/file}}`
- Remove labels with a count smaller than a given number of bytes and output a random sample of such labels: - Remove labels with a count smaller than a given number of bytes and output a random sample of such labels:
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Replace each label's count with 1 if it is non-zero: - Replace each label's count with 1 if it is non-zero:
`ipaggmanip --posterize {{path/to/file}}` `ipaggmanip {{[-P|--posterize]}} {{path/to/file}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Dex to Java decompiler. > Dex to Java decompiler.
> Produces Java source code from Android Dex and APK files. > Produces Java source code from Android Dex and APK files.
> More information: <https://github.com/skylot/jadx>. > More information: <https://github.com/skylot/jadx#usage>.
- Decompile a Dex file into a directory: - Decompile a Dex file into a directory:
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
- Decompile a Dex file into a specific directory: - Decompile a Dex file into a specific directory:
`jadx --output-dir {{path/to/directory}} {{path/to/file}}` `jadx {{[-d|--output-dir]}} {{path/to/directory}} {{path/to/file}}`

View File

@@ -37,6 +37,6 @@ source: https://github.com/tldr-pages/tldr.git
`sudo bcachefs data rereplicate {{path/to/mountpoint}}` `sudo bcachefs data rereplicate {{path/to/mountpoint}}`
- Display help: - Create a snapshot of a particular directory:
`bcachefs` `bcachefs subvolume snapshot {{path/to/directory}} {{path/to/snapshot}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# dysk # dysk
> Display filesystem information in a table. > Display filesystem information in a table.
> More information: <https://dystroy.org/dysk>. > More information: <https://manned.org/dysk>.
- Get a standard overview of your usual disks: - Get a standard overview of your usual disks:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Sort by free size: - Sort by free size:
`dysk --sort free` `dysk {{[-s|--sort]}} free`
- Include only HDD disks: - Include only HDD disks:
`dysk --filter 'disk = HDD'` `dysk {{[-f|--filter]}} 'disk = HDD'`
- Exclude SSD disks: - Exclude SSD disks:
`dysk --filter 'disk <> SSD'` `dysk {{[-f|--filter]}} 'disk <> SSD'`
- Display disks with high utilization or low free space: - Display disks with high utilization or low free space:
`dysk --filter 'use > 65% | free < 50G'` `dysk {{[-f|--filter]}} 'use > 65% | free < 50G'`

29
tldr/linux/gamescope Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# gamescope
> A micro-compositor used as a game layer.
> More information: <https://github.com/ValveSoftware/gamescope>.
- Run a program with gamescope:
`gamescope -- {{command}}`
- Upscale a 720p game to 1440p with integer scaling:
`gamescope {{[-h|--nested-height]}} 720 {{[-H|--output-height]}} 1440 {{[-S|--scaler]}} integer -- %command%`
- Limit a vsynced game to 30 FPS:
`gamescope {{[-r|--nested-refresh]}} 30 -- %command%`
- Toggle fullscreen:
`<Super f>`
- Show help:
`gamescope --help`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run with concurrent users and a specified amount of requests per second: - Run with concurrent users and a specified amount of requests per second:
`loadtest --concurrency {{10}} --rps {{200}} {{https://example.com}}` `loadtest {{[-c|--concurrency]}} {{10}} {{[--rps|--requestsPerSecond]}} {{200}} {{https://example.com}}`
- Run with a custom HTTP header: - Run with a custom HTTP header:
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
- Run with a specific HTTP method: - Run with a specific HTTP method:
`loadtest --method {{GET}} {{https://example.com}}` `loadtest {{[-m|--method]}} {{GET}} {{https://example.com}}`

View File

@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
- Specify an output location for the dump: - Specify an output location for the dump:
`mongodump --out {{path/to/directory}}` `mongodump {{[-o|--out]}} {{path/to/directory}}`
- Create a dump of a given database: - Create a dump of a given database:
`mongodump --db {{database_name}}` `mongodump {{[-d|--db]}} {{database_name}}`
- Create a dump of a given collection within a given database: - Create a dump of a given collection within a given database:
`mongodump --collection {{collection_name}} --db {{database_name}}` `mongodump {{[-c|--collection]}} {{collection_name}} {{[-d|--db]}} {{database_name}}`
- Connect to a given host running on a given port, and create a dump: - Connect to a given host running on a given port, and create a dump:
`mongodump --host {{host}} --port {{port}}` `mongodump {{[-h|--host]}} {{host}} --port {{port}}`
- Create a dump of a given database with a given username; user will be prompted for password: - Create a dump of a given database with a given username; user will be prompted for password:
`mongodump --username {{username}} {{database}} --password` `mongodump {{[-u|--username]}} {{username}} {{database}} {{[-p|--password]}}`
- Create a dump from a specific instance; host, user, password and database will be defined in the connection string: - Create a dump from a specific instance; host, user, password and database will be defined in the connection string:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Open Broadcaster Software. > Open Broadcaster Software.
> Video recording and livestreaming program. > Video recording and livestreaming program.
> More information: <https://obsproject.com/>. > More information: <https://obsproject.com/kb/launch-parameters>.
- Launch OBS: - Launch OBS:
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Launch OBS in portable mode: - Launch OBS in portable mode:
`obs --portable` `obs {{[-p|--portable]}}`
- Automatically start recording a video on launch: - Automatically start recording a video on launch:

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- Display statistics for a PDF file: - Display statistics for a PDF file:
`pdf-parser --stats {{path/to/file.pdf}}` `pdf-parser {{[-a|--stats]}} {{path/to/file.pdf}}`
- Display objects of type `/Font` in a PDF file: - Display objects of type `/Font` in a PDF file:
`pdf-parser --type={{/Font}} {{path/to/file.pdf}}` `pdf-parser {{[-t|--type]}} {{/Font}} {{path/to/file.pdf}}`
- Search for strings in indirect objects: - Search for strings in indirect objects:
`pdf-parser --search={{search_string}} {{path/to/file.pdf}}` `pdf-parser {{[-s|--search]}} {{search_string}} {{path/to/file.pdf}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pdfgrep # pdfgrep
> Search text in PDF files. > Search text in PDF files.
> More information: <https://pdfgrep.org>. > More information: <https://pdfgrep.org/doc.html>.
- Find lines that match pattern in a PDF: - Find lines that match pattern in a PDF:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Include file name and page number for each matched line: - Include file name and page number for each matched line:
`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}` `pdfgrep {{[-H|--with-filename]}} {{[-n|--page-number]}} {{pattern}} {{file.pdf}}`
- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches: - Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}` `pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} {{'^foo'}} {{file.pdf}}`
- Find pattern in files with a `.pdf` extension in the current directory recursively: - Find pattern in files with a `.pdf` extension in the current directory recursively:
`pdfgrep --recursive {{pattern}}` `pdfgrep {{[-r|--recursive]}} {{pattern}}`
- Find pattern on files that match a specific glob in the current directory recursively: - Find pattern on files that match a specific glob in the current directory recursively:
`pdfgrep --recursive --include {{'*book.pdf'}} {{pattern}}` `pdfgrep {{[-r|--recursive]}} --include {{'*book.pdf'}} {{pattern}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# Rscript # Rscript
> Run a script with the R programming language. > Run a script with the R programming language.
> More information: <https://www.r-project.org>. > More information: <https://manned.org/Rscript>.
- Run a script: - Run a script:

6
tldr/s
View File

@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
- List all providers: - List all providers:
`s --list-providers` `s {{[-l|--list-providers]}}`
- Search for a query with a given provider: - Search for a query with a given provider:
`s --provider {{provider}} {{query}}` `s {{[-p|--provider]}} {{provider}} {{query}}`
- Use a specified binary to perform the search query: - Use a specified binary to perform the search query:
`s --binary "{{binary}} {{arguments}}" {{query}}` `s {{[-b|--binary]}} "{{binary}} {{arguments}}" {{query}}`

View File

@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
- Forward all IPv4 TCP traffic via a remote SSH server: - Forward all IPv4 TCP traffic via a remote SSH server:
`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}` `sshuttle {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}}`
- Also forward all DNS traffic to the server's default DNS resolver: - Also forward all DNS traffic to the server's default DNS resolver:
`sshuttle --dns --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}` `sshuttle --dns {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}}`
- Forward all traffic except that which is bound for a specific subnet: - Forward all traffic except that which is bound for a specific subnet:
`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}} --exclude {{192.168.0.1/24}}` `sshuttle {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}} {{[-x|--exclude]}} {{192.168.0.1/24}}`
- Use the tproxy method to forward all IPv4 and IPv6 traffic: - Use the tproxy method to forward all IPv4 and IPv6 traffic:
`sshuttle --method=tproxy --remote={{username}}@{{sshserver}} {{0.0.0.0/0}} {{::/0}} --exclude={{your_local_ip_address}} --exclude={{ssh_server_ip_address}}` `sshuttle --method tproxy {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}} {{::/0}} {{[-x|--exclude]}} {{your_local_ip_address}} {{[-x|--exclude]}} {{ssh_server_ip_address}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage packages and configuration options of an existing TeX Live installation. > Manage packages and configuration options of an existing TeX Live installation.
> Some subcommands such as `paper` have their own usage documentation. > Some subcommands such as `paper` have their own usage documentation.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#ACTIONS>.
- Install a package and its dependencies: - Install a package and its dependencies:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage backups of TeX Live packages. > Manage backups of TeX Live packages.
> The default backup directory is specified by the `backupdir` option, and can be obtained with `tlmgr option`. > The default backup directory is specified by the `backupdir` option, and can be obtained with `tlmgr option`.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#backup>.
- Make a backup of one or more packages: - Make a backup of one or more packages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr candidates # tlmgr candidates
> Get available candidate repositories from which a TeX Live package can be installed. > Get available candidate repositories from which a TeX Live package can be installed.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#candidates-pkg>.
- List all available repositories from which a package can be installed: - List all available repositories from which a package can be installed:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr check # tlmgr check
> Check the consistency of a TeX Live installation. > Check the consistency of a TeX Live installation.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#check-option...-depends-executes-files-runfiles-texmfdbs-all>.
- Check the consistency of the whole TeX Live installation: - Check the consistency of the whole TeX Live installation:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr conf # tlmgr conf
> Manage the TeX Live configuration. > Manage the TeX Live configuration.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#conf>.
- Show the current TeX Live configuration: - Show the current TeX Live configuration:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr dump-tlpdb # tlmgr dump-tlpdb
> Dump the TeX Live package database. > Dump the TeX Live package database.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#dump-tlpdb-option...---json>.
- Dump the local package database: - Dump the local package database:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr generate # tlmgr generate
> Remake configuration files from information stored locally. > Remake configuration files from information stored locally.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#generate>.
- Remake the configuration file storing into a specific location: - Remake the configuration file storing into a specific location:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Start a graphical user interface for `tlmgr`. > Start a graphical user interface for `tlmgr`.
> `tlmgr gui` depends on the package `perl-tk`, which has to be installed manually. > `tlmgr gui` depends on the package `perl-tk`, which has to be installed manually.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#gui>.
- Start a GUI for `tlmgr`: - Start a GUI for `tlmgr`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr info # tlmgr info
> Show information about TeX Live packages. > Show information about TeX Live packages.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#info>.
- List all available TeX Live packages, prefexing installed ones with `i`: - List all available TeX Live packages, prefexing installed ones with `i`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr install # tlmgr install
> Install TeX Live packages. > Install TeX Live packages.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#install-option...-pkg>.
- Install a package and its dependencies: - Install a package and its dependencies:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr key # tlmgr key
> Manage GPG keys used to verify TeX Live databases. > Manage GPG keys used to verify TeX Live databases.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#key>.
- List all keys for TeX Live: - List all keys for TeX Live:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr option # tlmgr option
> TeX Live settings manager. > TeX Live settings manager.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#option>.
- List all TeX Live settings: - List all TeX Live settings:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr paper # tlmgr paper
> Manage paper size options of an TeX Live installation. > Manage paper size options of an TeX Live installation.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#paper>.
- Show the default paper size used by all TeX Live programs: - Show the default paper size used by all TeX Live programs:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Add or remove symlinks for TeX Live executables, man pages and info pages. > Add or remove symlinks for TeX Live executables, man pages and info pages.
> This command has to be re-run for files added in the future. > This command has to be re-run for files added in the future.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#path>.
- Add symlinks to TeX Live files: - Add symlinks to TeX Live files:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr platform # tlmgr platform
> Manage TeX Live platforms. > Manage TeX Live platforms.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#platform>.
- List all available platforms in the package repository: - List all available platforms in the package repository:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Uninstall TeX Live packages. > Uninstall TeX Live packages.
> By default, removed packages will be backed up to `./tlpkg/backups` under the TL installation directory. > By default, removed packages will be backed up to `./tlpkg/backups` under the TL installation directory.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#remove-option...-pkg>.
- Uninstall a TeX Live package: - Uninstall a TeX Live package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr repository # tlmgr repository
> Manage repositories of a TeX Live installation. > Manage repositories of a TeX Live installation.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#repository>.
- List all configured repositories and their tags (if set): - List all configured repositories and their tags (if set):

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Restore package backups created with `tlmgr backup`. > Restore package backups created with `tlmgr backup`.
> The default backup directory is specified by the `backupdir` option, and can be obtained with `tlmgr option`. > The default backup directory is specified by the `backupdir` option, and can be obtained with `tlmgr option`.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#restore>.
- List all available backup revisions for all packages: - List all available backup revisions for all packages:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr search # tlmgr search
> Search for TeX Live packages using (Perl) regular expressions. > Search for TeX Live packages using (Perl) regular expressions.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#search>.
- Search for a package name and descriptions of all locally installed packages from a specific regular expression: - Search for a package name and descriptions of all locally installed packages from a specific regular expression:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr shell # tlmgr shell
> Start an interactive shell of the native TeX Live manager. > Start an interactive shell of the native TeX Live manager.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#shell>.
- Start an interactive shell of `tlmgr`: - Start an interactive shell of `tlmgr`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tlmgr update # tlmgr update
> Update TeX Live packages. > Update TeX Live packages.
> More information: <https://www.tug.org/texlive/tlmgr.html>. > More information: <https://www.tug.org/texlive/doc/tlmgr.html#update-option...-pkg>.
- Update all TeX Live packages: - Update all TeX Live packages:

View File

@@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Call/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process: - Call/restart `my_server` when any file in the current directory changes, sending `SIGKILL` to stop the child process:
`watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} {{my_server}}` `watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} {{my_server}}`
- Restart the execution of a command when any Java source file in the current directory changes, sending `SIGKILL` and only checking for updates every `n`ms:
`watchexec {{[-r|--restart]}} --stop-signal {{SIGKILL}} --poll {{10000}} {{[-e|--exts]}} {{java}} {{command}}`

33
tldr/watchman Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# watchman
> A service that watches files, and triggers actions when changes occur.
> More information: <https://facebook.github.io/watchman/docs/cli-options>.
- Start watching a directory for changes:
`watchman watch {{path/to/directory}}`
- Add a trigger to run a command when files with a specified filename pattern in a watched directory change:
`watchman -- trigger {{path/to/watched_directory}} {{trigger_name}} '{{pattern}}' -- {{command}}`
- List all watched directories:
`watchman watch-list`
- Delete a watch on a directory:
`watchman watch-del {{path/to/watched_directory}}`
- List all triggers on a watched directory:
`watchman trigger-list {{path/to/watched_directory}}`
- Delete a trigger from a watched directory:
`watchman trigger-del {{path/to/watched_directory}} {{trigger_name}}`