mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 08:00:39 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,23 +10,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a command as a daemon:
|
||||
|
||||
`daemon --name="{{name}}" {{command}}`
|
||||
`daemon {{[-n|--name]}} "{{name}}" {{command}}`
|
||||
|
||||
- Run a command as a daemon which will restart if the command crashes:
|
||||
|
||||
`daemon --name="{{name}}" {{[-r|--respawn]}} {{command}}`
|
||||
`daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{command}}`
|
||||
|
||||
- Run a command as a daemon which will restart if it crashes, with two attempts every 10 seconds:
|
||||
|
||||
`daemon --name="{{name}}" {{[-r|--respawn]}} --attempts=2 --delay=10 {{command}}`
|
||||
`daemon {{[-n|--name]}} "{{name}}" {{[-r|--respawn]}} {{[-A|--attempts]}} 2 {{[-L|--delay]}} 10 {{command}}`
|
||||
|
||||
- Run a command as a daemon, writing logs to a specific file:
|
||||
|
||||
`daemon --name="{{name}}" --errlog={{path/to/file.log}} {{command}}`
|
||||
`daemon {{[-n|--name]}} "{{name}}" {{[-l|--errlog]}} {{path/to/file.log}} {{command}}`
|
||||
|
||||
- Kill a daemon (SIGTERM):
|
||||
|
||||
`daemon --name="{{name}}" --stop`
|
||||
`daemon {{[-n|--name]}} "{{name}}" --stop`
|
||||
|
||||
- List daemons:
|
||||
|
||||
|
||||
@@ -20,6 +20,14 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`liquidctl status`
|
||||
|
||||
- Match a string in product name to pick a device and set its fan speed to 0% at 20°C, 50% at 50°C, and 100% at 70°C:
|
||||
- Match a string in product name to pick a device and set its speed to a flat 50%:
|
||||
|
||||
`liquidctl {{[-m|--match]}} {{string}} set fan speed {{20 0 50 50 70 100}}`
|
||||
`liquidctl {{[-m|--match]}} {{string}} set {{fan|pump|...}} speed 50`
|
||||
|
||||
- Set a gradual fan speed curve that is 0% at 20°C, 50% at 50°C, and 100% at 70°C:
|
||||
|
||||
`liquidctl set {{fan|pump|...}} speed 20 0 50 50 70 100`
|
||||
|
||||
- Set the liquid cooler RGB lights (supported modes depend on the model):
|
||||
|
||||
`liquidctl set {{fan|pump|...}} color {{fixed|fading|rainbow|...}} {{00ff00}}`
|
||||
|
||||
12
tldr/scrcpy
12
tldr/scrcpy
@@ -20,10 +20,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`scrcpy {{[-s|--serial]}} {{0123456789abcdef|192.168.0.1:5555}}`
|
||||
|
||||
- Start display in fullscreen mode:
|
||||
|
||||
`scrcpy {{[-f|--fullscreen]}}`
|
||||
|
||||
- Show touches on physical device:
|
||||
|
||||
`scrcpy {{[-t|--show-touches]}}`
|
||||
@@ -35,3 +31,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Specify the target directory for pushing files to device by drag and drop (non-APK):
|
||||
|
||||
`scrcpy --push-target {{path/to/directory}}`
|
||||
|
||||
- View the phone's camera (requires Android 12 or newer):
|
||||
|
||||
`scrcpy --video-source camera`
|
||||
|
||||
- Create a Video4Linux2 device from the phone's camera (`v4l2loopback` must be installed):
|
||||
|
||||
`scrcpy --video-source camera --camera-size {{1920x1080}} --v4l2-sink {{/dev/video0}} --no-playback`
|
||||
|
||||
Reference in New Issue
Block a user