diff --git a/tldr/add-computer.py b/tldr/add-computer.py new file mode 100644 index 00000000..720466ef --- /dev/null +++ b/tldr/add-computer.py @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# addcomputer.py + +> Add a computer account to domain. +> More information: . + +- Add a computer with a specific name and password: + +`addcomputer.py -computer-name {{COMPUTER_NAME$}} -computer-pass {{computer_password}} {{domain}}/{{username}}:{{password}}` + +- Only set a new password on an existing computer: + +`addcomputer.py -no-add -computer-name {{COMPUTER_NAME$}} -computer-pass {{computer_password}} {{domain}}/{{username}}:{{password}}` + +- Delete an existing computer account: + +`addcomputer.py -delete -computer-name {{COMPUTER_NAME$}} {{domain}}/{{username}}:{{password}}` + +- Add computer using Kerberos authentication: + +`addcomputer.py -k -no-pass {{domain}}/{{username}}@{{hostname}}` + +- Add computer via LDAPS (port 636) instead of SAMR (port 445): + +`addcomputer.py -method LDAPS -port 636 {{domain}}/{{username}}:{{password}}` + +- Specify exact domain controller when multiple DCs exist: + +`addcomputer.py -dc-host {{hostname}} {{domain}}/{{username}}:{{password}}` diff --git a/tldr/bun-create b/tldr/bun-create index 2bd94ef6..c5a0c0ef 100644 --- a/tldr/bun-create +++ b/tldr/bun-create @@ -27,12 +27,12 @@ source: https://github.com/tldr-pages/tldr.git - Create a new project, overwriting the destination directory if it exists: -`bun create {{template}} {{path/to/destination} --force` +`bun create {{template}} {{path/to/destination}} --force` - Create a new project without initializing a Git repository automatically: -`bun create {{template}} {{path/to/destination} --no-git` +`bun create {{template}} {{path/to/destination}} --no-git` - Create a new project without installing dependencies automatically: -`bun create {{template}} {{path/to/destination} --no-install` +`bun create {{template}} {{path/to/destination}} --no-install` diff --git a/tldr/bun-pm b/tldr/bun-pm new file mode 100644 index 00000000..a9f7654d --- /dev/null +++ b/tldr/bun-pm @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# bun pm + +> A set of utilities for working with Bun's package manager. +> Some subcommands such as `pack`, `pkg` have their own usage documentation. +> More information: . + +- Create a tarball of the current workspace: + +`bun pm pack` + +- Print the path to the `bin` directory: + +`bun pm bin` + +- List installed dependencies: + +`bun pm ls` + +- Print the npm registry username: + +`bun pm whoami` + +- Generate and print the hash of the current lockfile: + +`bun pm hash` + +- Print the path to Bun's global module cache: + +`bun pm cache` + +- Migrate another package manager's lockfile without installing anything: + +`bun pm migrate` + +- Get a property from `package.json`: + +`bun pm pkg get {{property}}` diff --git a/tldr/conda-package b/tldr/conda-package index 46adb178..430f72bf 100644 --- a/tldr/conda-package +++ b/tldr/conda-package @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Remove all untracked files: -`conda package {{[-r|--reset}}` +`conda package {{[-r|--reset]}}` - Display all untracked files: diff --git a/tldr/crane-registry b/tldr/crane-registry index 8d424682..21fba5a2 100644 --- a/tldr/crane-registry +++ b/tldr/crane-registry @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # crane registry -> This command serves a registry implementation on an automatically chosen port (:0), `$PORT` or --address. +> This command serves a registry implementation on an automatically chosen port (`:0`), `$PORT` or `--address`. > The command blocks while the server accepts pushes and pulls and contents are can be stored in memory, and disk. > More information: . diff --git a/tldr/figlet b/tldr/figlet index 71e557ab..1952a9b3 100644 --- a/tldr/figlet +++ b/tldr/figlet @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Generate ASCII banners from user input. > See also: `showfigfonts`. -> More information: . +> More information: . - Generate by directly inputting text: diff --git a/tldr/gcloud-components b/tldr/gcloud-components new file mode 100644 index 00000000..9c75a384 --- /dev/null +++ b/tldr/gcloud-components @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# gcloud components + +> Manage Google Cloud CLI components. +> See also: `gcloud`. +> More information: . + +- View available components for installation: + +`gcloud components list` + +- Install one or more components (installs any dependencies as well): + +`gcloud components install {{component_id1 component_id2 ...}}` + +- Update all components to the latest version: + +`gcloud components update` + +- Update all components to a specific version: + +`gcloud components update --version={{1.2.3}}` + +- Update components without confirmation (useful for automation scripts): + +`gcloud components update --quiet` diff --git a/tldr/gitk b/tldr/gitk index 7616f4a3..401f4d65 100644 --- a/tldr/gitk +++ b/tldr/gitk @@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git - Show commits made since 1 week ago: -`gitk --since="{{1 week ago}}"` +`gitk --since="1 week ago"` -- Show commits older than 1/1/2016: +- Show commits older than 1/1/2015: -`gitk --until="{{1/1/2015}}"` +`gitk --until="1/1/2015"` - Show at most 100 changes in all branches: diff --git a/tldr/impacket-addcomputer b/tldr/impacket-addcomputer new file mode 100644 index 00000000..f5b69cf3 --- /dev/null +++ b/tldr/impacket-addcomputer @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# impacket-addcomputer + +> This command is an alias of `addcomputer.py`. + +- View documentation for the original command: + +`tldr addcomputer.py` diff --git a/tldr/linux/goldeneye.py b/tldr/linux/goldeneye.py index 303d637d..95373bf2 100644 --- a/tldr/linux/goldeneye.py +++ b/tldr/linux/goldeneye.py @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Test a specific website in debug mode: -`{{path/to/}}goldeneye.py {{url}} {{-d|--debug}}` +`{{path/to/}}goldeneye.py {{url}} {{[-d|--debug]}}` - Display help: diff --git a/tldr/linux/hyprpaper b/tldr/linux/hyprpaper new file mode 100644 index 00000000..5b97b409 --- /dev/null +++ b/tldr/linux/hyprpaper @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# hyprpaper + +> Wallpaper utility for Hyprland with the ability to dynamically change wallpapers. +> Controlled by the config file `~/.config/hypr/hyprpaper.conf`. +> More information: . + +- Start the hyprpaper service: + +`hyprpaper` + +- Preload a wallpaper: + +`hyprctl hyprpaper preload "{{path/to/image.png}}"` + +- Switch wallpaper to a different preloaded image: + +`hyprctl hyprpaper wallpaper "{{monitor}},{{path/to/image.png}}"` + +- Preload a wallpaper, set that wallpaper, then unload all unused wallpapers: + +`hyprctl hyprpaper reload "{{monitor}},{{path/to/image.png}}"` + +- List the wallpapers that are currently preloaded (useful for dynamically preloading and unloading): + +`hyprctl hyprpaper listloaded` + +- List the active wallpapers hyprpaper is displaying, along with their associated monitor: + +`hyprctl hyprpaper listactive` diff --git a/tldr/linux/koji-buildinfo b/tldr/linux/koji-buildinfo index 9f10a736..ac801885 100644 --- a/tldr/linux/koji-buildinfo +++ b/tldr/linux/koji-buildinfo @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Display help: -`koji buildinfo {{-h|--help}}` +`koji buildinfo {{[-h|--help]}}` diff --git a/tldr/linux/lxc-start b/tldr/linux/lxc-start index 349e8a43..2c2386ed 100644 --- a/tldr/linux/lxc-start +++ b/tldr/linux/lxc-start @@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git `sudo lxc-stop {{container_name}}` +- Write debug logs to a file: + +`sudo lxc-start {{container_name}} {{[-l|--logpriority]}} DEBUG {{[-o|--logfile]}} {{path/to/logfile}}` + - Display help: `lxc-start {{[-?|--help]}}` diff --git a/tldr/linux/mount b/tldr/linux/mount index bc2d8e57..e14665e6 100644 --- a/tldr/linux/mount +++ b/tldr/linux/mount @@ -32,9 +32,9 @@ source: https://github.com/tldr-pages/tldr.git `mount {{[-a|--all]}}` -- Mount a specific filesystem described in `/etc/fstab` (e.g. `/dev/sda1 /my_drive ext2 defaults 0 2`): +- Mount a specific filesystem described in `/etc/fstab` (e.g. `/dev/sda1 /path/to/mount_point ext2 defaults 0 2`): -`mount {{/my_drive}}` +`mount {{path/to/mount_point}}` - Mount a directory to another directory: diff --git a/tldr/linux/pacman-files b/tldr/linux/pacman-files index 227e1f73..38635227 100644 --- a/tldr/linux/pacman-files +++ b/tldr/linux/pacman-files @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # pacman --files -> Arch Linux package manager utility. +> Query the local files database. > See also: `pacman`, `pkgfile`. > More information: . diff --git a/tldr/linux/pacman-query b/tldr/linux/pacman-query index e55fd026..f8410eda 100644 --- a/tldr/linux/pacman-query +++ b/tldr/linux/pacman-query @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # pacman --query -> Arch Linux package manager utility. +> Query the local package database. > See also: `pacman`. > More information: . diff --git a/tldr/linux/pacman-remove b/tldr/linux/pacman-remove index d06109e0..c45a5a1c 100644 --- a/tldr/linux/pacman-remove +++ b/tldr/linux/pacman-remove @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # pacman --remove -> Arch Linux package manager utility. +> Remove packages from the system. > See also: `pacman`. > More information: . diff --git a/tldr/linux/pacman-sync b/tldr/linux/pacman-sync index 49219672..d1d75513 100644 --- a/tldr/linux/pacman-sync +++ b/tldr/linux/pacman-sync @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # pacman --sync -> Arch Linux package manager utility. +> Synchronize packages from remote repositories. > See also: `pacman`. > More information: . diff --git a/tldr/linux/pacman-upgrade b/tldr/linux/pacman-upgrade index ad5f5b23..89f2c24f 100644 --- a/tldr/linux/pacman-upgrade +++ b/tldr/linux/pacman-upgrade @@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git --- # pacman --upgrade -> Arch Linux package manager utility. +> Install packages manually from archive files. > See also: `pacman`. > More information: . diff --git a/tldr/linux/pveum b/tldr/linux/pveum index 99abbbcd..fc9e60a0 100644 --- a/tldr/linux/pveum +++ b/tldr/linux/pveum @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Change user password: -`pveum {{[pa|passwd]}} {{[username}}@pve` +`pveum {{[pa|passwd]}} {{username}}@pve` - Delete a user: diff --git a/tldr/linux/rpmconf b/tldr/linux/rpmconf index 6283e577..bf12e620 100644 --- a/tldr/linux/rpmconf +++ b/tldr/linux/rpmconf @@ -7,7 +7,7 @@ source: https://github.com/tldr-pages/tldr.git > Handle RPMNEW, RPMSAVE and RPMORIG files left over by package upgrades. > See also: `rpm`. -> More information: . +> More information: . - List leftover files and interactively choose what to do with each of them: diff --git a/tldr/linux/rtmon b/tldr/linux/rtmon index cd7a7afe..309a9152 100644 --- a/tldr/linux/rtmon +++ b/tldr/linux/rtmon @@ -14,4 +14,4 @@ source: https://github.com/tldr-pages/tldr.git - Specify the type of change to log: -`sudo rtmon {{[f|file}} {{link|address|route}}` +`sudo rtmon {{[f|file]}} {{link|address|route}}` diff --git a/tldr/linux/scrot b/tldr/linux/scrot index 7e27d458..b750654f 100644 --- a/tldr/linux/scrot +++ b/tldr/linux/scrot @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # scrot > Screen capture utility. -> More information: . +> More information: . - Capture a screenshot and save it to the current directory with the current date as the filename: @@ -14,24 +14,24 @@ source: https://github.com/tldr-pages/tldr.git - Capture a screenshot and save it as `capture.png`: -`scrot {{capture.png}}` +`scrot capture.png` - Capture a screenshot interactively: -`scrot --select` +`scrot {{[-s|--select]}}` - Capture a screenshot interactively without exiting on keyboard input, press `` to exit: -`scrot --select --ignorekeyboard` +`scrot {{[-is|--ignorekeyboard --select]}}` - Capture a screenshot interactively delimiting the region with a colored line: -`scrot --select --line color={{x11_color|rgb_color}}` +`scrot {{[-s|--select]}} {{[-l|--line]}} color={{x11_color|rgb_color}}` - Capture a screenshot from the currently focused window: -`scrot --focused` +`scrot {{[-u|--focused]}}` - Display a countdown of 10 seconds before taking a screenshot: -`scrot --count --delay {{10}}` +`scrot {{[-c|--count]}} {{[-d|--delay]}} 10` diff --git a/tldr/linux/xdotool b/tldr/linux/xdotool index 76318612..ebbc5c54 100644 --- a/tldr/linux/xdotool +++ b/tldr/linux/xdotool @@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git - Retrieve the X-Windows window ID of the running Firefox window(s): -`xdotool search --onlyvisible --name {{firefox}}` +`xdotool search --onlyvisible --name firefox` - Perform a mouse ``: -`xdotool click {{3}}` +`xdotool click 3` - Get the ID of the currently active window: `xdotool getactivewindow` -- Focus on the window with ID of 12345: +- Focus on the window with a specific ID: `xdotool windowfocus --sync {{12345}}` - Type a message, with a 500ms delay for each letter: -`xdotool type --delay {{500}} "Hello world"` +`xdotool type --delay 500 "{{Hello world}}"` - Press the `` key: -`xdotool key {{KP_Enter}}` +`xdotool key KP_Enter` diff --git a/tldr/poetry-search b/tldr/poetry-search new file mode 100644 index 00000000..5e79326e --- /dev/null +++ b/tldr/poetry-search @@ -0,0 +1,18 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# poetry search + +> Search for packages on a remote index. +> Note: PyPI no longer supports searching via the command-line, so this command may fail on the default repository. +> More information: . + +- Search for a package: + +`poetry search {{package_name}}` + +- Search for multiple packages: + +`poetry search {{package1 package2 ...}}` diff --git a/tldr/setopt b/tldr/setopt new file mode 100644 index 00000000..04a59fa9 --- /dev/null +++ b/tldr/setopt @@ -0,0 +1,23 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# setopt + +> Set Z shell (`zsh`) options. +> Note: Zsh options are case-insensitive and underscores are ignored. +> See also: `unsetopt` to unset options. +> More information: . + +- List enabled options: + +`setopt` + +- Set an option: + +`setopt {{option}}` + +- Display all available options and their status: + +`set -o` diff --git a/tldr/steamcmd b/tldr/steamcmd index eacb70d5..1f3b90f9 100644 --- a/tldr/steamcmd +++ b/tldr/steamcmd @@ -16,10 +16,18 @@ source: https://github.com/tldr-pages/tldr.git `steamcmd +login {{username}} +app_update {{appid}} +quit` +- Define a custom install location: + +`steamcmd +force_install_dir {{path/to/directory}} +login {{anonymous}} +app_update {{appid}} validate +quit` + - Install an application for a specific platform: `steamcmd +@sSteamCmdForcePlatformType {{windows}} +login {{anonymous}} +app_update {{appid}} validate +quit` +- Run a script file: + +`steamcmd +runscript {{script.txt}}` + - Clear cached login credentials for a user: `steamcmd +login {{username}} +logout +quit`