From 34878bb630b3a5237afcd564e6ef2e51e2caa64b Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Mon, 7 Oct 2024 00:17:57 +0000 Subject: [PATCH] Update cheatsheets --- tldr/linux/gif2webp | 13 +++++++++++++ tldr/linux/ifstat | 21 +++++++++++++++++++++ tldr/linux/img2webp | 13 +++++++++++++ tldr/linux/zdump | 17 +++++++++++++++++ tldr/shotcut | 29 +++++++++++++++++++++++++++++ tldr/socat | 8 ++++---- 6 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 tldr/linux/gif2webp create mode 100644 tldr/linux/ifstat create mode 100644 tldr/linux/img2webp create mode 100644 tldr/linux/zdump create mode 100644 tldr/shotcut diff --git a/tldr/linux/gif2webp b/tldr/linux/gif2webp new file mode 100644 index 00000000..92b3a945 --- /dev/null +++ b/tldr/linux/gif2webp @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# gif2webp + +> Convert a GIF image to WebP. +> More information: . + +- Convert a GIF image to WebP: + +`gif2webp {{path/to/image.gif}} -o {{path/to/image.webp}}` diff --git a/tldr/linux/ifstat b/tldr/linux/ifstat new file mode 100644 index 00000000..fcaf9af5 --- /dev/null +++ b/tldr/linux/ifstat @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# ifstat + +> View network interface statistics. +> More information: . + +- View network interface statistics since last query: + +`ifstat` + +- View network interface statistics since last boot: + +`ifstat {{-a|--ignore}}` + +- View error rate: + +`ifstat {-e|--errors}}` diff --git a/tldr/linux/img2webp b/tldr/linux/img2webp new file mode 100644 index 00000000..b2184a01 --- /dev/null +++ b/tldr/linux/img2webp @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# img2webp + +> Convert an image to WebP. +> More information: . + +- Convert an image to WebP: + +`img2webp {{path/to/image}} -o {{path/to/image.webp}}` diff --git a/tldr/linux/zdump b/tldr/linux/zdump new file mode 100644 index 00000000..15aa1ff2 --- /dev/null +++ b/tldr/linux/zdump @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# zdump + +> Print timezone information. +> More information: . + +- Print the current time in a timezone: + +`zdump {{timezone}}` + +- Display help: + +`zdump --help` diff --git a/tldr/shotcut b/tldr/shotcut new file mode 100644 index 00000000..d1b61b08 --- /dev/null +++ b/tldr/shotcut @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# shotcut + +> A program for video editing. +> More information: . + +- Start Shotcut: + +`shotcut` + +- Open audio/video files: + +`shotcut {{path/to/file1 path/to/file2 ...}}` + +- Start with a specific audio driver: + +`shotcut --SDL_AUDIODRIVER "{{pulseaudio}}"` + +- Start in fullscreen: + +`shotcut --fullscreen` + +- Start with GPU processing: + +`shotcut --gpu` diff --git a/tldr/socat b/tldr/socat index 826af854..759fdb61 100644 --- a/tldr/socat +++ b/tldr/socat @@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git - Listen to a port, wait for an incoming connection and transfer data to STDIO: -`socat - TCP-LISTEN:8080,fork` +`sudo socat - TCP-LISTEN:8080,fork` - Listen on a port using SSL and print to STDOUT: -`socat OPENSSL-LISTEN:4433,reuseaddr,cert=./cert.pem,cafile=./ca.cert.pem,key=./key.pem,verify=0 STDOUT` +`sudo socat OPENSSL-LISTEN:4433,reuseaddr,cert=./cert.pem,cafile=./ca.cert.pem,key=./key.pem,verify=0 STDOUT` - Create a connection to a host and port, transfer data in STDIO to connected host: -`socat - TCP4:www.example.com:80` +`sudo socat - TCP4:www.example.com:80` - Forward incoming data of a local port to another host and port: -`socat TCP-LISTEN:80,fork TCP4:www.example.com:80` +`sudo socat TCP-LISTEN:80,fork TCP4:www.example.com:80`