From ae37c90b9fd90087cca88d7d7122da052126b404 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sat, 14 Jun 2025 00:19:47 +0000 Subject: [PATCH] Update cheatsheets --- tldr/ack | 2 +- tldr/agg | 13 +++++++++++++ tldr/aspell | 4 ++-- tldr/chisel | 4 ++-- tldr/linux/termshark | 17 +++++++++++++++++ tldr/touch | 4 ++++ 6 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 tldr/agg create mode 100644 tldr/linux/termshark diff --git a/tldr/ack b/tldr/ack index 51ed9f53..52ef1369 100644 --- a/tldr/ack +++ b/tldr/ack @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for lines matching a pattern, printing only the matched text and not the rest of the line: -`ack {{[-o|--output='$&']}} "{{search_pattern}}"` +`ack {{[-o|--output '$&']}} "{{search_pattern}}"` - Limit search to files of a specific type: diff --git a/tldr/agg b/tldr/agg new file mode 100644 index 00000000..f8515f69 --- /dev/null +++ b/tldr/agg @@ -0,0 +1,13 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# agg + +> Create a GIF from an `asciinema` terminal session recording. +> More information: . + +- Create a GIF: + +`agg {{path/to/demo.cast}} {{path/to/demo.gif}}` diff --git a/tldr/aspell b/tldr/aspell index 75080e42..10c35b79 100644 --- a/tldr/aspell +++ b/tldr/aspell @@ -22,8 +22,8 @@ source: https://github.com/tldr-pages/tldr.git - Run `aspell` with a different language (takes two-letter ISO 639 language code): -`aspell --lang={{cs}}` +`aspell --lang {{cs}}` - List misspelled words from `stdin` and ignore words from personal word list: -`cat {{path/to/file}} | aspell --personal={{personal-word-list.pws}} list` +`cat {{path/to/file}} | aspell --personal {{personal-word-list.pws}} list` diff --git a/tldr/chisel b/tldr/chisel index 9e306afd..95b8d81e 100644 --- a/tldr/chisel +++ b/tldr/chisel @@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git - Run a Chisel server listening to a specific port: -`chisel server -p {{server_port}}` +`chisel server {{[-p|--port]}} {{server_port}}` - Run a chisel server that accepts authenticated connections using username and password: @@ -35,7 +35,7 @@ source: https://github.com/tldr-pages/tldr.git - Initialize a Chisel server in reverse mode on a specific port, also enabling SOCKS5 proxy (on port 1080) functionality: -`chisel server -p {{server_port}} --reverse --socks5` +`chisel server {{[-p|--port]}} {{server_port}} --reverse --socks5` - Connect to a Chisel server at specific IP and port, creating a reverse tunnel mapped to a local SOCKS proxy: diff --git a/tldr/linux/termshark b/tldr/linux/termshark new file mode 100644 index 00000000..fd37be82 --- /dev/null +++ b/tldr/linux/termshark @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# termshark + +> Terminal UI for `tshark`, but looks more like `wireshark`. +> More information: . + +- Monitor the default network interface: + +`sudo termshark` + +- Specify the interface to monitor: + +`sudo termshark {{interface}}` diff --git a/tldr/touch b/tldr/touch index 61b62e8f..8d6b08bf 100644 --- a/tldr/touch +++ b/tldr/touch @@ -23,3 +23,7 @@ source: https://github.com/tldr-pages/tldr.git - Set the files' timestamp to the reference file's timestamp, and do not create the file if it does not exist: `touch {{[-c|--no-create]}} {{[-r|--reference]}} {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}` + +- Set the timestamp by parsing a string: + +`touch {{[-d|--date]}} "{{last year|5 hours|next thursday|nov 14|...}}" {{path/to/file}}`