From 1a1798715b37ce1d7bc39e5075f18c593eb6600a Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 3 Jun 2025 00:20:42 +0000 Subject: [PATCH] Update cheatsheets --- tldr/! | 2 +- tldr/claude | 29 +++++++++++++++++++++++++++++ tldr/flask-unsign | 37 +++++++++++++++++++++++++++++++++++++ tldr/linux/gamescope | 6 +++++- tldr/linux/iostat | 2 +- tldr/linux/ipcs | 2 +- tldr/linux/libtoolize | 2 +- tldr/markdown2pdf | 25 +++++++++++++++++++++++++ tldr/nix-shell.3 | 2 +- 9 files changed, 101 insertions(+), 6 deletions(-) create mode 100644 tldr/claude create mode 100644 tldr/flask-unsign create mode 100644 tldr/markdown2pdf diff --git a/tldr/! b/tldr/! index c8b441c2..503cdaeb 100644 --- a/tldr/! +++ b/tldr/! @@ -3,7 +3,7 @@ syntax: markdown tags: [tldr, common] source: https://github.com/tldr-pages/tldr.git --- -# Exclamation mark +# ! > Reuse and expand the shell history in `sh`, Bash, Zsh, `rbash` and `ksh`. > More information: . diff --git a/tldr/claude b/tldr/claude new file mode 100644 index 00000000..d8cb069d --- /dev/null +++ b/tldr/claude @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# claude + +> An agent-based coding tool that understands your code base and helps you code faster through natural language commands. +> More information: . + +- Execute with prompt: + +`claude prompt` + +- Update `claude`: + +`claude update` + +- Get the list of specified MCP servers: + +`claude mcp list` + +- Create commit with command: + +`claude commit` + +- Get the list of configurations: + +`claude config list` diff --git a/tldr/flask-unsign b/tldr/flask-unsign new file mode 100644 index 00000000..a3215f8b --- /dev/null +++ b/tldr/flask-unsign @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# flask-unsign + +> A tool to brute-force, decode and craft `Flask` session cookies. +> More information: . + +- Decode a Flask session cookie: + +`flask-unsign {{[-d|--decode]}} {{[-c|--cookie]}} {{cookie}}` + +- Decode a session cookie fetched from a URL which returns a `Set-Cookie` header: + +`flask-unsign {{[-d|--decode]}} --server {{URL}}` + +- Brute-force a secret key using the default flask-unsign-wordlist (requires `flask-unsign-wordlist`): + +`flask-unsign {{[-u|--unsign]}} {{[-c|--cookie]}} {{cookie}}` + +- Brute-force a secret key with a custom wordlist (use `--no-literal-eval` for unquoted entries): + +`flask-unsign {{[-u|--unsign]}} {{[-c|--cookie]}} {{cookie}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}}` + +- Sign a new session cookie with a secret key: + +`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} {{"{'logged_in': False}"}} {{[-S|--secret]}} {{secret}}` + +- Sign a session cookie using legacy timestamp (useful for old versions): + +`flask-unsign {{[-s|--sign]}} {{[-c|--cookie]}} {{"{'logged_in': False}"}} {{[-S|--secret]}} {{secret}} {{[-l|--legacy]}}` + +- Brute-force a session cookie with custom threads and no literal evaluation: + +`flask-unsign {{[-u|--unsign]}} {{[-c|--cookie]}} {{cookie}} {{[-w|--wordlist]}} {{path/to/wordlist.txt}} {{[-t|--threads]}} {{threads}} {{[-nE|--no-literal-eval]}}` diff --git a/tldr/linux/gamescope b/tldr/linux/gamescope index 9f3dabf7..cffabd6a 100644 --- a/tldr/linux/gamescope +++ b/tldr/linux/gamescope @@ -24,10 +24,14 @@ source: https://github.com/tldr-pages/tldr.git `gamescope {{[-r|--nested-refresh]}} 30 -- %command%` +- Launch Steam in Big Picture Mode and integrate with gamescope: + +`gamescope {{[-e|--steam]}} -- /usr/bin/steam -tenfoot` + - Toggle fullscreen: `` -- Show help: +- Display help: `gamescope --help` diff --git a/tldr/linux/iostat b/tldr/linux/iostat index d440bfc4..77b50803 100644 --- a/tldr/linux/iostat +++ b/tldr/linux/iostat @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Display CPU statistics: -`iostat -c` +`iostat {{[-c|--compact]}}` - Display disk statistics with disk names (including LVM): diff --git a/tldr/linux/ipcs b/tldr/linux/ipcs index 2445aa6c..d141735c 100644 --- a/tldr/linux/ipcs +++ b/tldr/linux/ipcs @@ -25,7 +25,7 @@ source: https://github.com/tldr-pages/tldr.git `ipcs {{[-l|--limits]}} {{--bytes|--human}}` -- Show s[u]mmary about current usage: +- Show summary about current usage: `ipcs {{[-u|--summary]}}` diff --git a/tldr/linux/libtoolize b/tldr/linux/libtoolize index b1337156..b9526856 100644 --- a/tldr/linux/libtoolize +++ b/tldr/linux/libtoolize @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Initialize a project for `libtool` by copying necessary files (avoiding symbolic links) and overwriting existing files if needed: -`libtoolize {{[-c|--copy]}} {{[-f|--force]}}` +`libtoolize {{[-cf|--copy --force]}}` diff --git a/tldr/markdown2pdf b/tldr/markdown2pdf new file mode 100644 index 00000000..73ee8ad4 --- /dev/null +++ b/tldr/markdown2pdf @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# markdown2pdf + +> Convert markdown to PDF. +> More information: . + +- Convert a Markdown file to a PDF: + +`markdown2pdf {{[-p|--path]}} {{path/to/input_file.md}}` + +- Convert a Markdown file to a PDF with a specific path: + +`markdown2pdf {{[-p|--path]}} {{path/to/input_file.md}} {{[-o|--output]}} {{path/to/output_file.pdf}}` + +- Convert Markdown content provided as a string: + +`markdown2pdf {{[-s|--string]}} {{markdown_text}} {{[-o|--output]}} {{path/to/output_file.pdf}}` + +- Convert from URL (this will convert a Markdown file at that URL to a local PDF file): + +`markdown2pdf {{[-u|--url]}} {{URL}} {{[-o|--output]}} {{path/to/output_file.pdf}}` diff --git a/tldr/nix-shell.3 b/tldr/nix-shell.3 index e3263c3f..07f8fba8 100644 --- a/tldr/nix-shell.3 +++ b/tldr/nix-shell.3 @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Start a shell in which the specified packages are available. > See also: `nix-shell` for setting up development environments, `nix flake` for information about flakes. -> More information: . +> More information: . - Start an interactive shell with some packages from `nixpkgs`: