mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/dropuser
Normal file
29
tldr/dropuser
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# dropuser
|
||||
|
||||
> Remove an existing PostgreSQL user (role).
|
||||
> More information: <https://www.postgresql.org/docs/current/app-dropuser.html>.
|
||||
|
||||
- Prompt for confirmation and the username before user removal:
|
||||
|
||||
`dropuser {{[-i|--interactive]}}`
|
||||
|
||||
- Remove user instantly:
|
||||
|
||||
`dropuser {{username}}`
|
||||
|
||||
- No error if the user to be removed doesn't exist:
|
||||
|
||||
`dropuser --if-exists {{username}}`
|
||||
|
||||
- Remove a user on the server with address 127.0.0.1 on port 4321:
|
||||
|
||||
`dropuser {{[-h|--host]}} 127.0.0.1 {{[-p|--port]}} 4321 {{username}}`
|
||||
|
||||
- Remove a user on the server with address 127.0.0.1 on port 4321 as user "admin" :
|
||||
|
||||
`dropuser {{[-U|--username]}} admin {{[-h|--host]}} 127.0.0.1 {{[-p|--port]}} 4321 {{username}}`
|
||||
17
tldr/linux/systemctl-emergency
Normal file
17
tldr/linux/systemctl-emergency
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl emergency
|
||||
|
||||
> Enter emergency mode `emergency.target`.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#emergency>.
|
||||
|
||||
- Enter emergency mode:
|
||||
|
||||
`systemctl emergency`
|
||||
|
||||
- Enter emergency mode without blocking (return immediately):
|
||||
|
||||
`systemctl emergency --no-block`
|
||||
21
tldr/linux/systemctl-exit
Normal file
21
tldr/linux/systemctl-exit
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# systemctl exit
|
||||
|
||||
> Ask the service manager to quit.
|
||||
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#exit%20EXIT_CODE>.
|
||||
|
||||
- Exit the user service manager:
|
||||
|
||||
`systemctl --user exit`
|
||||
|
||||
- Exit the user service manager with a specific exit code:
|
||||
|
||||
`systemctl --user exit {{code}}`
|
||||
|
||||
- Ask the container’s service manager to exit (equivalent of `systemctl poweroff` if not in a container):
|
||||
|
||||
`systemctl exit`
|
||||
@@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run an existing VM with a specific mounted directory:
|
||||
|
||||
`tart run --dir={{path/to/directory}}:/{{path/to/local_directory}} {{vm-name}}`
|
||||
`tart run --dir {{path/to/directory}}:/{{path/to/local_directory}} {{vm-name}}`
|
||||
|
||||
- List VMs:
|
||||
|
||||
|
||||
@@ -23,19 +23,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open in application mode (without toolbars, URL bar, buttons, etc.):
|
||||
|
||||
`chromium --app={{https://example.com}}`
|
||||
`chromium --app {{https://example.com}}`
|
||||
|
||||
- Use a proxy server:
|
||||
|
||||
`chromium --proxy-server="{{socks5://hostname:66}}" {{example.com}}`
|
||||
`chromium --proxy-server "{{socks5://hostname:66}}" {{example.com}}`
|
||||
|
||||
- Open with a custom profile directory:
|
||||
|
||||
`chromium --user-data-dir={{path/to/directory}}`
|
||||
`chromium --user-data-dir {{path/to/directory}}`
|
||||
|
||||
- Open without CORS validation (useful to test an API):
|
||||
|
||||
`chromium --user-data-dir={{path/to/directory}} --disable-web-security`
|
||||
`chromium --user-data-dir {{path/to/directory}} --disable-web-security`
|
||||
|
||||
- Open with a DevTools window for each tab opened:
|
||||
|
||||
|
||||
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a package:
|
||||
|
||||
`octo pack --id={{package}}`
|
||||
`octo pack --id {{package}}`
|
||||
|
||||
- Push a package to a repository on the Octopus server:
|
||||
|
||||
`octo push --package={{package}}`
|
||||
`octo push --package {{package}}`
|
||||
|
||||
- Create a release:
|
||||
|
||||
`octo create-release --project={{project_name}} --packageversion={{version}}`
|
||||
`octo create-release --project {{project_name}} --packageversion {{version}}`
|
||||
|
||||
- Deploy a release:
|
||||
|
||||
`octo deploy-release --project={{project_name}} --packageversion={{version}} --deployto={{environment_name}} --tenant={{deployment_target}}`
|
||||
`octo deploy-release --project {{project_name}} --packageversion {{version}} --deployto {{environment_name}} --tenant {{deployment_target}}`
|
||||
|
||||
Reference in New Issue
Block a user