mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 02:45:30 +00:00
Update cheatsheets
This commit is contained in:
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display help:
|
||||
|
||||
`doctl account --help`
|
||||
`doctl account {{[-h|--help]}}`
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Show available commands:
|
||||
|
||||
`doctl auth --help`
|
||||
`doctl auth {{[-h|--help]}}`
|
||||
|
||||
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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`):
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# grip
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
`grip --browser`
|
||||
`grip {{[-b|--browser]}}`
|
||||
|
||||
- Start the server in the specified port and serve the rendered `README` file of the current directory:
|
||||
|
||||
|
||||
@@ -6,28 +6,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# handbrakecli
|
||||
|
||||
> 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):
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`handbrakecli --preset-list`
|
||||
`handbrakecli {{[-z|--preset-list]}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# hardhat
|
||||
|
||||
> 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):
|
||||
|
||||
|
||||
@@ -6,19 +6,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# highlight
|
||||
|
||||
> 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Replace each label's count with 1 if it is non-zero:
|
||||
|
||||
`ipaggmanip --posterize {{path/to/file}}`
|
||||
`ipaggmanip {{[-P|--posterize]}} {{path/to/file}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Dex to Java decompiler.
|
||||
> 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:
|
||||
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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}}`
|
||||
|
||||
@@ -37,6 +37,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# dysk
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Sort by free size:
|
||||
|
||||
`dysk --sort free`
|
||||
`dysk {{[-s|--sort]}} free`
|
||||
|
||||
- Include only HDD disks:
|
||||
|
||||
`dysk --filter 'disk = HDD'`
|
||||
`dysk {{[-f|--filter]}} 'disk = HDD'`
|
||||
|
||||
- Exclude SSD disks:
|
||||
|
||||
`dysk --filter 'disk <> SSD'`
|
||||
`dysk {{[-f|--filter]}} 'disk <> SSD'`
|
||||
|
||||
- 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
29
tldr/linux/gamescope
Normal 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`
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
@@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run with a specific HTTP method:
|
||||
|
||||
`loadtest --method {{GET}} {{https://example.com}}`
|
||||
`loadtest {{[-m|--method]}} {{GET}} {{https://example.com}}`
|
||||
|
||||
@@ -14,23 +14,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`mongodump --db {{database_name}}`
|
||||
`mongodump {{[-d|--db]}} {{database_name}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
|
||||
4
tldr/obs
4
tldr/obs
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Open Broadcaster Software.
|
||||
> Video recording and livestreaming program.
|
||||
> More information: <https://obsproject.com/>.
|
||||
> More information: <https://obsproject.com/kb/launch-parameters>.
|
||||
|
||||
- Launch OBS:
|
||||
|
||||
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Launch OBS in portable mode:
|
||||
|
||||
`obs --portable`
|
||||
`obs {{[-p|--portable]}}`
|
||||
|
||||
- Automatically start recording a video on launch:
|
||||
|
||||
|
||||
@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`pdf-parser --type={{/Font}} {{path/to/file.pdf}}`
|
||||
`pdf-parser {{[-t|--type]}} {{/Font}} {{path/to/file.pdf}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
10
tldr/pdfgrep
10
tldr/pdfgrep
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# pdfgrep
|
||||
|
||||
> 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:
|
||||
|
||||
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`pdfgrep --recursive {{pattern}}`
|
||||
`pdfgrep {{[-r|--recursive]}} {{pattern}}`
|
||||
|
||||
- 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}}`
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# Rscript
|
||||
|
||||
> Run a script with the R programming language.
|
||||
> More information: <https://www.r-project.org>.
|
||||
> More information: <https://manned.org/Rscript>.
|
||||
|
||||
- Run a script:
|
||||
|
||||
|
||||
6
tldr/s
6
tldr/s
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all providers:
|
||||
|
||||
`s --list-providers`
|
||||
`s {{[-l|--list-providers]}}`
|
||||
|
||||
- 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:
|
||||
|
||||
`s --binary "{{binary}} {{arguments}}" {{query}}`
|
||||
`s {{[-b|--binary]}} "{{binary}} {{arguments}}" {{query}}`
|
||||
|
||||
@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- 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:
|
||||
|
||||
`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:
|
||||
|
||||
`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:
|
||||
|
||||
`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}}`
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage packages and configuration options of an existing TeX Live installation.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Manage backups of TeX Live packages.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr candidates
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr check
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr conf
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr dump-tlpdb
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr generate
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Start a graphical user interface for `tlmgr`.
|
||||
> `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`:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr info
|
||||
|
||||
> 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`:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr install
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr key
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr option
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr paper
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -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.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr platform
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Uninstall TeX Live packages.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr repository
|
||||
|
||||
> 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):
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
> Restore package backups created with `tlmgr backup`.
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr search
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr shell
|
||||
|
||||
> 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`:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# tlmgr update
|
||||
|
||||
> 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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
`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
33
tldr/watchman
Normal 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}}`
|
||||
Reference in New Issue
Block a user