From c3ebde93f858b00b83ccdb0a2cf33e6982d92cbd Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 12 Feb 2025 00:17:35 +0000 Subject: [PATCH] Update cheatsheets --- tldr/fswatch | 2 +- tldr/linux/chsh | 4 ---- tldr/nhentai | 25 +++++++++++++++++++++++++ tldr/print | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 tldr/nhentai create mode 100644 tldr/print diff --git a/tldr/fswatch b/tldr/fswatch index 1a7cddee..12ebd0d7 100644 --- a/tldr/fswatch +++ b/tldr/fswatch @@ -22,4 +22,4 @@ source: https://github.com/tldr-pages/tldr.git - Filter by event type: -`fswatch --event {{Updated|Deleted|Created}} {{path/to/directory}} | xargs -n 1 {{bash_command}}` +`fswatch --event {{Updated|Removed|Created|...}} {{path/to/directory}} | xargs -n 1 {{bash_command}}` diff --git a/tldr/linux/chsh b/tldr/linux/chsh index d2f41f03..84578396 100644 --- a/tldr/linux/chsh +++ b/tldr/linux/chsh @@ -20,7 +20,3 @@ source: https://github.com/tldr-pages/tldr.git - Set a login [s]hell for a specific user: `sudo chsh --shell {{path/to/shell}} {{username}}` - -- [l]ist available shells: - -`chsh --list-shells` diff --git a/tldr/nhentai b/tldr/nhentai new file mode 100644 index 00000000..1fe1e293 --- /dev/null +++ b/tldr/nhentai @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# nhentai + +> Download doujinshis from nhentai. +> More information: . + +- Set cookies: + +`nhentai --cookie "csrftoken={{TOKEN}}; sessionid={{ID}}}}"` + +- Download a specific doujin: + +`nhentai --id {{number}}` + +- Download the first page of your favorites: + +`nhentai --favorites --download --delay 1` + +- Download specific pages of your favorites: + +`nhentai --favorites --pages={{start_page}}-{{end_page}} --download --delay 1` diff --git a/tldr/print b/tldr/print new file mode 100644 index 00000000..332c1872 --- /dev/null +++ b/tldr/print @@ -0,0 +1,32 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# print + +> Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`. +> See also: `echo`, `printf`, `zsh`. +> More information: . + +- Print input: + +`print "Hello" "World"` + +- Print separated by newline(s): + +`print -l "Linel" "Line 2" "Line3"` + +- Print without trailing newline: + +`print -n "Hello"; print "World"` + +- Enable backslash escapes: + +`print -e "Line 1 +Line2"` + +- Print arguments as described by 'printf' (for greater portability across shells, consider instead the `printf` command): + +`print -f "%s is %d years old. +" "Alice" 30`