Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-28 00:20:13 +00:00
parent f6d34d521b
commit 5c637b8c84
44 changed files with 188 additions and 49 deletions

30
tldr/kubectl-cordon Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl cordon
> Mark a node as unschedulable, preventing new pods from being assigned to it.
> See also: `kubectl uncordon`.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_cordon>.
- Mark a node as unschedulable:
`kubectl cordon {{node_name}}`
- Mark multiple nodes as unschedulable:
`kubectl cordon {{node_name1 node_name2 ...}}`
- Mark a node as unschedulable in a specific context:
`kubectl cordon {{node_name}} --context {{context_name}}`
- Mark nodes matching a label selector as unschedulable:
`kubectl cordon {{[-l|--selector]}} {{label_key}}={{label_value}}`
- Preview the changes without actually cordoning the nodes (dry run):
`kubectl cordon {{node_name}} --dry-run={{none|server|client}}`

30
tldr/kubectl-uncordon Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# kubectl uncordon
> Mark a node as schedulable, allowing new pods to be assigned to it.
> See also: `kubectl cordon`.
> More information: <https://kubernetes.io/docs/reference/kubectl/generated/kubectl_uncordon>.
- Mark a node as schedulable:
`kubectl uncordon {{node_name}}`
- Mark multiple nodes as schedulable:
`kubectl uncordon {{node_name1 node_name2 ...}}`
- Mark a node as schedulable in a specific context:
`kubectl uncordon {{node_name}} --context {{context_name}}`
- Mark nodes matching a label selector as schedulable:
`kubectl uncordon {{[-l|--selector]}} {{label_key}}={{label_value}}`
- Preview the changes without actually uncordoning the nodes (dry run):
`kubectl uncordon {{node_name}} --dry-run={{none|server|client}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bmon
> Monitor bandwidth and capture network related statistics.
> More information: <https://github.com/tgraf/bmon>.
> More information: <https://manned.org/bmon>.
- Display the list of all the interfaces:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# envycontrol
> GPU switching utility for Nvidia Optimus laptops.
> More information: <https://github.com/bayasdev/envycontrol>.
> More information: <https://github.com/bayasdev/envycontrol#%EF%B8%8F-usage>.
- Switch between different GPU modes:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# fscrypt
> Go tool for managing Linux filesystem encryption.
> More information: <https://github.com/google/fscrypt>.
> More information: <https://github.com/google/fscrypt#example-usage>.
- Prepare the root filesystem for use with `fscrypt`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A micro-compositor used as a game layer.
> See also: `cage`.
> More information: <https://github.com/ValveSoftware/gamescope>.
> More information: <https://github.com/ValveSoftware/gamescope#keyboard-shortcuts>.
- Run a program with gamescope on the terminal:

View File

@@ -6,24 +6,24 @@ source: https://github.com/tldr-pages/tldr.git
# goldeneye.py
> A HTTP DoS test tool.
> More information: <https://github.com/jseidl/GoldenEye>.
> More information: <https://github.com/jseidl/GoldenEye#usage>.
- Test a specific website:
`./goldeneye.py {{url}}`
`{{path/to/}}goldeneye.py {{url}}`
- Test a specific website with 100 user agents and 200 concurrent sockets:
`./goldeneye.py {{url}} --useragents 100 --sockets 200`
`{{path/to/}}goldeneye.py {{url}} {{[-u|--useragents]}} 100 {{[-s|--sockets]}} 200`
- Test a specific website without verifying the SSL certificate:
`./goldeneye.py {{url}} --nosslcheck`
`{{path/to/}}goldeneye.py {{url}} {{[-n|--nosslcheck]}}`
- Test a specific website in debug mode:
`./goldeneye.py {{url}} --debug`
`{{path/to/}}goldeneye.py {{url}} {{-d|--debug}}`
- Display help:
`./goldeneye.py --help`
`{{path/to/}}goldeneye.py {{[-h|--help]}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A drop-down terminal for GNOME.
> See also: `yakuake`.
> More information: <https://github.com/Guake/guake>.
> More information: <https://manned.org/guake>.
- Toggle Guake visibility:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# handlr
> Manage your default applications.
> More information: <https://github.com/chmln/handlr>.
> More information: <https://github.com/chmln/handlr#usage>.
- Open a URL in the default application:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# hardinfo
> Show hardware information in GUI window.
> More information: <https://github.com/lpereira/hardinfo>.
> More information: <https://manned.org/hardinfo>.
- Start `hardinfo`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# imgp
> Resize and rotate JPEG and PNG images.
> More information: <https://github.com/jarun/imgp>.
> More information: <https://github.com/jarun/imgp#usage>.
- Convert single images and/or whole directories containing valid image formats:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# impala
> Manage Wi-Fi networks through a TUI.
> More information: <https://github.com/pythops/impala>.
> More information: <https://github.com/pythops/impala#-usage>.
- Launch `impala` in station mode:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# lxterminal
> Terminal emulator for LXDE.
> More information: <https://github.com/lxde/lxterminal>.
> More information: <https://manned.org/lxterminal>.
- Open an LXTerminal window:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mangohud
> Display a monitoring HUD on top of a Vulkan or OpenGL graphical application.
> More information: <https://github.com/flightlessmango/MangoHud>.
> More information: <https://github.com/flightlessmango/MangoHud#normal-usage>.
- Use `mangohud` on top of an application:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nethogs
> Monitor bandwidth usage per process.
> More information: <https://github.com/raboof/nethogs>.
> More information: <https://manned.org/nethogs>.
- Start NetHogs as root (default device is `eth0`):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# netselect
> Speed test for choosing a fast network server.
> More information: <https://github.com/apenwarr/netselect>.
> More information: <https://manned.org/netselect>.
- Choose the server with the lowest latency:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nitch
> A small and incredibly fast system fetch written fully in Nim.
> More information: <https://github.com/ssleert/nitch>.
> More information: <https://github.com/ssleert/nitch#usage->.
- Display system information (hostname, kernel, uptime, etc.):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# nsnake
> Snake game in the terminal.
> More information: <https://github.com/alexdantas/nsnake/>.
> More information: <https://github.com/alexdantas/nsnake/#controls>.
- Start a snake game:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> An AUR helper and pacman wrapper.
> See also: `pacman`, `yay`.
> More information: <https://github.com/Morganamilo/paru>.
> More information: <https://github.com/Morganamilo/paru#examples>.
- Interactively search for and install a package:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Archive file manager.
> Various archive formats can be created, extracted, tested, listed, searched, repacked, and compared.
> More information: <https://github.com/wummel/patool>.
> More information: <https://github.com/wummel/patool/blob/master/doc/patool.txt>.
- Extract an archive:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Manage packages across Yay, Flatpak, and Snap.
> Supports searching, installing, removing, and upgrading packages.
> More information: <https://github.com/zamhedonia/paxs>.
> More information: <https://github.com/zamhedonia/paxs#usage>.
- Search for a package:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# playerctl
> Control media players via MPRIS.
> More information: <https://github.com/altdesktop/playerctl>.
> More information: <https://github.com/altdesktop/playerctl#using-the-cli>.
- Toggle play:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Display Pokémon sprites in color directly in your terminal.
> Inspired by Phoney badger's `pokemon-colorscripts` but offers enhanced speed and efficiency.
> More information: <https://github.com/rubiin/pokego>.
> More information: <https://github.com/rubiin/pokego#usage>.
- Print a specific Pokémon:
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print a specific shiny Pokémon:
`pokego --name spheal -shiny`
`pokego --name spheal {{[-s|-shiny]}}`
- Print an alternative form of a Pokémon:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pridecat
> Like cat but more colorful.
> More information: <https://github.com/lunasorcery/pridecat>.
> More information: <https://github.com/lunasorcery/pridecat#flags>.
- Print the contents of a file in pride colors to `stdout`:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# qrcp
> A file transfer tool.
> More information: <https://github.com/claudiodangelis/qrcp>.
> More information: <https://github.com/claudiodangelis/qrcp#usage>.
- Send a file or directories:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Move a running process to a new terminal.
> Best used when you forget to start a long running task in `screen`.
> More information: <https://github.com/nelhage/reptyr>.
> More information: <https://github.com/nelhage/reptyr#usage>.
- Move a running process to your current terminal:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# rtorrent
> Download torrents.
> More information: <https://github.com/rakshasa/rtorrent>.
> More information: <https://github.com/rakshasa/rtorrent/wiki/User-Guide#adding-and-removing-torrents>.
- Add a torrent file or magnet to be downloaded:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# slop
> Get a selection of the screen.
> More information: <https://github.com/naelstrof/slop>.
> More information: <https://manned.org/slop>.
- Wait for the user to make a selection and output its geometry to `stdout`:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Efficient animated wallpaper daemon for Wayland.
> See also: `swww-daemon`.
> More information: <https://github.com/LGFae/swww>.
> More information: <https://github.com/LGFae/swww#usage>.
- Set wallpaper:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# timeshift
> System restore utility.
> More information: <https://github.com/linuxmint/timeshift>.
> More information: <https://manned.org/timeshift>.
- List snapshots:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Yet Another Yogurt: build and install packages from the Arch User Repository.
> See also: `pacman`.
> More information: <https://github.com/Jguer/yay>.
> More information: <https://github.com/Jguer/yay#first-use>.
- Interactively search and install packages from the repos and AUR:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ydotool
> Control keyboard and mouse inputs via commands in a way that is display server agnostic.
> More information: <https://github.com/ReimuNotMoe/ydotool>.
> More information: <https://github.com/ReimuNotMoe/ydotool#usage>.
- Start the ydotool daemon in the background:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# yetris
> Clone of the game Tetris in the terminal.
> More information: <https://github.com/alexdantas/yetris>.
> More information: <https://github.com/alexdantas/yetris#controls>.
- Start a Tetris game:

View File

@@ -9,14 +9,34 @@ source: https://github.com/tldr-pages/tldr.git
> Some subcommands such as `req` have their own usage documentation.
> More information: <https://docs.openssl.org/master/man1/openssl/>.
- Generate a private key and encrypt the output file using AES256:
`openssl genpkey -algorithm {{rsa|ec}} -out {{private.key}} -aes256`
- Generate the corresponding public key from private key `private.key` using `rsa`:
`openssl rsa -in {{private.key}} -pubout -out {{public.key}}`
- Generate a self-signed certificate valid for a specified number of days (`365`):
`openssl req -new -x509 -key {{private.key}} -out {{certificate.crt}} -days {{365}}`
- Convert certificate to `pem` or `der` format:
`openssl x509 -in {{certificate.crt}} -out {{certificate.pem|certificate.der}} -outform {{pem|der}}`
- Check certificate details:
`openssl x509 -in {{certificate.crt}} -text -noout`
- Generate a certificate signing request (CSR):
`openssl req -new -key {{private.key}} -out {{request.csr}}`
- Display help:
`openssl help`
- Display help for a specific subcommand:
`openssl help {{x509}}`
- Display version:
`openssl version`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# bclm
> Set a custom charge limit on MacBooks.
> More information: <https://github.com/zackelia/bclm>.
> More information: <https://github.com/zackelia/bclm#usage>.
- Set the charge limit to about 80% (for Intel machines, the battery charge level may be slightly lower than the set value):

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# mysides
> Add, list and remove finder favorites.
> More information: <https://github.com/mosen/mysides>.
> More information: <https://github.com/mosen/mysides#usage>.
- List sidebar favorites:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# spotify
> A command-line interface to Spotify.
> More information: <https://github.com/hnarayanan/shpotify>.
> More information: <https://github.com/hnarayanan/shpotify#usage>.
- Find a song by name and play it:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tag
> Edit tags on Mac OS X files (10.9 Mavericks and above).
> More information: <https://github.com/jdberry/tag/>.
> More information: <https://github.com/jdberry/tag/#usage>.
- Add tags to a file:

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> Download, install and manage multiple Xcode versions.
> See also: `xcodes runtimes`.
> More information: <https://github.com/xcodesorg/xcodes>.
> More information: <https://github.com/xcodesorg/xcodes#commands>.
- List all installed Xcode versions:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xcodes runtimes
> Manage Xcode Simulator runtimes.
> More information: <https://github.com/xcodesorg/xcodes>.
> More information: <https://github.com/xcodesorg/xcodes#commands>.
- Display all available Simulator runtimes:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# xctool
> Build Xcode projects.
> More information: <https://github.com/facebookarchive/xctool>.
> More information: <https://github.com/facebookarchive/xctool#usage>.
- Build a single project without any workspace:

42
tldr/putty Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# putty
> SSH, Telnet, and Rlogin client for connecting to remote servers.
> Note: On Linux, the native `ssh` client is often more convenient. PuTTY is more commonly used on Windows.
> More information: <https://the.earth.li/~sgtatham/putty/latest/htmldoc/Chapter3.html#using-cmdline>.
- Connect to a remote host via SSH:
`putty -ssh {{username}}@{{hostname_or_ip}}`
- Connect to a remote host on a specific [P]ort:
`putty -ssh {{username}}@{{hostname_or_ip}} -P {{port}}`
- Load a saved session:
`putty -load {{session_name}}`
- Connect with a private key for authentication:
`putty -ssh {{username}}@{{hostname_or_ip}} -i {{path/to/private_key.ppk}}`
- Connect via Telnet:
`putty -telnet {{hostname_or_ip}}`
- Enable [X]11 forwarding:
`putty -ssh {{username}}@{{hostname_or_ip}} -X`
- Set up [L]ocal port forwarding:
`putty -ssh {{username}}@{{hostname_or_ip}} -L {{local_port}}:{{destination_host}}:{{destination_port}}`
- Display help:
`putty -help`

17
tldr/scdoc Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# scdoc
> Generate `man` manual pages.
> More information: <https://git.sr.ht/~sircmpwn/scdoc/tree/master/item/scdoc.1.scd>.
- Generate man pages from a scdoc (`.scd`) file:
`scdoc < {{path/to/file.scd}} > {{path/to/file.1}}`
- Generate man pages from a scdoc file and display the generated troff (man) source:
`scdoc < {{path/to/file.scd}} | {{less}}`

View File

@@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git
> A utility and a library for HTTP load testing.
> See also: `ab`.
> More information: <https://github.com/tsenart/vegeta>.
> More information: <https://github.com/tsenart/vegeta#usage-manual>.
- Launch an attack lasting 30 seconds: