Update cheatsheets

This commit is contained in:
ivuorinen
2025-02-13 00:17:37 +00:00
parent c3ebde93f8
commit 0b73eb34e9
3 changed files with 81 additions and 1 deletions

46
tldr/linux/fuzzel Normal file
View File

@@ -0,0 +1,46 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# fuzzel
> A Wayland-native application launcher and fuzzy finder, inspired by `rofi` and `dmenu`.
> More information: <https://codeberg.org/dnkl/fuzzel>.
- Run applications:
`fuzzel`
- Run `fuzzel` in dmenu mode:
`fuzzel {{-d|--dmenu}}`
- Display a menu of the output of the `ls` command:
`{{ls}} | fuzzel -d`
- Display a menu with custom items separated by a new line (`
`):
`echo -e "{{red}}
{{green}}
{{blue}}" | fuzzel -d`
- Let the user choose between multiple items and save the selected one to a file:
`echo -e "{{red}}
{{green}}
{{blue}}" | fuzzel -d > {{color.txt}}`
- Reset apps usage count (default cache directory: `$XDG_CACHE_HOME/fuzzel`):
`rm -v $HOME/.cache/fuzzel`
- Launch `fuzzel` on a specific monitor, see `wlr-randr` or `swaymsg -t get_outputs`:
`fuzzel -o "{{DP-1}}"`
- Use `fuzzel` to do an online search:
`fuzzel -d -l 0 --placeholder "{{Type your search}}" | sed 's/^/\"/g;s/$/\"/g' | xargs firefox --search`

34
tldr/olevba Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# olevba
> Parse OLE and OpenXML files (e.g., DOC, XLS, PPT, etc.) to extract VBA macros, deobfuscate, and analyze malicious code.
> Part of the `python-oletools` suite.
> For more information: <https://github.com/decalage2/oletools>.
- Analyze a file, showing both macro code and analysis results:
`olevba {{path/to/file}}`
- Recursively analyze all supported files in a directory:
`olevba -r {{path/to/directory}}`
- Provide a password for encrypted Microsoft Office files (may be repeated):
`olevba --password {{password}} {{path/to/encrypted_file}}`
- Display only analysis results, without showing macro source code:
`olevba -a {{path/to/file}}`
- Display only macro source code:
`olevba -c {{path/to/file}}`
- Show obfuscated strings and their decoded content:
`olevba --decode {{path/to/file}}`

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print separated by newline(s):
`print -l "Linel" "Line 2" "Line3"`
`print -l "Line1" "Line 2" "Line3"`
- Print without trailing newline: