multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:

committed by
GitHub

parent
dc690e38eb
commit
a5fe31bc47
@@ -2,7 +2,7 @@
|
||||
|
||||
> Apache HTTP Server control interface for macOS.
|
||||
|
||||
- Start the org.apache.httpd launchd job:
|
||||
- Start the `org.apache.httpd` launchd job:
|
||||
|
||||
`apachectl start`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Portable GNU assembler.
|
||||
> Primarily intended to assemble output from `gcc` to be used by `ld`.
|
||||
|
||||
- Assemble a file, writing the output to a.out:
|
||||
- Assemble a file, writing the output to `a.out`:
|
||||
|
||||
`as {{file.s}}`
|
||||
|
||||
@@ -15,6 +15,6 @@
|
||||
|
||||
`as -f {{file.s}}`
|
||||
|
||||
- Include a given path to the list of directories to search for files specified in .include directives:
|
||||
- Include a given path to the list of directories to search for files specified in `.include` directives:
|
||||
|
||||
`as -I {{path/to/directory}} {{file.s}}`
|
||||
|
@@ -10,10 +10,10 @@
|
||||
|
||||
`base64 -D -i {{base64_file}}`
|
||||
|
||||
- Encode from `stdin`:
|
||||
- Encode from stdin:
|
||||
|
||||
`echo -n {{plain_text}} | base64`
|
||||
|
||||
- Decode from `stdin`:
|
||||
- Decode from stdin:
|
||||
|
||||
`echo -n {{base64_text}} | base64 -D`
|
||||
|
@@ -11,6 +11,6 @@
|
||||
|
||||
`csshX {{user@hostname1}} {{user@hostname2}} '--ssh_args' '-i {{path/to/ssh_key.pem}}'`
|
||||
|
||||
- Connect to a pre-defined cluster from /etc/clusters:
|
||||
- Connect to a pre-defined cluster from `/etc/clusters`:
|
||||
|
||||
`csshX cluster1`
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Convert and copy a file.
|
||||
|
||||
- Make a bootable usb drive from an isohybrid file (such like archlinux-xxx.iso):
|
||||
- Make a bootable usb drive from an isohybrid file (such like `archlinux-xxx.iso`):
|
||||
|
||||
`dd if={{file.iso}} of=/dev/{{usb_drive}}`
|
||||
|
||||
|
@@ -22,6 +22,6 @@
|
||||
|
||||
`du -h -d {{N}} {{path/to/directory}}`
|
||||
|
||||
- List the human-readable size of all .jpg files in subdirectories of the current directory, and show a cumulative total at the end:
|
||||
- List the human-readable size of all `.jpg` files in subdirectories of the current directory, and show a cumulative total at the end:
|
||||
|
||||
`du -ch */*.jpg`
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`duti -s {{com.apple.Safari}} {{public.html}} all`
|
||||
|
||||
- Set VLC as the default viewer for files with .m4v extensions:
|
||||
- Set VLC as the default viewer for files with `.m4v` extensions:
|
||||
|
||||
`duti -s {{org.videolan.vlc}} {{m4v}} viewer`
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
`logger {{message}}`
|
||||
|
||||
- Take input from `stdin` and log to syslog:
|
||||
- Take input from stdin and log to syslog:
|
||||
|
||||
`echo {{log_entry}} | logger`
|
||||
|
||||
|
@@ -14,7 +14,7 @@
|
||||
|
||||
`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}`
|
||||
|
||||
- Find pattern in files with a .pdf extension in the current directory recursively:
|
||||
- Find pattern in files with a `.pdf` extension in the current directory recursively:
|
||||
|
||||
`pdfgrep --recursive {{pattern}}`
|
||||
|
||||
|
@@ -18,6 +18,6 @@
|
||||
|
||||
`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o {{path/to/new_file.plist}}`
|
||||
|
||||
- Convert a plist file to a different format, writing to `stdout`:
|
||||
- Convert a plist file to a different format, writing to stdout:
|
||||
|
||||
`plutil -convert {{xml1|binary1|json|swift|objc}} {{path/to/file.plist}} -o -`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Manage loaded ssh keys in the ssh-agent.
|
||||
> Ensure that ssh-agent is up and running for the keys to be loaded in it.
|
||||
|
||||
- Add the default ssh keys in "~/.ssh" to the ssh-agent:
|
||||
- Add the default ssh keys in `~/.ssh` to the ssh-agent:
|
||||
|
||||
`ssh-add`
|
||||
|
||||
|
@@ -2,11 +2,11 @@
|
||||
|
||||
> Used to manipulate text files of various formats.
|
||||
|
||||
- Display information about foo.rtf:
|
||||
- Display information about `foo.rtf`:
|
||||
|
||||
`textutil -info {{foo.rtf}}`
|
||||
|
||||
- Convert foo.rtf into foo.html:
|
||||
- Convert `foo.rtf` into `foo.html`:
|
||||
|
||||
`textutil -convert {{html}} {{foo.rtf}}`
|
||||
|
||||
@@ -14,10 +14,10 @@
|
||||
|
||||
`textutil {{foo.rtf}} -convert {{txt}}`
|
||||
|
||||
- Convert foo.txt into foo.rtf, using Times 10 for the font:
|
||||
- Convert `foo.txt` into `foo.rtf`, using Times 10 for the font:
|
||||
|
||||
`textutil -convert {{rtf}} -font {{Times}} -fontsize {{10}} {{foo.txt}}`
|
||||
|
||||
- Load all RTF files in the current directory, concatenates their contents, and writes the result out as index.html with the HTML title set to "Several Files":
|
||||
- Load all RTF files in the current directory, concatenates their contents, and writes the result out as `index.html` with the HTML title set to "Several Files":
|
||||
|
||||
`textutil -cat {{html}} -title "Several Files" -output {{index.html}} *.rtf`
|
||||
|
@@ -14,6 +14,6 @@
|
||||
|
||||
`whereis -s {{gcc}} -m {{git}}`
|
||||
|
||||
- Locate binaries for gcc in /usr/bin/ only:
|
||||
- Locate binaries for gcc in `/usr/bin/` only:
|
||||
|
||||
`whereis -b -B {{/usr/bin/}} -f {{gcc}}`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# yank
|
||||
|
||||
> Read input from `stdin` and display a selection interface that allows a field to be selected and copied to the clipboard.
|
||||
> Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard.
|
||||
|
||||
- Yank using the default delimiters (\f, \n, \r, \s, \t):
|
||||
|
||||
|
Reference in New Issue
Block a user