Update cheatsheets

This commit is contained in:
ivuorinen
2024-07-12 00:14:50 +00:00
parent 750a1b15d0
commit ed05deca5f
4 changed files with 65 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# Accelerate
# accelerate
> A library that enables the same PyTorch code to be run across any distributed configuration.
> More information: <https://huggingface.co/docs/accelerate/index>.

17
tldr/linux/factorio Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# factorio
> Create and start a headless Factorio server.
> More information: <https://wiki.factorio.com/Multiplayer>.
- Create a new save file:
`{{path/to/factorio}} --create {{path/to/save_file.zip}}`
- Start a Factorio server:
`{{path/to/factorio}} --start-server {{path/to/save_file.zip}}`

17
tldr/linux/terraria Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# terraria
> Create and start a headless Terraria server.
> More information: <https://terraria.wiki.gg/wiki/Server>.
- Start an interactive server setup:
`{{path/to/TerrariaServer}}`
- Start a Terraria server:
`{{path/to/TerrariaServer}} -world {{path/to/world.wld}}`

30
tldr/piper Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# piper
> A fast, local neural text to speech system.
> Try out and download speech models from <https://rhasspy.github.io/piper-samples>.
> More information: <https://github.com/rhasspy/piper>.
- Output a WAV [f]ile using a text-to-speech [m]odel (assuming a config file at model_path + .json):
`echo {{Thing to say}} | piper -m {{path/to/model.onnx}} -f {{outputfile.wav}}`
- Output a WAV [f]ile using a [m]odel and specifying its JSON [c]onfig file:
`echo {{'Thing to say'}} | piper -m {{path/to/model.onnx}} -c {{path/to/model.onnx.json}} -f {{outputfile.wav}}`
- Select a particular speaker in a voice with multiple speakers by specifying the speaker's ID number:
`echo {{'Warum?'}} | piper -m {{de_DE-thorsten_emotional-medium.onnx}} --speaker {{1}} -f {{angry.wav}}`
- Stream the output to the mpv media player:
`echo {{'Hello world'}} | piper -m {{en_GB-northern_english_male-medium.onnx}} --output-raw -f - | mpv -`
- Speak twice as fast, with huge gaps between sentences:
`echo {{'Speaking twice the speed. With added drama!'}} | piper -m {{foo.onnx}} --length_scale {{0.5}} --sentence_silence {{2}} -f {{drama.wav}}`