mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 22:46:13 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/dbt
Normal file
37
tldr/dbt
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dbt
|
||||
|
||||
> A tool to model transformations in data warehouses.
|
||||
> More information: <https://github.com/dbt-labs/dbt-core>.
|
||||
|
||||
- Debug the dbt project and the connection to the database:
|
||||
|
||||
`dbt debug`
|
||||
|
||||
- Run all models of the project:
|
||||
|
||||
`dbt run`
|
||||
|
||||
- Run all tests of `example_model`:
|
||||
|
||||
`dbt test --select example_model`
|
||||
|
||||
- Build (load seeds, run models, snapshots, and tests associated with) `example_model` and its downstream dependents:
|
||||
|
||||
`dbt build --select example_model+`
|
||||
|
||||
- Build all models, except the ones with the tag `not_now`:
|
||||
|
||||
`dbt build --exclude "tag:not_now"`
|
||||
|
||||
- Build all models with tags `one` and `two`:
|
||||
|
||||
`dbt build --select "tag:one,tag:two"`
|
||||
|
||||
- Build all models with tags `one` or `two`:
|
||||
|
||||
`dbt build --select "tag:one tag:two"`
|
||||
17
tldr/idevice_id
Normal file
17
tldr/idevice_id
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevice_id
|
||||
|
||||
> List attached iOS devices or print the device name of a given device.
|
||||
> More information: <https://manned.org/idevice_id>.
|
||||
|
||||
- List the UDIDs of all attached devices:
|
||||
|
||||
`idevice_id --list`
|
||||
|
||||
- List the UDIDs of all devices available via the network:
|
||||
|
||||
`idevice_id --network`
|
||||
18
tldr/idevicebackup
Normal file
18
tldr/idevicebackup
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicebackup
|
||||
|
||||
> Create or restore backups for iOS devices.
|
||||
> Note: This tool is outdated. Please see `idevicebackup2`.
|
||||
> More information: <https://manned.org/idevicebackup>.
|
||||
|
||||
- Create a backup of the device in the specified directory:
|
||||
|
||||
`idevicebackup backup {{path/to/directory}}`
|
||||
|
||||
- Restore a backup from the specified directory:
|
||||
|
||||
`idevicebackup restore {{path/to/directory}}`
|
||||
25
tldr/idevicebackup2
Normal file
25
tldr/idevicebackup2
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicebackup2
|
||||
|
||||
> Create or restore backups for devices running iOS 4 or later.
|
||||
> More information: <https://manned.org/idevicebackup2>.
|
||||
|
||||
- Create a backup of the device in the specified directory:
|
||||
|
||||
`idevicebackup2 backup {{path/to/directory}}`
|
||||
|
||||
- Restore a backup from the specified directory:
|
||||
|
||||
`idevicebackup2 restore {{path/to/directory}}`
|
||||
|
||||
- Enable encryption for backups:
|
||||
|
||||
`idevicebackup2 encryption on {{password}}`
|
||||
|
||||
- List the files in the last completed backup:
|
||||
|
||||
`idevicebackup2 list`
|
||||
21
tldr/idevicecrashreport
Normal file
21
tldr/idevicecrashreport
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicecrashreport
|
||||
|
||||
> Retrieve crash reports from an iOS device.
|
||||
> More information: <https://manned.org/idevicecrashreport>.
|
||||
|
||||
- Retrieve crash reports and move them to a specified directory:
|
||||
|
||||
`idevicecrashreport {{path/to/directory}}`
|
||||
|
||||
- Retrieve crash reports without removing them from the device:
|
||||
|
||||
`idevicecrashreport --keep {{path/to/directory}}`
|
||||
|
||||
- Extract crash reports into separate `.crash` files:
|
||||
|
||||
`idevicecrashreport --extract {{path/to/directory}}`
|
||||
21
tldr/idevicedate
Normal file
21
tldr/idevicedate
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicedate
|
||||
|
||||
> Display the current date or set it on an iOS device.
|
||||
> More information: <https://manned.org/idevicedate>.
|
||||
|
||||
- Display the current date and time:
|
||||
|
||||
`idevicedate`
|
||||
|
||||
- Set the date and time on the device to the system time:
|
||||
|
||||
`idevicedate --sync`
|
||||
|
||||
- Set the date and time to a specific timestamp:
|
||||
|
||||
`idevicedate --set {{timestamp}}`
|
||||
21
tldr/idevicediagnostics
Normal file
21
tldr/idevicediagnostics
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicediagnostics
|
||||
|
||||
> Interact with the diagnostics interface of an iOS device.
|
||||
> More information: <https://manned.org/idevicediagnostics>.
|
||||
|
||||
- Print diagnostics information:
|
||||
|
||||
`idevicediagnostics diagnostics`
|
||||
|
||||
- Print mobilegestalt key values:
|
||||
|
||||
`idevicediagnostics mobilegestalt {{key1}} {{key2}}`
|
||||
|
||||
- Shutdown, restart or sleep the device:
|
||||
|
||||
`idevicediagnostics {{shutdown|restart|sleep}}`
|
||||
17
tldr/ideviceimagemounter
Normal file
17
tldr/ideviceimagemounter
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ideviceimagemounter
|
||||
|
||||
> Mount disk images on an iOS device.
|
||||
> More information: <https://manned.org/ideviceimagemounter>.
|
||||
|
||||
- Mount a disk image on the connected device:
|
||||
|
||||
`ideviceimagemounter {{path/to/image_file}} {{path/to/signature_file}}`
|
||||
|
||||
- List currently mounted disk images:
|
||||
|
||||
`ideviceimagemounter --list`
|
||||
17
tldr/ideviceinfo
Normal file
17
tldr/ideviceinfo
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ideviceinfo
|
||||
|
||||
> Show information about the first connected iOS device.
|
||||
> More information: <https://manned.org/ideviceinfo>.
|
||||
|
||||
- Display detailed information about the connected device:
|
||||
|
||||
`ideviceinfo`
|
||||
|
||||
- Show information about a specific device by UDID:
|
||||
|
||||
`ideviceinfo --udid {{device_udid}}`
|
||||
17
tldr/idevicename
Normal file
17
tldr/idevicename
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicename
|
||||
|
||||
> Display the device name or set it to a new name.
|
||||
> More information: <https://manned.org/idevicename>.
|
||||
|
||||
- Display the current device name:
|
||||
|
||||
`idevicename`
|
||||
|
||||
- Set a new device name:
|
||||
|
||||
`idevicename {{new_name}}`
|
||||
17
tldr/idevicepair
Normal file
17
tldr/idevicepair
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicepair
|
||||
|
||||
> Manage host pairings with iOS devices.
|
||||
> More information: <https://manned.org/idevicepair>.
|
||||
|
||||
- Pair a device with the host:
|
||||
|
||||
`idevicepair pair`
|
||||
|
||||
- List devices paired with the host:
|
||||
|
||||
`idevicepair list`
|
||||
17
tldr/idevicescreenshot
Normal file
17
tldr/idevicescreenshot
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicescreenshot
|
||||
|
||||
> Get a screenshot from the connected iOS device.
|
||||
> More information: <https://manned.org/idevicescreenshot>.
|
||||
|
||||
- Save a screenshot with the default file name as a TIFF image:
|
||||
|
||||
`idevicescreenshot`
|
||||
|
||||
- Save a screenshot with a specific file name:
|
||||
|
||||
`idevicescreenshot {{path/to/file.tiff}}`
|
||||
17
tldr/idevicesetlocation
Normal file
17
tldr/idevicesetlocation
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicesetlocation
|
||||
|
||||
> Simulate a location on an iOS device.
|
||||
> More information: <https://manned.org/idevicesetlocation>.
|
||||
|
||||
- Set a specific latitude and longitude:
|
||||
|
||||
`idevicesetlocation {{latitude}} {{longitude}}`
|
||||
|
||||
- Reset the simulated location:
|
||||
|
||||
`idevicesetlocation reset`
|
||||
17
tldr/idevicesyslog
Normal file
17
tldr/idevicesyslog
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# idevicesyslog
|
||||
|
||||
> Relay syslog messages from a connected iOS device.
|
||||
> More information: <https://manned.org/idevicesyslog>.
|
||||
|
||||
- Relay syslog messages from the connected device:
|
||||
|
||||
`idevicesyslog`
|
||||
|
||||
- Suppress kernel messages and print everything else:
|
||||
|
||||
`idevicesyslog --no-kernel`
|
||||
25
tldr/iproxy
Normal file
25
tldr/iproxy
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# iproxy
|
||||
|
||||
> A proxy that binds local TCP ports to be forwarded to the specified ports on a usbmux device.
|
||||
> More information: <https://manned.org/iproxy>.
|
||||
|
||||
- Bind a local TCP port and forward it to a port on the connected USB device:
|
||||
|
||||
`iproxy {{local_port}}:{{device_port}}`
|
||||
|
||||
- Bind multiple local TCP ports and forward them to the respective ports on the connected USB device:
|
||||
|
||||
`iproxy {{local_port1}}:{{device_port1}} {{local_port2}}:{{device_port2}}`
|
||||
|
||||
- Bind a local port and forward it to a specific device by UDID:
|
||||
|
||||
`iproxy --udid {{device_udid}} {{local_port}}:{{device_port}}`
|
||||
|
||||
- Bind a local port and forward it to a network-connected device with WiFi sync enabled:
|
||||
|
||||
`iproxy --network {{local_port}}:{{device_port}}`
|
||||
25
tldr/npm-adduser
Normal file
25
tldr/npm-adduser
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm adduser
|
||||
|
||||
> Add a registry user account.
|
||||
> More information: <https://docs.npmjs.com/cli/npm-adduser>.
|
||||
|
||||
- Create a new user in the specified registry and save credentials to `.npmrc`:
|
||||
|
||||
`npm adduser --registry={{registry_url}}`
|
||||
|
||||
- Log in to a private registry with a specific scope:
|
||||
|
||||
`npm login --scope={{@mycorp}} --registry={{https://registry.mycorp.com}}`
|
||||
|
||||
- Log out from a specific scope and remove the auth token:
|
||||
|
||||
`npm logout --scope={{@mycorp}}`
|
||||
|
||||
- Create a scoped package during initialization:
|
||||
|
||||
`npm init --scope={{@foo}} {{--yes}}`
|
||||
33
tldr/npm-dedupe
Normal file
33
tldr/npm-dedupe
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm dedupe
|
||||
|
||||
> Reduce duplication in the `node_modules` directory.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-dedupe>.
|
||||
|
||||
- Deduplicate packages in `node_modules`:
|
||||
|
||||
`npm dedupe`
|
||||
|
||||
- Follow `package-lock.json` or `npm-shrinkwrap.json` during deduplication:
|
||||
|
||||
`npm dedupe --lock`
|
||||
|
||||
- Run deduplication in strict mode:
|
||||
|
||||
`npm dedupe --strict`
|
||||
|
||||
- Skip optional/peer dependencies during deduplication:
|
||||
|
||||
`npm dedupe --omit={{optional|peer}}`
|
||||
|
||||
- Enable detailed logging for troubleshooting:
|
||||
|
||||
`npm dedupe --loglevel=verbose`
|
||||
|
||||
- Limit deduplication to a specific package:
|
||||
|
||||
`npm dedupe {{package_name}}`
|
||||
29
tldr/npm-version
Normal file
29
tldr/npm-version
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# npm version
|
||||
|
||||
> Bump a node package version.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-version>.
|
||||
|
||||
- Check current version:
|
||||
|
||||
`npm version`
|
||||
|
||||
- Bump the minor version:
|
||||
|
||||
`npm version minor`
|
||||
|
||||
- Set a specific version:
|
||||
|
||||
`npm version {{version}}`
|
||||
|
||||
- Bump the patch version without creating a Git tag:
|
||||
|
||||
`npm version patch --no-git-tag-version`
|
||||
|
||||
- Bump the major version with a custom commit message:
|
||||
|
||||
`npm version major -m "{{Upgrade to %s for reasons}}"`
|
||||
25
tldr/nxc-winrm
Normal file
25
tldr/nxc-winrm
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# nxc winrm
|
||||
|
||||
> Pentest and exploit Windows Remote Management (winrm).
|
||||
> More information: <https://www.netexec.wiki/winrm-protocol>.
|
||||
|
||||
- Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords:
|
||||
|
||||
`nxc winrm {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}`
|
||||
|
||||
- Specify the domain to authenticate to (avoids an initial SMB connection):
|
||||
|
||||
`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} -d {{domain_name}}`
|
||||
|
||||
- Execute the specified command on the host:
|
||||
|
||||
`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} -x {{whoami}}`
|
||||
|
||||
- Execute the specified PowerShell command on the host as administrator using LAPS:
|
||||
|
||||
`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} --laps -X {{whoami}}`
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Start a REPL (interactive shell):
|
||||
|
||||
`swift`
|
||||
`swift repl`
|
||||
|
||||
- Execute a program:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- View documentation for searching, viewing, and comparing keys:
|
||||
|
||||
`tldr reg {{compare|flags|query}}`
|
||||
`tldr reg {{compare|query}}`
|
||||
|
||||
- View documentation for exporting and importing registry keys not preserving the key ownerships and ACLs:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user