Compare commits
3 Commits
e71467b243
...
20f8e5665b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20f8e5665b | ||
|
|
75420f3231 | ||
|
|
e6bf5cc191 |
@ -2,4 +2,5 @@
|
||||
|
||||
A repository to allow users to quickly create, share, and manage small code snippets or notes directly within the Gitea platform.
|
||||
|
||||
- [Docker](docker.md)
|
||||
- [Docker](docker.md)
|
||||
- [yt-dlp](yt-dlp.md)
|
||||
@ -1,12 +1,14 @@
|
||||
# Docker Snippets
|
||||
|
||||
## Stop All Containers
|
||||
Stops all running containers.
|
||||
|
||||
```shell
|
||||
docker stop $(docker ps -q)
|
||||
```
|
||||
|
||||
## Start Stopped Continaers
|
||||
Starts all containers that were stopped.
|
||||
|
||||
```shell
|
||||
docker start $(docker ps -q -f "status=exited")
|
||||
|
||||
27
yt-dlp.md
Normal file
27
yt-dlp.md
Normal file
@ -0,0 +1,27 @@
|
||||
# yt-dlp Snippets
|
||||
|
||||
## Best Video in MP4
|
||||
Download the best quality video in .mp4 format.
|
||||
|
||||
```shell
|
||||
yt-dlp -f "best[ext=mp4]" <url>
|
||||
```
|
||||
|
||||
## Best Video in MP4 w/ English Subtitles
|
||||
Download the best quality video in .mp4 format, along with English subtitles (if available), from the given URL.
|
||||
|
||||
```shell
|
||||
yt-dlp -f "best[ext=mp4]" --write-sub --sub-lang en <url>
|
||||
```
|
||||
|
||||
## Extract Audio in MP3
|
||||
The command will extract the audio from the video at the given URL and save it in the MP3 format.
|
||||
```shell
|
||||
yt-dlp -x --audio-format mp3 <url>
|
||||
```
|
||||
|
||||
## Extract Audio in MP3, Block Ads
|
||||
The command will extract the audio from the video at the given URL, remove all sponsor segments using SponsorBlock, and save the audio in MP3 format.
|
||||
```shell
|
||||
yt-dlp --sponsorblock-remove all -x --audio-format mp3 <url>
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user