Skip to content

Commit

Permalink
Merge branch 'main' into nnn
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-agrl committed Jul 7, 2024
2 parents 485ec5b + fcca78b commit be56113
Show file tree
Hide file tree
Showing 15 changed files with 259 additions and 17 deletions.
33 changes: 33 additions & 0 deletions pages.es/common/cypher-shell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# cypher-shell

> Abre una sesión interactiva y ejecuta consultas Cypher contra una instancia Neo4j.
> Vea también: `neo4j-admin`, `mysql`.
> Más información: <https://neo4j.com/docs/operations-manual/current/tools/cypher-shell/>.
- Conéctate a una instancia local en el puerto por defecto (`neo4j://localhost:7687`):

`cypher-shell`

- Conéctate a una instancia remota:

`cypher-shell --address neo4j://{{host}}:{{puerto}}`

- Conéctate y proporciona credenciales de seguridad:

`cypher-shell --username {{nombre_de_usuario}} --password {{contraseña}}`

- Conéctate a una base de datos específica:

`cypher-shell --database {{nombre_base_de_datos}}`

- Ejecuta sentencias Cypher en un archivo y lo cierra:

`cypher-shell --file {{ruta/al/archivo.cypher}}`

- Activa el registro en un archivo:

`cypher-shell --log {{ruta/al/archivo.log}}`

- Muestra ayuda:

`cypher-shell --help`
32 changes: 32 additions & 0 deletions pages.es/common/wafw00f.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# wafw00f

> Identifica y toma las huellas digitales de los productos Web Application Firewall (WAF) que protegen un sitio web.
> Más información: <https://github.com/EnableSecurity/wafw00f>.
- Comprueba si un sitio web utiliza algún WAF:

`wafw00f {{https://www.ejemplo.com}}`

- Comprueba a todos los WAF detectables sin detenerse en la primera coincidencia:

`wafw00f --findall {{https://www.ejemplo.com}}`

- Pasa peticiones a través de un [p]roxy (como BurpSuite):

`wafw00f --proxy {{http://localhost:8080}} {{https://www.ejemplo.com}}`

- [t]estea un producto WAF específico (ejecuta `wafw00f -l` para obtener una lista de todos los WAF compatibles):

`wafw00f --test {{Cloudflare|Cloudfront|Fastly|ZScaler|...}} {{https://www.ejemplo.com}}`

- Pasa cabeceras personalizadas desde un archivo:

`wafw00f --headers {{ruta/a/cabeceras.txt}} {{https://www.ejemplo.com}}`

- Lee entradas de destino desde un archivo y muestra una salida detallada (múltiples `v` para más verbosidad):

`wafw00f --input {{ruta/a/urls.txt}} -v{{v}}`

- [l]ista todos los WAF que pueden detectarse:

`wafw00f --list`
21 changes: 21 additions & 0 deletions pages.es/linux/portageq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# portageq

> Consulta información sobre Portage, el gestor de paquetes de Gentoo Linux.
> Las variables de entorno específicas de Portage que se pueden consultar están listadas en `/var/db/repos/gentoo/profiles/info_vars`.
> Más información: <https://wiki.gentoo.org/wiki/Portageq>.
- Muestra el valor de una variable de entorno específica de Portage:

`portageq envvar {{variable}}`

- Muestra una lista detallada de los repositorios configurados con Portage:

`portageq repos_config /`

- Muestra una lista de repositorios ordenados por prioridad (el más alto, primero):

`portageq get_repos /`

- Muestra un fragmento específico de metadatos sobre un átomo (por ejemplo, el nombre del paquete incluyendo la versión):

`portageq metadata / {{ebuild|porttree|binary|...}} {{categoría}}/{{paquete}} {{BDEPEND|DEFINED_PHASES|DEPEND|...}}`
22 changes: 19 additions & 3 deletions pages.es/linux/poweroff.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
# poweroff

> Apaga la máquina.
> Apaga el sistema.
> Más información: <https://www.manned.org/poweroff>.
- Apaga la máquina:
- Apaga el sistema:

`sudo poweroff`
`poweroff`

- Detén el sistema (igual que `halt`):

`poweroff --halt`

- Reinicia el sistema (igual que `reboot`):

`poweroff --reboot`

- Apaga inmediatamente el sistema sin contactar al administrador:

`poweroff --force --force`

- Escribe una entrada en el archivo wtmp sin apagar el sistema:

`poweroff --wtmp-only`
5 changes: 1 addition & 4 deletions pages.nl/common/who.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# who

> Toon wie er is ingelogd en gerelateerde gegevens (processen, opstarttijd).
> Bekijk ook: `whoami`.
> Meer informatie: <https://www.gnu.org/software/coreutils/who>.
- Toon de gebruikersnaam, line en tijd van alle huidige ingelogde sessies:

`who`

- Toon informatie alleen voor de huidige terminalsessie:

`who am i`

- Toon alle beschikbare informatie:

`who -a`
Expand Down
17 changes: 17 additions & 0 deletions pages.zh/common/aircrack-ng.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# aircrack-ng

> 破解捕获数据包中的握手时段的 WEP 和 WPA/WPA2 密钥。
> 是 Aircrack-ng 网络软件套件的一部分。
> 更多信息: <https://www.aircrack-ng.org/doku.php?id=aircrack-ng>.
- 使用字典文件破解捕获文件中的密钥:

`aircrack-ng -w {{路径/到/字典文件.txt}} {{路径/到/捕获文件.cap}}`

- 使用字典文件和接入点的 ESSID 破解捕获文件中的密钥:

`aircrack-ng -w {{路径/到/字典文件.txt}} -e {{essid}} {{路径/到/捕获文件.cap}}`

- 使用字典文件和接入点的 MAC 地址破解捕获文件中的密钥:

`aircrack-ng -w {{路径/到/字典文件.txt}} --bssid {{mac}} {{路径/到/捕获文件.cap}}`
7 changes: 2 additions & 5 deletions pages.zh/common/who.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# who

> 显示当前登录用户和相关信息(进程,启动时间)。
> 更多信息:<https://www.gnu.org/software/coreutils/who>.
> 参见: `whoami`
> 更多信息:<https://www.gnu.org/software/coreutils/who>
- 显示用户名,终端线路,和所有当前登录会话的时间:

`who`

- 仅显示当前终端会话信息:

`who am i`

- 显示所有可用信息:

`who -a`
Expand Down
10 changes: 9 additions & 1 deletion pages/common/id.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@

`id`

- Display the current user identity:

`id -un`

- Display the current user identity as a number:

`id -u`

- Display the current group identity as a number:
- Display the current primary group identity:

`id -gn`

- Display the current primary group identity as a number:

`id -g`

Expand Down
30 changes: 30 additions & 0 deletions pages/common/kubectl-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# kubectl config

> Manage Kubernetes configuration (kubeconfig) files for accessing clusters via `kubectl` or the Kubernetes API.
> By default, the Kubernetes will get its configuration from `${HOME}/.kube/config`.
> See also: `kubectx`, `kubens`.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#config>.
- Get all contexts in the default kubeconfig file:

`kubectl config get-contexts`

- Get all clusters/contexts/users in a custom kubeconfig file:

`kubectl config {{get-clusters|get-contexts|get-users}} --kubeconfig {{path/to/kubeconfig.yaml}}`

- Get the current context:

`kubectl config current-context`

- Switch to another context:

`kubectl config {{use|use-context}} {{context_name}}`

- Delete clusters/contexts/users:

`kubectl config {{delete-cluster|delete-context|delete-user}} {{cluster|context|user}}`

- Permanently add custom kubeconfig files:

`export KUBECONFIG="{{$HOME.kube/config:path/to/custom/kubeconfig.yaml}}" kubectl config get-contexts`
16 changes: 16 additions & 0 deletions pages/common/vulkaninfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# vulkaninfo

> Print system Vulkan information.
> More information: <https://vulkan.lunarg.com/doc/view/latest/linux/vulkaninfo.html>.
- Print full Vulkan information:

`vulkaninfo`

- Print a summary:

`vulkaninfo --summary`

- Make a HTML document of the full Vulkan information:

`vulkaninfo --html`
5 changes: 1 addition & 4 deletions pages/common/who.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# who

> Display who is logged in and related data (processes, boot time).
> See also: `whoami`.
> More information: <https://www.gnu.org/software/coreutils/who>.
- Display the username, line, and time of all currently logged-in sessions:

`who`

- Display information only for the current terminal session:

`who am i`

- Display all available information:

`who -a`
Expand Down
16 changes: 16 additions & 0 deletions pages/linux/eselect-locale.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# eselect locale

> An `eselect` module for managing the `LANG` environment variable, which sets the system language.
> More information: <https://wiki.gentoo.org/wiki/Eselect#Locale>.
- List available locales:

`eselect locale list`

- Set the `LANG` environment variable in `/etc/profile.env` by name or index from the `list` command:

`eselect locale set {{name|index}}`

- Display the value of `LANG` in `/etc/profile.env`:

`eselect locale show`
33 changes: 33 additions & 0 deletions pages/linux/eselect-repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# eselect repository

> An `eselect` module for configuring ebuild repositories for Portage.
> After enabling a repository, you have to run `emerge --sync repo_name` to download ebuilds.
> More information: <https://wiki.gentoo.org/wiki/Eselect/Repository>.
- List all ebuild repositories registered on <https://repos.gentoo.org>:

`eselect repository list`

- List enabled repositories:

`eselect repository list -i`

- Enable a repository from the list by its name or index from the `list` command:

`eselect repository enable {{name|index}}`

- Enable an unregistered repository:

`eselect repository add {{name}} {{rsync|git|mercurial|svn|...}} {{sync_uri}}`

- Disable repositories without removing their contents:

`eselect repository disable {{repo1 repo2 ...}}`

- Disable repositories and remove their contents:

`eselect repository remove {{repo1 repo2 ...}}`

- Create a local repository and enable it:

`eselect repository create {{name}} {{path/to/repo}}`
17 changes: 17 additions & 0 deletions pages/linux/eselect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# eselect

> Gentoo's multi-purpose configuration and management tool.
> It consists of various modules that take care of individual administrative tasks.
> More information: <https://wiki.gentoo.org/wiki/Eselect>.
- Display a list of installed modules:

`eselect`

- View documentation for a specific module:

`tldr eselect {{module}}`

- Display a help message for a specific module:

`eselect {{module}} help`
12 changes: 12 additions & 0 deletions pages/linux/systemctl-reboot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# systemctl reboot

> Reboot the system.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#reboot>.
- Reboot the system:

`systemctl reboot`

- Reboot into the BIOS/UEFI menu:

`systemctl reboot --firmware-setup`

0 comments on commit be56113

Please sign in to comment.