From cd175aefbd129b51edd1b969dc32c5b77967aecb Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 14 Feb 2025 00:17:39 +0000 Subject: [PATCH] Update cheatsheets --- tldr/ani-cli | 8 ++++++++ tldr/gdb | 4 ++++ tldr/linux/coredumpctl | 4 ++++ 3 files changed, 16 insertions(+) diff --git a/tldr/ani-cli b/tldr/ani-cli index 371c19fd..e646e0d9 100644 --- a/tldr/ani-cli +++ b/tldr/ani-cli @@ -16,6 +16,14 @@ source: https://github.com/tldr-pages/tldr.git `ani-cli -d "{{anime_name}}"` +- [d]ownload a [r]ange of episodes: + +`ani-cli -d -r "{{1 6}}" "{{anime_name}}"` + +- [d]ownload the entire series (a range of all episodes): + +`ani-cli -d -r "1 -1" "{{anime_name}}"` + - Use [v]LC as the media player: `ani-cli -v "{{anime_name}}"` diff --git a/tldr/gdb b/tldr/gdb index d9790b7e..808a518f 100644 --- a/tldr/gdb +++ b/tldr/gdb @@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git - Start `gdb` and pass arguments to the executable: `gdb --args {{executable}} {{argument1}} {{argument2}}` + +- Skip debuginfod and pagination prompts and then print the backtrace: + +`gdb -c {{core}} {{executable}} -iex 'set debuginfod enabled on' -iex 'set pagination off' -ex bt` diff --git a/tldr/linux/coredumpctl b/tldr/linux/coredumpctl index 71049896..4d217237 100644 --- a/tldr/linux/coredumpctl +++ b/tldr/linux/coredumpctl @@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git - Extract the last core dump of a program to a file: `coredumpctl --output={{path/to/file}} dump {{program}}` + +- Skip debuginfod and pagination prompts and then print the backtrace when using `gdb`: + +`coredumpctl debug --debugger-arguments="-iex 'set debuginfod enabled on' -iex 'set pagination off' -ex bt"`