-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jupyterlab-page
- Loading branch information
Showing
19 changed files
with
242 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |