Linux Commands: Difference between revisions
From Lucca's Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
[[FFmpeg Cut a video to a clip by seconds]] | [[FFmpeg Cut a video to a clip by seconds]] | ||
Download any yt-dlp supported video, convert it to an mp3, then automatically number it based on the order they were downloaded in the playlist | |||
ytmp3 () { | |||
yt-dlp --extract-audio --audio-format mp3 $@ | |||
} | |||
ytmp3numbered () { | |||
ytmp3 --output "%(autonumber)s - %(title)s.%(ext)s" $@ | |||
} | |||
Additional Resources: | Additional Resources: |
Revision as of 22:17, 25 August 2025
Delete all docker images
docker rmi -f $(docker images -a -q)
Create a file and set its permissions
install -m 755 /dev/null filename.txt
Record audio files
Record Audio Files in the Command Line
Get/Set data from clipboard:
getclip () { xclip -selection c -o } setclip () { xclip -selection c }
Create an SSL Key and Cert pair
openssl req -new -x509 -nodes -out server.crt -keyout server.key
Cut a video or audio file into a clip based on seconds
FFmpeg Cut a video to a clip by seconds
Download any yt-dlp supported video, convert it to an mp3, then automatically number it based on the order they were downloaded in the playlist
ytmp3 () { yt-dlp --extract-audio --audio-format mp3 $@ } ytmp3numbered () { ytmp3 --output "%(autonumber)s - %(title)s.%(ext)s" $@ }
Additional Resources:
https://github.com/OpenRC/openrc/blob/master/service-script-guide.md