Skip to content

Commit

Permalink
Merge branch 'main' into jupyterlab-page
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshkanaka authored Dec 28, 2024
2 parents 0ff1bab + 9f3091e commit 5893a52
Show file tree
Hide file tree
Showing 19 changed files with 242 additions and 8 deletions.
32 changes: 32 additions & 0 deletions pages.zh/common/mysql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# mysql

> MySQL 命令行工具。
> 更多信息:<https://www.mysql.com/cn/>.
- 连接数据库:

`mysql {{数据库名}}`

- 连接到数据库,系统将提示用户输入密码:

`mysql -u {{用户名}} --password {{数据库名}}`

- 连接到另一台主机上的数据库:

`mysql -h {{数据库地址}} {{数据库名}}`

- 通过Unix套接字文件连接到数据库:

`mysql --socket {{路径/到/socket.sock}}`

- 执行脚本文件中的SQL语句:

`mysql -e "source {{脚本.sql}}" {{数据库名}}`

-`mysqldump`创建的备份文件中恢复单个数据库(系统将提示用户输入密码):

`mysql --user {{用户名}} --password {{数据库名}} < {{路径/到/备份文件.sql}}`

- 从备份中恢复所有数据库(系统将提示用户输入密码):

`mysql --user {{用户名}} --password < {{路径/到/备份文件.sql}}`
21 changes: 21 additions & 0 deletions pages/common/dbx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# dbx

> Interact with the Databricks platform.
> Note: this tool has been retired and it is recommended to use Databricks Asset Bundles instead.
> More information: <https://dbx.readthedocs.io/en/latest/reference/cli/#dbx>.
- Create a new `dbx` project in the current working directory:

`dbx configure --profile {{DEFAULT}}`

- Sync local files from the specified path to DBFS and watch for changes:

`dbx sync dbfs --source {{path/to/directory}} --dest {{path/to/remote_directory}}`

- Deploy the specified workflow to artifact storage:

`dbx deploy {{workflow_name}}`

- Launch the specified workflow after deploying it:

`dbx launch {{workflow_name}}`
8 changes: 8 additions & 0 deletions pages/common/ppmtoapplevol.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# ppmtoapplevol

> Convert a PPM image into an Apple volume label image.
> More information: <https://netpbm.sourceforge.net/doc/ppmtoapplevol.html>.
- Convert a PPM image into an Apple volume label image:

`ppmtoapplevol {{path/to/image.ppm}} > {{path/to/output}}`
20 changes: 20 additions & 0 deletions pages/common/ppmtopjxl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ppmtopjxl

> Convert a PPM image into an HP PaintJet XL PCL file.
> More information: <https://netpbm.sourceforge.net/doc/ppmtopjxl.html>.
- Convert a PPM image into an PJXL file:

`ppmtopjxl {{path/to/image.ppm}} > {{path/to/output.pjxl}}`

- Resize the input image:

`ppmtopjxl -xsize {{10cm}} -ysize {{5cm}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`

- Shift the input image:

`ppmtopjxl -xshift {{10pt}} -yshift {{5pt}} {{path/to/image.ppm}} > {{path/to/output.pjxl}}`

- Do not use the normal TIFF 4.0 compression method:

`ppmtopjxl -nopack {{path/to/image.ppm}} > {{path/to/output.pjxl}}`
9 changes: 9 additions & 0 deletions pages/common/ppmtorgb3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ppmtorgb3

> Separate the color components of a PPM file into three separate PGM files.
> See also: `rgb3toppm`.
> More information: <https://netpbm.sourceforge.net/doc/ppmtorgb3.html>.
- Separate the color components of a PPM file, saving the outputs to `file.red`, `file.grn` and `file.blu`:

`ppmtorgb3 {{path/to/file.ppm}}`
16 changes: 16 additions & 0 deletions pages/common/ppmwheel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ppmwheel

> Generate a PPM image of a color wheel.
> More information: <https://netpbm.sourceforge.net/doc/ppmwheel.html>.
- Generate a color wheel of type `Ppmcirc`:

`ppmwheel {{diameter}} > {{path/to/output.ppm}}`

- Generate a color wheel of type `Hue-value`:

`ppmwheel -huevalue {{diameter}} > {{path/to/output.ppm}}`

- Generate a color wheel of type `Hue-saturation`:

`ppmwheel -huesaturation {{diameter}} > {{path/to/output.ppm}}`
9 changes: 9 additions & 0 deletions pages/common/rgb3toppm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# rgb3toppm

> Combine three PGM images into one PPM image.
> See also: `ppmtorgb3`.
> More information: <https://netpbm.sourceforge.net/doc/rgb3toppm.html>.
- Combine three PGM images (representing red, green and blue color components) into one PPM image:

`rgb3toppm {{path/to/red_file.ppm}} {{path/to/green_file.ppm}} {{path/to/blue_file.ppm}} > {{path/to/output.ppm}}`
8 changes: 8 additions & 0 deletions pages/common/rlatopam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# rlatopam

> Convert Alias/Wavefront RLA and RPF image files to Netpbm format.
> More information: <https://netpbm.sourceforge.net/doc/rlatopam.html>.
- Convert the specified SPOT image to PGM format:

`rlatopam {{path/to/file}} > {{path/to/output.pam}}`
16 changes: 16 additions & 0 deletions pages/common/spottopgm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# spottopgm

> Convert a SPOT satellite image to PGM format.
> More information: <https://netpbm.sourceforge.net/doc/spottopgm.html>.
- Convert the specified SPOT image to PGM format:

`spottopgm {{path/to/file.spot}} > {{path/to/output.pgm}}`

- Extract the specified color channel:

`spottopgm -{{1|2|3}} {{path/to/file.spot}} > {{path/to/output.pgm}}`

- Extract the specified rectangle from the input image:

`spottopgm {{first_col first_row last_col last_row}} {{path/to/file.spot}} > {{path/to/output.pgm}}`
16 changes: 16 additions & 0 deletions pages/linux/fadvise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# fadvise

> Control Linux file caching behavior.
> More information: <https://manned.org/fadvise>.
- Preload a file into cache:

`fadvise {{-a|--advice}} willneed {{path/to/file}}`

- Suggest dropping a file from cache:

`fadvise {{path/to/file}}`

- Display help:

`fadvise --help`
12 changes: 12 additions & 0 deletions pages/linux/fincore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# fincore

> Display how much cache memory a file is taking.
> More information: <https://manned.org/fincore>.
- Display cache details for a file:

`fincore {{path/to/file}}`

- Display all possible data columns:

`fincore --output-all {{path/to/file}}`
32 changes: 32 additions & 0 deletions pages/linux/fwconsole.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# fwconsole

> Manage and configure your FreePBX system (PBX server).
> More information: <https://sangomakb.atlassian.net/wiki/spaces/PG/pages/41779247/fwconsole+commands+13>.
- Reload FreePBX configurations:

`fwconsole reload`

- Start Asterisk and other commands needed by FreePBX:

`fwconsole start`

- Stop Asterisk and other commands needed by FreePBX:

`fwconsole stop`

- View and update settings:

`fwconsole setting {{keyword}} {{new_value}}`

- List available backups:

`fwconsole backup --list`

- List available FreePBX commands:

`fwconsole list`

- Change ownership of all files and directories that FreePBX needs to be owned by the apache user:

`fwconsole chown`
7 changes: 7 additions & 0 deletions pages/linux/i386.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# i386

> This command is an alias of `setarch i386`.
- View documentation for the original command:

`tldr setarch`
7 changes: 7 additions & 0 deletions pages/linux/linux32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# linux32

> This command is an alias of `setarch linux32`.
- View documentation for the original command:

`tldr setarch`
7 changes: 7 additions & 0 deletions pages/linux/linux64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# linux64

> This command is an alias of `setarch linux64`.
- View documentation for the original command:

`tldr setarch`
File renamed without changes.
16 changes: 8 additions & 8 deletions pages/linux/pacman.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://manned.org/pacman.8>.
- Synchronize and update all packages:
- [S]ynchronize and update all packages:

`sudo pacman -Syu`

- Install a new package:

`sudo pacman -S {{package}}`

- Remove a package and its dependencies:
- [R]emove a package and its dependencies:

`sudo pacman -Rs {{package}}`

- Search the database for packages containing a specific file:
- Search ([s]) the package database for a regular expression or keyword:

`pacman -F "{{file_name}}"`
`pacman -Ss "{{search_pattern}}"`

- List installed packages and versions:
- Search the database for packages containing a specific [F]ile:

`pacman -Q`
`pacman -F "{{file_name}}"`

- List only the explicitly installed packages and versions:
- List only the [e]xplicitly installed packages and versions:

`pacman -Qe`

- List orphan packages (installed as dependencies but not actually required by any package):
- List orphan packages (installed as [d]ependencies but not actually required by any package):

`pacman -Qtdq`

Expand Down
7 changes: 7 additions & 0 deletions pages/linux/uname26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# uname26

> This command is an alias of `setarch uname26`.
- View documentation for the original command:

`tldr setarch`
7 changes: 7 additions & 0 deletions pages/linux/x86_64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# x86_64

> This command is an alias of `setarch x86_64`.
- View documentation for the original command:

`tldr setarch`

0 comments on commit 5893a52

Please sign in to comment.