*: normalize colons (#7913)

This commit is contained in:
Seth Falco
2022-03-27 07:25:15 +02:00
committed by GitHub
parent f63fedd585
commit 27ff55fc2e
88 changed files with 144 additions and 144 deletions

View File

@@ -7,15 +7,15 @@
`2to3 {{文件.py}}`
- 将 Python 2 文件转化为 Python 3:
- 将 Python 2 文件转化为 Python 3
`2to3 --write {{文件.py}}`
- 将 Python 2 语言特性转化为 Python 3:
- 将 Python 2 语言特性转化为 Python 3
`2to3 --write {{文件.py}} --fix={{raw_input}} --fix={{print}}`
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3:
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3
`2to3 --write {{文件.py}} --nofix={{has_key}} --nofix={{isinstance}}`
@@ -23,10 +23,10 @@
`2to3 --list-fixes`
- 将某一文件夹的所有 Python 2 文件转化为 Python 3:
- 将某一文件夹的所有 Python 2 文件转化为 Python 3
`2to3 --output-dir={{Python 3 文件夹}} --write-unchanged-files --nobackups {{Python 2 文件夹}}`
- 使用多线程运行 2to3:
- 使用多线程运行 2to3
`2to3 --processes={{4}} --output-dir={{Python 3 文件夹}} --write --nobackups --no-diff {{Python 2 文件夹}}`

View File

@@ -7,15 +7,15 @@
`act -l`
- 运行默认 event:
- 运行默认 event
`act`
- 运行指定 event:
- 运行指定 event
`act {{事件类型}}`
- 运行指定 action:
- 运行指定 action
`act -a {{action_id}}`

View File

@@ -3,7 +3,7 @@
> 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。
> 更多信息:<https://developer.android.com/studio/command-line/adb>.
- 向模拟器/设备推送安卓 app:
- 向模拟器/设备推送安卓 app
`adb install {{路径/到/应用.apk}}`

View File

@@ -7,7 +7,7 @@
`adb reverse --list`
- 将 TCP 端口从安卓模拟器或设备中映射到 localhost:
- 将 TCP 端口从安卓模拟器或设备中映射到 localhost
`adb reverse tcp:{{远程端口}} tcp:{{本地端口}}`

View File

@@ -12,11 +12,11 @@
`adb kill-server`
- 在目标模拟器 / 设备实例上开启一个远程 shell:
- 在目标模拟器 / 设备实例上开启一个远程 shell
`adb shell`
- 将 Android 应用程序推送到模拟器 / 设备 :
- 将 Android 应用程序推送到模拟器 / 设备
`adb install -r {{路径/到/应用.apk}}`

View File

@@ -3,11 +3,11 @@
> 一款全网广告拦截与反跟踪软件。
> 更多信息:<https://github.com/AdguardTeam/AdGuardHome>.
- 运行 AdGuard Home:
- 运行 AdGuard Home
`AdGuardHome`
- 使用给定的配置文件运行 AdGuard Home:
- 使用给定的配置文件运行 AdGuard Home
`AdGuardHome --config {{给定的/配置文件.yaml}}`

View File

@@ -19,7 +19,7 @@
`ag -i -o {{ABC}}`
- 在文件名包含"小红"的文件中寻找"小明":
- 在文件名包含"小红"的文件中寻找"小明"
`ag {{小明}} -G {{小红}}`

View File

@@ -24,6 +24,6 @@
`alias {{rm}}="{{rm -i}}"`
- 创建别名`la`来指代`ls -a`:
- 创建别名 `la` 来指代 `ls -a`
`alias {{la}}="{{ls -a}}"`

View File

@@ -7,7 +7,7 @@
`apg`
- 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L):
- 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L)
`apg -M SNCL`

View File

@@ -4,7 +4,7 @@
> 参见 `atom`.
> 更多信息:<https://github.com/atom/apm>.
- 下载包http://atom.io/packages 和主题 http://atom.io/themes:
- 下载包http://atom.io/packages 和主题 http://atom.io/themes
`apm install {{包名}}`

View File

@@ -31,6 +31,6 @@
`asciinema cat {{文件路径}}.cast`
- 从本地上传一个录屏到 asciinema.org:
- 从本地上传一个录屏到 asciinema.org
`asciinema upload {{文件路径}}.cast`

View File

@@ -20,6 +20,6 @@
`atom --safe`
- 在终端前台运行 Atom:
- 在终端前台运行 Atom
`atom --foreground`

View File

@@ -3,11 +3,11 @@
> 一个工具,用于检查 Python 代码中未被使用的引入和变量。
> 更多信息:<https://github.com/myint/autoflake>.
- 移除指定文件中未使用的变量,并展示 diff:
- 移除指定文件中未使用的变量,并展示 diff
`autoflake --remove-unused-variables {{文件.py}}`
- 移除多个文件中未使用的引入,并展示 diffs:
- 移除多个文件中未使用的引入,并展示 diffs
`autoflake --remove-all-unused-imports {{文件1.py}} {{文件2.py}} {{文件3.py}}`

View File

@@ -4,7 +4,7 @@
> 兼容`sh`的命令行解释器。
> 更多信息:<https://gnu.org/software/bash/>.
- 启动交互式 shell:
- 启动交互式 shell
`bash`

View File

@@ -24,10 +24,10 @@
`bower help {{指令}}`
- 创建你的项目的 `bower.json`:
- 创建你的项目的 `bower.json`
`bower init`
- 安装时候指定依赖的版本号,并添加到 `bower.json`:
- 安装时候指定依赖的版本号,并添加到 `bower.json`
`bower install {{local_name}}={{package}}#{{version}} --save`

View File

@@ -10,7 +10,7 @@
`mas install {{应用名}} {{应用 ID}}`
- 显示所有已安装的应用程序及其应用 ID:
- 显示所有已安装的应用程序及其应用 ID
`mas list`

View File

@@ -3,7 +3,7 @@
> Visual Studio Code.
> 更多信息:<https://github.com/microsoft/vscode>.
- 打开 VS Code:
- 打开 VS Code
`code`
@@ -23,6 +23,6 @@
`code -d {{文件1}} {{文件2}}`
- 用超级用户sudo权限打开 VS Code:
- 用超级用户sudo权限打开 VS Code
`sudo code {{路径/文件或目录}} --user-data-dir`

View File

@@ -4,7 +4,7 @@
> 此命令也有关于其子命令的文件,例如:`docker run`.
> 更多信息:<https://docs.docker.com/engine/reference/commandline/cli/>.
- 列出目前正在运行的 docker 容器:
- 列出目前正在运行的 docker 容器
`docker ps`
@@ -24,7 +24,7 @@
`docker pull {{镜像}}`
- 从正在运行的容器内打开一个 shell:
- 从正在运行的容器内打开一个 shell
`docker exec -it {{容器名称}} {{sh}}`

View File

@@ -15,6 +15,6 @@
`etcd --name {{my_etcd_cluster}}`
- 启动单节点 etcd 集群,同时可以在这里看到大量监控指标 http://localhost:2379/debug/pprof/:
- 启动单节点 etcd 集群,同时可以在这里看到大量监控指标 http://localhost:2379/debug/pprof/
`etcd --enable-pprof --metrics extensive`

View File

@@ -3,7 +3,7 @@
> 在当前 shell 中以单个命令的形式执行参数,并返回其结果。
> 更多信息:<https://manned.org/eval>.
- 使用 'foo' 做为参数调用 `echo`:
- 使用 'foo' 做为参数调用 `echo`
`eval "{{echo foo}}"`

View File

@@ -3,7 +3,7 @@
> 轻量级图像查看工具。
> 更多信息:<https://feh.finalrewind.org>.
- 查看本地图像或使用 URL:
- 查看本地图像或使用 URL
`feh {{图片路径}}`

View File

@@ -3,22 +3,22 @@
> 在命令行上使用 GitHub Gists.
> 更多信息:<https://cli.github.com/manual/gh_gist>.
- 从一个以空格分隔的文件列表中创建一个新的 Gist:
- 从一个以空格分隔的文件列表中创建一个新的 Gist
`gh gist create {{路径/文件}}`
- 创建一个带有描述的新 Gist:
- 创建一个带有描述的新 Gist
`gh gist create {{文件名}} --desc "{{描述}}"`
- 编辑一个 Gist:
- 编辑一个 Gist
`gh gist edit {{id_或_url}}`
- 列出当前登录用户所拥有的 Gist:
- 列出当前登录用户所拥有的 Gist
`gh gist list --limit {{int}}`
- 在默认浏览器中查看 Gist且不渲染 Markdown:
- 在默认浏览器中查看 Gist且不渲染 Markdown
`gh gist view {{id_或_url}} --web --raw`

View File

@@ -3,7 +3,7 @@
> 使用`GPG`加密存档中的文件和目录。
> 更多信息:<https://www.gnupg.org/documentation/manuals/gnupg/gpg_002dzip.html>.
- 使用密码将一个目录加密为`archive.gpg`:
- 使用密码将一个目录加密为`archive.gpg`
`gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}`

View File

@@ -8,7 +8,7 @@
`gpg2 --list-keys`
- 为指定的接收者加密指定的文件,将输出结果写到一个新的文件中,并附加`.gpg`:
- 为指定的接收者加密指定的文件,将输出结果写到一个新的文件中,并附加 `.gpg`
`gpg2 --encrypt --recipient {{alice@example.com}} {{path/to/doc.txt}}`

View File

@@ -7,11 +7,11 @@
`logger {{消息内容}}`
- 从 stdin 获取输入并记录到系统日志 syslog:
- 从 stdin 获取输入并记录到系统日志 syslog
`echo {{记录内容}} | logger`
- 将输出发送到在给定端口上运行的远程系统日志服务器。默认端口为 514:
- 将输出发送到在给定端口上运行的远程系统日志服务器。默认端口为 514
`echo {{记录内容}} | logger -h {{服务器名}} -P {{端口}}`

View File

@@ -7,6 +7,6 @@
`runit`
- 停止运行 runit:
- 停止运行 runit
`kill --CONT {{runit 进程 id}}`

View File

@@ -16,6 +16,6 @@
`trap 'echo "检测到信号 {{SIGHUP}}"' {{SIGHUP}}`
- 移除活动 trap:
- 移除活动 trap
`trap - {{SIGHUP}} {{SIGINT}}`

View File

@@ -11,6 +11,6 @@
`write {{testuser}} {{tty/5}}`
- 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息 :
- 向伪终端 "/dev/pts/5" 上的用户 "johndoe" 发送信息
`write {{johndoe}} {{pts/5}}`