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
@@ -4,7 +4,7 @@
|
||||
> It helps you find gender favouring, polarising, race related, religion inconsiderate, or other unequal phrasing in text.
|
||||
> More information: <https://github.com/get-alex/alex>.
|
||||
|
||||
- Analyze text from `stdin`:
|
||||
- Analyze text from stdin:
|
||||
|
||||
`echo {{His network looks good}} | alex --stdin`
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# ansible
|
||||
|
||||
> Manage groups of computers remotely over SSH.
|
||||
> Use the /etc/ansible/hosts file to add new groups/hosts.
|
||||
> Use the `/etc/ansible/hosts` file to add new groups/hosts.
|
||||
> More information: <https://www.ansible.com/>.
|
||||
|
||||
- List hosts belonging to a group:
|
||||
|
@@ -7,9 +7,9 @@
|
||||
|
||||
`awk '{print $5}' {{filename}}`
|
||||
|
||||
- Print the second column of the lines containing "something" in a space-separated file:
|
||||
- Print the second column of the lines containing "foo" in a space-separated file:
|
||||
|
||||
`awk '/{{something}}/ {print $2}' {{filename}}`
|
||||
`awk '/{{foo}}/ {print $2}' {{filename}}`
|
||||
|
||||
- Print the last column of each line in a file, using a comma (instead of space) as a field separator:
|
||||
|
||||
|
@@ -15,6 +15,6 @@
|
||||
|
||||
`b2sum -c {{filename.b2}}`
|
||||
|
||||
- Calculate the BLAKE2 checksum from `stdin`:
|
||||
- Calculate the BLAKE2 checksum from stdin:
|
||||
|
||||
`{{somecommand}} | b2sum`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.
|
||||
> More information: <https://babeljs.io/>.
|
||||
|
||||
- Transpile a specified input file and output to `stdout`:
|
||||
- Transpile a specified input file and output to stdout:
|
||||
|
||||
`babel {{path/to/file}}`
|
||||
|
||||
|
@@ -10,6 +10,6 @@
|
||||
|
||||
`banner -w {{50}} "{{Hello World}}"`
|
||||
|
||||
- Read text from `stdin`:
|
||||
- Read text from stdin:
|
||||
|
||||
`banner`
|
||||
|
@@ -10,10 +10,10 @@
|
||||
|
||||
`base32 -d {{filename}}`
|
||||
|
||||
- Encode from `stdin`:
|
||||
- Encode from stdin:
|
||||
|
||||
`{{somecommand}} | base32`
|
||||
|
||||
- Decode from `stdin`:
|
||||
- Decode from stdin:
|
||||
|
||||
`{{somecommand}} | base32 -d`
|
||||
|
@@ -10,10 +10,10 @@
|
||||
|
||||
`base64 -d {{filename}}`
|
||||
|
||||
- Encode from `stdin`:
|
||||
- Encode from stdin:
|
||||
|
||||
`{{somecommand}} | base64`
|
||||
|
||||
- Decode from `stdin`:
|
||||
- Decode from stdin:
|
||||
|
||||
`{{somecommand}} | base64 -d`
|
||||
|
@@ -24,7 +24,7 @@
|
||||
|
||||
`bash -e {{file.sh}}`
|
||||
|
||||
- Run commands from `stdin`:
|
||||
- Run commands from stdin:
|
||||
|
||||
`bash -s`
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
> Used to intersect, group, convert and count data in BAM, BED, GFF/GTF, VCF format.
|
||||
> More information: <https://bedtools.readthedocs.io/en/latest/>.
|
||||
|
||||
- Intersect two files with respect to the sequences' strand and save the result to {{path/to/output_file}}:
|
||||
- Intersect two files with respect to the sequences' strand and save the result to {{`path/to/output_file`}}:
|
||||
|
||||
`bedtools intersect -a {{path/to/file_1}} -b {{path/to/file_2}} -s > {{path/to/output_file}}`
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
`bedtools intersect -a {{path/to/file_1}} -b {{path/to/file_2}} -sorted > {{path/to/output_file}}`
|
||||
|
||||
- Group file {{path/to/file}} based on the first three and the fifth column and summarize the sixth column by summing it up:
|
||||
- Group file {{`path/to/file`}} based on the first three and the fifth column and summarize the sixth column by summing it up:
|
||||
|
||||
`bedtools groupby -i {{path/to/file}} -c 1-3,5 -g 6 -o sum`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`boot repl`
|
||||
|
||||
- Build a single "uberjar":
|
||||
- Build a single `uberjar`:
|
||||
|
||||
`boot jar`
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
`borg list {{path/to/repo_directory}}`
|
||||
|
||||
- Extract a specific directory from the "Monday" archive in a remote repository, excluding all *.ext files:
|
||||
- Extract a specific directory from the "Monday" archive in a remote repository, excluding all `*.ext` files:
|
||||
|
||||
`borg extract {{user}}@{{host}}:{{path/to/repo_directory}}::{{Monday}} {{path/to/target_directory}} --exclude '{{*.ext}}'`
|
||||
|
||||
|
@@ -24,10 +24,10 @@
|
||||
|
||||
`bower help {{command}}`
|
||||
|
||||
- Create a bower.json file for your package:
|
||||
- Create a `bower.json` file for your package:
|
||||
|
||||
`bower init`
|
||||
|
||||
- Install a specific dependency version, and add it to bower.json:
|
||||
- Install a specific dependency version, and add it to `bower.json`:
|
||||
|
||||
`bower install {{local_name}}={{package}}#{{version}} --save`
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`clamscan -r {{path/to/directory}}`
|
||||
|
||||
- Scan data from `stdin`:
|
||||
- Scan data from stdin:
|
||||
|
||||
`{{command}} | clamscan -`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Tool to auto-format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.
|
||||
> More information: <https://clang.llvm.org/docs/ClangFormat.html>.
|
||||
|
||||
- Format a file and print the result to `stdout`:
|
||||
- Format a file and print the result to stdout:
|
||||
|
||||
`clang-format {{path/to/file}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`cloc --diff {{path/to/directory/one}} {{path/to/directory/two}}`
|
||||
|
||||
- Ignore files that are ignored by VCS, such as files specified in .gitignore:
|
||||
- Ignore files that are ignored by VCS, such as files specified in `.gitignore`:
|
||||
|
||||
`cloc --vcs git {{path/to/directory}}`
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
`comm -12 {{file1}} {{file2}}`
|
||||
|
||||
- Print only lines common to both files, reading one file from `stdin`:
|
||||
- Print only lines common to both files, reading one file from stdin:
|
||||
|
||||
`cat {{file1}} | comm -12 - {{file2}}`
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Command forces the shell to execute the program and ignore any functions, builtins and aliases with the same name.
|
||||
|
||||
- Execute the ls program literally, even if an ls alias exists:
|
||||
- Execute the `ls` program literally, even if an `ls` alias exists:
|
||||
|
||||
`command {{ls}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> The open source, decentralized and multi-platform package manager to create and share all your native binaries.
|
||||
> More information: <https://conan.io/>.
|
||||
|
||||
- Install packages based on conanfile.txt:
|
||||
- Install packages based on `conanfile.txt`:
|
||||
|
||||
`conan install {{.}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`cpdf -list-bookmarks {{path/to/document.pdf}}`
|
||||
|
||||
- Split a document into ten-page chunks, writing them to chunk001.pdf, chunk002.pdf, etc:
|
||||
- Split a document into ten-page chunks, writing them to `chunk001.pdf`, `chunk002.pdf`, etc:
|
||||
|
||||
`cpdf -split {{path/to/document.pdf}} -o {{path/to/chunk%%%.pdf}} -chunk {{10}}`
|
||||
|
||||
|
@@ -7,11 +7,11 @@
|
||||
|
||||
`cppclean {{path/to/project}}`
|
||||
|
||||
- Run on a project where the headers are in the "inc1/" and "inc2/" directories:
|
||||
- Run on a project where the headers are in the `inc1/` and `inc2/` directories:
|
||||
|
||||
`cppclean {{path/to/project}} --include-path={{inc1}} --include-path={{inc2}}`
|
||||
|
||||
- Run on a specific file "main.cpp":
|
||||
- Run on a specific file `main.cpp`:
|
||||
|
||||
`cppclean {{main.cpp}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`csc /out:{{path/to/filename}} {{path/to/input_file.cs}}`
|
||||
|
||||
- Compile into a '.dll' library instead of an executable:
|
||||
- Compile into a `.dll` library instead of an executable:
|
||||
|
||||
`csc /target:library {{path/to/input_file.cs}}`
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
# cut
|
||||
|
||||
> Cut out fields from `stdin` or files.
|
||||
> Cut out fields from stdin or files.
|
||||
|
||||
- Cut out the first sixteen characters of each line of `stdin`:
|
||||
- Cut out the first sixteen characters of each line of stdin:
|
||||
|
||||
`cut -c {{1-16}}`
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Convert and copy a file.
|
||||
|
||||
- Make a bootable usb drive from an isohybrid file (such like archlinux-xxx.iso) and show the progress:
|
||||
- Make a bootable usb drive from an isohybrid file (such like `archlinux-xxx.iso`) and show the progress:
|
||||
|
||||
`dd if={{file.iso}} of=/dev/{{usb_drive}} status=progress`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`decaffeinate --use-cs2 {{path/to/file.coffee}}`
|
||||
|
||||
- Convert require and module.exports to import and export:
|
||||
- Convert require and `module.exports` to import and export:
|
||||
|
||||
`decaffeinate --use-js-modules {{path/to/file.coffee}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`diffoscope --no-progress {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare two files and write a HTML-report to a file (use `-` for `stdout`):
|
||||
- Compare two files and write a HTML-report to a file (use `-` for stdout):
|
||||
|
||||
`diffoscope --html {{path/to/outfile|-}} {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Shell extension to load and unload environment variables depending on the current directory.
|
||||
> More information: <https://github.com/direnv/direnv>.
|
||||
|
||||
- Grant direnv permission to load the specified .envrc:
|
||||
- Grant direnv permission to load the specified `.envrc`:
|
||||
|
||||
`direnv allow`
|
||||
|
||||
- Revoke the authorization of a given .envrc:
|
||||
- Revoke the authorization of a given `.envrc`:
|
||||
|
||||
`direnv deny`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`docker exec --interactive -tty --workdir {{path/to/directory}} {{container_name}} {{command}}`
|
||||
|
||||
- Run a command in background on existing container but keep `stdin` open:
|
||||
- Run a command in background on existing container but keep stdin open:
|
||||
|
||||
`docker exec --interactive --detach {{container_name}} {{command}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Export one or more docker images to archive.
|
||||
> More information: <https://docs.docker.com/engine/reference/commandline/save/>.
|
||||
|
||||
- Save an image by redirecting `stdout` to a tar archive:
|
||||
- Save an image by redirecting stdout to a tar archive:
|
||||
|
||||
`docker save {{image}}:{{tag}} > {{path/to/file.tar}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`docker start {{container}}`
|
||||
|
||||
- Start a container, attaching `stdout` and `stderr` and forwarding signals:
|
||||
- Start a container, attaching stdout and stderr and forwarding signals:
|
||||
|
||||
`docker start --attach {{container}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> A documentation system for various programming languages.
|
||||
> More information: <http://www.doxygen.nl>.
|
||||
|
||||
- Generate a default template configuration file "Doxyfile":
|
||||
- Generate a default template configuration file `Doxyfile`:
|
||||
|
||||
`doxygen -g`
|
||||
|
||||
|
@@ -22,6 +22,6 @@
|
||||
|
||||
`du -h --max-depth=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`
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`elm repl`
|
||||
|
||||
- Compile an Elm file, output the result to an index.html file:
|
||||
- Compile an Elm file, output the result to an `index.html` file:
|
||||
|
||||
`elm make {{source}}`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Substitutes environment variables with their value in shell format strings.
|
||||
> Variables to be replaced should be in either `${var}` or `$var` format.
|
||||
|
||||
- Replace environment variables in `stdin` and output to `stdout`:
|
||||
- Replace environment variables in stdin and output to stdout:
|
||||
|
||||
`echo '{{$HOME}}' | envsubst`
|
||||
|
||||
- Replace environment variables in an input file and output to `stdout`:
|
||||
- Replace environment variables in an input file and output to stdout:
|
||||
|
||||
`envsubst < {{path/to/input_file}}`
|
||||
|
||||
|
@@ -6,6 +6,6 @@
|
||||
|
||||
`factor {{number}}`
|
||||
|
||||
- Take the input from `stdin` if no argument is specified:
|
||||
- Take the input from stdin if no argument is specified:
|
||||
|
||||
`echo {{number}} | factor`
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`ffmpeg -i {{video.mpg|video.gif}} {{frame_%d.png}}`
|
||||
|
||||
- Combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF:
|
||||
- Combine numbered images (`frame_1.jpg`, `frame_2.jpg`, etc) into a video or GIF:
|
||||
|
||||
`ffmpeg -i {{frame_%d.jpg}} -f image2 {{video.mpg|video.gif}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`fswebcam -r {{width}}x{{height}} {{filename}}`
|
||||
|
||||
- Take a picture from selected device(Default is /dev/video0):
|
||||
- Take a picture from selected device(Default is `/dev/video0`):
|
||||
|
||||
`fswebcam -d {{device}} {{filename}}`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`gibo list`
|
||||
|
||||
- Write a boilerplate to `stdout`:
|
||||
- Write a boilerplate to stdout:
|
||||
|
||||
`gibo dump {{boilerplate}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`gist -p -d "{{A meaningful description}}" {{file.txt}} `
|
||||
|
||||
- Read contents from `stdin` and create a gist from it:
|
||||
- Read contents from stdin and create a gist from it:
|
||||
|
||||
`{{echo "hello world"}} | gist`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`git check-ignore {{path/to/file}} {{path/to/directory}}`
|
||||
|
||||
- Use pathnames, one per line, from `stdin`:
|
||||
- Use pathnames, one per line, from stdin:
|
||||
|
||||
`git check-ignore --stdin < {{path/to/file_list}}`
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
`git commit-tree {{tree}} -m "{{message}}"`
|
||||
|
||||
- Create a commit object reading the message from a file (use `-` for `stdin`):
|
||||
- Create a commit object reading the message from a file (use `-` for stdin):
|
||||
|
||||
`git commit-tree {{tree}} -F {{path/to/file}}`
|
||||
|
||||
|
@@ -4,14 +4,14 @@
|
||||
> See also `git am`, which can apply generated .patch files.
|
||||
> More information: <https://git-scm.com/docs/git-format-patch>.
|
||||
|
||||
- Create an auto-named .patch file for all the unpushed commits:
|
||||
- Create an auto-named `.patch` file for all the unpushed commits:
|
||||
|
||||
`git format-patch {{origin}}`
|
||||
|
||||
- Write a .patch file for all the commits between 2 revisions to `stdout`:
|
||||
- Write a `.patch` file for all the commits between 2 revisions to stdout:
|
||||
|
||||
`git format-patch {{revision_1}}..{{revision_2}}`
|
||||
|
||||
- Write a .patch file for the 3 latest commits:
|
||||
- Write a `.patch` file for the 3 latest commits:
|
||||
|
||||
`git format-patch -{{3}}`
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
`git prune --dry-run`
|
||||
|
||||
- Prune unreachable objects and display what has been pruned to `stdout`:
|
||||
- Prune unreachable objects and display what has been pruned to stdout:
|
||||
|
||||
`git prune --verbose`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Analyze nginx configuration files.
|
||||
> More information: <https://github.com/yandex/gixy>.
|
||||
|
||||
- Analyze nginx configuration (default path: /etc/nginx/nginx.conf):
|
||||
- Analyze nginx configuration (default path: `/etc/nginx/nginx.conf`):
|
||||
|
||||
`gixy`
|
||||
|
||||
|
@@ -3,18 +3,18 @@
|
||||
> Compiles resource files (e.g. images) into a binary resource bundle.
|
||||
> These may be linked into GTK applications using the GResource API.
|
||||
|
||||
- Compile resources referenced in "file.gresource.xml" to a .gresource binary:
|
||||
- Compile resources referenced in `file.gresource.xml` to a .gresource binary:
|
||||
|
||||
`glib-compile-resources {{file.gresource.xml}}`
|
||||
|
||||
- Compile resources referenced in "file.gresource.xml" to a C source file:
|
||||
- Compile resources referenced in `file.gresource.xml` to a C source file:
|
||||
|
||||
`glib-compile-resources --generate-source {{file.gresource.xml}}`
|
||||
|
||||
- Compile resources in "file.gresource.xml" to a chosen target file, with .c, .h or .gresource extension:
|
||||
- Compile resources in `file.gresource.xml` to a chosen target file, with `.c`, `.h` or `.gresource` extension:
|
||||
|
||||
`glib-compile-resources --generate --target={{file.ext}} {{file.gresource.xml}}`
|
||||
|
||||
- Print a list of resource files referenced in "file.gresource.xml":
|
||||
- Print a list of resource files referenced in `file.gresource.xml`:
|
||||
|
||||
`glib-compile-resources --generate-dependencies {{file.gresource.xml}}`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Utility to annotate console logging statements with timestamps and find slow processes.
|
||||
> More information: <https://github.com/paypal/gnomon>.
|
||||
|
||||
- Use UNIX (or DOS) pipes to pipe the `stdout` of any command through gnomon:
|
||||
- Use UNIX (or DOS) pipes to pipe the stdout of any command through gnomon:
|
||||
|
||||
`{{npm test}} | gnomon`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`godoc {{fmt}} {{Printf}}`
|
||||
|
||||
- Serve documentation as a web server on port "6060":
|
||||
- Serve documentation as a web server on port 6060:
|
||||
|
||||
`godoc -http=:{{6060}}`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Live reload utility for Go programs.
|
||||
> More information: <https://github.com/acoshift/goreload>.
|
||||
|
||||
- Set the name of the binary file to watch (defaults to ".goreload"):
|
||||
- Set the name of the binary file to watch (defaults to `.goreload`):
|
||||
|
||||
`goreload -b {{path/to/binary}} {{file}}.go`
|
||||
|
||||
- Set a custom log prefix (defaults to "goreload"):
|
||||
- Set a custom log prefix (defaults to `goreload`):
|
||||
|
||||
`goreload --logPrefix {{prefix}} {{file}}.go`
|
||||
|
||||
|
@@ -2,14 +2,14 @@
|
||||
|
||||
> Encrypt files and directories in an archive using GPG.
|
||||
|
||||
- Encrypt a directory into archive.gpg using a passphrase:
|
||||
- Encrypt a directory into `archive.gpg` using a passphrase:
|
||||
|
||||
`gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}`
|
||||
|
||||
- Decrypt archive.gpg into a directory of the same name:
|
||||
- Decrypt `archive.gpg` into a directory of the same name:
|
||||
|
||||
`gpg-zip --decrypt {{path/to/archive.gpg}}`
|
||||
|
||||
- List the contents of the encrypted archive.gpg:
|
||||
- List the contents of the encrypted `archive.gpg`:
|
||||
|
||||
`gpg-zip --list-archive {{path/to/archive.gpg}}`
|
||||
|
@@ -4,19 +4,19 @@
|
||||
> See `gpg2` for GNU Privacy Guard 2.
|
||||
> More information: <https://gnupg.org>.
|
||||
|
||||
- Sign doc.txt without encryption (writes output to doc.txt.asc):
|
||||
- Sign `doc.txt` without encryption (writes output to `doc.txt.asc`):
|
||||
|
||||
`gpg --clearsign {{doc.txt}}`
|
||||
|
||||
- Encrypt doc.txt for alice@example.com (output to doc.txt.gpg):
|
||||
- Encrypt `doc.txt` for alice@example.com (output to `doc.txt.gpg`):
|
||||
|
||||
`gpg --encrypt --recipient {{alice@example.com}} {{doc.txt}}`
|
||||
|
||||
- Encrypt doc.txt with only a passphrase (output to doc.txt.gpg):
|
||||
- Encrypt `doc.txt` with only a passphrase (output to `doc.txt.gpg`):
|
||||
|
||||
`gpg --symmetric {{doc.txt}}`
|
||||
|
||||
- Decrypt doc.txt.gpg (output to `stdout`):
|
||||
- Decrypt `doc.txt.gpg` (output to stdout):
|
||||
|
||||
`gpg --decrypt {{doc.txt.gpg}}`
|
||||
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
`gpg --import {{public.gpg}}`
|
||||
|
||||
- Export public key for alice@example.com (output to `stdout`):
|
||||
- Export public key for alice@example.com (output to stdout):
|
||||
|
||||
`gpg --export --armor {{alice@example.com}}`
|
||||
|
||||
- Export private key for alice@example.com (output to `stdout`):
|
||||
- Export private key for alice@example.com (output to stdout):
|
||||
|
||||
`gpg --export-secret-keys --armor {{alice@example.com}}`
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`help2man {{executable}} --section {{section}}`
|
||||
|
||||
- Output to a file instead of `stdout`:
|
||||
- Output to a file instead of stdout:
|
||||
|
||||
`help2man {{executable}} --output {{path/to/file}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`hg clone --branch {{branch}} {{remote_repository_source}}`
|
||||
|
||||
- Clone a repository with only the ".hg" directory, without checking out files:
|
||||
- Clone a repository with only the `.hg` directory, without checking out files:
|
||||
|
||||
`hg clone --noupdate {{remote_repository_source}}`
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# hostess
|
||||
|
||||
> An idempotent command-line utility for managing your /etc/hosts file.
|
||||
> An idempotent command-line utility for managing the `/etc/hosts` file.
|
||||
> More information: <https://github.com/cbednarski/hostess>.
|
||||
|
||||
- List domains, target ips and on/off status:
|
||||
|
@@ -27,6 +27,6 @@
|
||||
|
||||
`http -a {{username:password}} {{example.org}}`
|
||||
|
||||
- Specify raw request body via `stdin`:
|
||||
- Specify raw request body via stdin:
|
||||
|
||||
`cat {{data.txt}} | http PUT {{example.org}}`
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Converts text from one encoding to another.
|
||||
|
||||
- Convert file to a specific encoding, and print to `stdout`:
|
||||
- Convert file to a specific encoding, and print to stdout:
|
||||
|
||||
`iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}`
|
||||
|
||||
|
@@ -3,6 +3,6 @@
|
||||
> Create a PostgreSQL database on disk.
|
||||
> More information: <https://www.postgresql.org/docs/9.5/app-initdb.html>.
|
||||
|
||||
- Create a database at /usr/local/var/postgres:
|
||||
- Create a database at `/usr/local/var/postgres`:
|
||||
|
||||
`initdb -D /usr/local/var/postgres`
|
||||
|
@@ -3,15 +3,15 @@
|
||||
> Java Application Launcher.
|
||||
> More information: <https://java.com>.
|
||||
|
||||
- Execute a java .class file that contains a main method by using just the class name:
|
||||
- Execute a java `.class` file that contains a main method by using just the class name:
|
||||
|
||||
`java {{classname}}`
|
||||
|
||||
- Execute a .jar program:
|
||||
- Execute a `.jar` program:
|
||||
|
||||
`java -jar {{filename.jar}}`
|
||||
|
||||
- Execute a .jar program with debug waiting to connect on port 5005:
|
||||
- Execute a `.jar` program with debug waiting to connect on port 5005:
|
||||
|
||||
`java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar {{filename.jar}}`
|
||||
|
||||
|
@@ -2,18 +2,18 @@
|
||||
|
||||
> Java Application Compiler.
|
||||
|
||||
- Compile a .java file:
|
||||
- Compile a `.java` file:
|
||||
|
||||
`javac {{file.java}}`
|
||||
|
||||
- Compile several .java files:
|
||||
- Compile several `.java` files:
|
||||
|
||||
`javac {{file1.java}} {{file2.java}} {{file3.java}}`
|
||||
|
||||
- Compile all .java files in current directory:
|
||||
- Compile all `.java` files in current directory:
|
||||
|
||||
`javac {{*.java}}`
|
||||
|
||||
- Compile a .java file and place the resulting class file in a specific directory:
|
||||
- Compile a `.java` file and place the resulting class file in a specific directory:
|
||||
|
||||
`javac -d {{path/to/some/directory}} {{file.java}}`
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`jq '.[0]' {{file.json}}`
|
||||
|
||||
- Output the value of a given key of each element in a JSON text from `stdin`:
|
||||
- Output the value of a given key of each element in a JSON text from stdin:
|
||||
|
||||
`cat {{file.json}} | jq 'map(.{{key_name}})'`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> A command-line tool for converting JSON5 files to JSON.
|
||||
> More information: <https://json5.org>.
|
||||
|
||||
- Convert JSON5 stdin to JSON `stdout`:
|
||||
- Convert JSON5 stdin to JSON stdout:
|
||||
|
||||
`echo {{input}} | json5`
|
||||
|
||||
- Convert a JSON5 file to JSON and output to `stdout`:
|
||||
- Convert a JSON5 file to JSON and output to stdout:
|
||||
|
||||
`json5 {{path/to/input_file.json5}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`kafkacat -G {{group_id}} {{topic}} -b {{brokers}}`
|
||||
|
||||
- Publish message by reading from `stdin`:
|
||||
- Publish message by reading from stdin:
|
||||
|
||||
` echo {{message}} | kafkacat -P -t {{topic}} -b {{brokers}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`kops create secret sshpublickey {{key_name}} -i {{~/.ssh/id_rsa.pub}}`
|
||||
|
||||
- Export the cluster configurations into the ~/.kube/config file:
|
||||
- Export the cluster configuration to the `~/.kube/config` file:
|
||||
|
||||
`kops export kubecfg {{cluster_name}}`
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> View the last logged in users.
|
||||
|
||||
- View last logins, their duration and other information as read from /var/log/wtmp:
|
||||
- View last logins, their duration and other information as read from `/var/log/wtmp`:
|
||||
|
||||
`last`
|
||||
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
`lebab --transform {{transformation}}`
|
||||
|
||||
- Transpile a file to `stdout`:
|
||||
- Transpile a file to stdout:
|
||||
|
||||
`lebab {{path/to/input_file}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`lein repl`
|
||||
|
||||
- Run the project's "-main" function with optional args:
|
||||
- Run the project's `-main` function with optional args:
|
||||
|
||||
`lein run {{args}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Create license files for open-source projects.
|
||||
> More information: <https://nishanths.github.io/license>.
|
||||
|
||||
- Print a license to `stdout`, using the defaults (auto-detected author name, and current year):
|
||||
- Print a license to stdout, using the defaults (auto-detected author name, and current year):
|
||||
|
||||
`license {{license_name}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> A simple development http server with live reload capability.
|
||||
> More information: <https://www.npmjs.com/package/live-server>.
|
||||
|
||||
- Serve an index.html file and reload on changes:
|
||||
- Serve an `index.html` file and reload on changes:
|
||||
|
||||
`live-server`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`lpass ls`
|
||||
|
||||
- Generate a new password for "gmail.com" with identifier "myinbox" and add to LastPass:
|
||||
- Generate a new password for gmail.com with the identifier `myinbox` and add to LastPass:
|
||||
|
||||
`lpass generate --username {{username}} --url {{gmail.com}} {{myinbox}} {{password_length}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`lz4 -d {{file.lz4}}`
|
||||
|
||||
- Decompress a file and write to `stdout`:
|
||||
- Decompress a file and write to stdout:
|
||||
|
||||
`lz4 -dc {{file.lz4}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Compress or decompress files with LZO compression.
|
||||
> More information: <https://www.lzop.org/>.
|
||||
|
||||
- Compress a file into a new file with the .lzo suffix:
|
||||
- Compress a file into a new file with the `.lzo` suffix:
|
||||
|
||||
`lzop {{file}}`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> The command operates on the user's mailbox if no argument is given.
|
||||
> To send an email the message body is built from standard input.
|
||||
|
||||
- Send a typed email message. The command line below continues after pressing Enter key. Input CC email-id (optional) press Enter key. Input message text (can be multi-line). Press "Ctrl-D" key to complete the message text:
|
||||
- Send a typed email message. The command line below continues after pressing Enter key. Input CC email-id (optional) press Enter key. Input message text (can be multi-line). Press Ctrl-D key to complete the message text:
|
||||
|
||||
`mail --subject="{{subject line}}" {{to_user@example.com}}`
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
|
||||
`mail --subject="{{$HOSTNAME filename.txt}}" {{to_user@example.com}} < {{path/to/filename.txt}}`
|
||||
|
||||
- Send a tar.gz file as an attachment:
|
||||
- Send a `tar.gz` file as an attachment:
|
||||
|
||||
`tar cvzf - {{path/to/directory1 path/to/directory2}} | uuencode {{data.tar.gz}} | mail --subject="{{subject_line}}" {{to_user@example.com}}`
|
||||
|
@@ -6,11 +6,11 @@
|
||||
|
||||
`mmv "*{{.old_extension}}" "#1{{.new_extension}}"`
|
||||
|
||||
- Copy report6part4.txt to ./french/rapport6partie4.txt along with all similarly named files:
|
||||
- Copy `report6part4.txt` to `./french/rapport6partie4.txt` along with all similarly named files:
|
||||
|
||||
`mmv -c "{{report*part*.txt}}" "{{./french/rapport#1partie#2.txt}}"`
|
||||
|
||||
- Append all .txt files into one file:
|
||||
- Append all `.txt` files into one file:
|
||||
|
||||
`mmv -a "{{*.txt}}" "{{all.txt}}"`
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`monodevelop --new-window`
|
||||
|
||||
- Disable redirection of `stdout` and stderr to a log file:
|
||||
- Disable redirection of stdout and stderr to a log file:
|
||||
|
||||
`monodevelop --no-redirect`
|
||||
|
||||
|
@@ -19,10 +19,10 @@
|
||||
|
||||
`mosquitto_pub -t {{sensors/temperature}} -f {{data.txt}}`
|
||||
|
||||
- Send the contents of a file (`data.txt`), by reading from `stdin` and send the entire input as a message and publish it to `sensors/temperature` topic:
|
||||
- Send the contents of a file (`data.txt`), by reading from stdin and send the entire input as a message and publish it to `sensors/temperature` topic:
|
||||
|
||||
`mosquitto_pub -t {{sensors/temperature}} -s < {{data.txt}}`
|
||||
|
||||
- Read newline delimited data from `stdin` as a message and publish it to `sensors/temperature` topic:
|
||||
- Read newline delimited data from stdin as a message and publish it to `sensors/temperature` topic:
|
||||
|
||||
`{{echo data.txt}} | mosquitto_pub -t {{sensors/temperature}} -l`
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> A simple MQTT version 3.1.1 client that will subscribe to topics and print the messages that it receives.
|
||||
> More information: <https://mosquitto.org/man/mosquitto_sub-1.html>.
|
||||
|
||||
- Subscribe to the topic `sensors/temperature` information with Quality of Service (`QoS`) set to 1. (The default hostname is `localhost` and port `1883`):
|
||||
- Subscribe to the topic `sensors/temperature` information with Quality of Service (`QoS`) set to 1. (The default hostname is `localhost` and port 1883):
|
||||
|
||||
`mosquitto_sub -t {{sensors/temperature}} -q {{1}}`
|
||||
|
||||
- Subscribe to all broker status messages publishing on `iot.eclipse.org` port `1885` and print published messages verbosely:
|
||||
- Subscribe to all broker status messages publishing on `iot.eclipse.org` port 1885 and print published messages verbosely:
|
||||
|
||||
`mosquitto_sub -v -h "iot.eclipse.org" -p 1885 -t {{\$SYS/#}}`
|
||||
|
||||
|
@@ -10,15 +10,15 @@
|
||||
|
||||
`mount -t {{filesystem_type}} {{path/to/device_file}} {{path/to/target_directory}}`
|
||||
|
||||
- Mount a CD-ROM device (with the filetype ISO9660) to /cdrom (readonly):
|
||||
- Mount a CD-ROM device (with the filetype ISO9660) to `/cdrom` (readonly):
|
||||
|
||||
`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`
|
||||
|
||||
- Mount all the filesystem defined in /etc/fstab:
|
||||
- Mount all the filesystem defined in `/etc/fstab`:
|
||||
|
||||
`mount -a`
|
||||
|
||||
- Mount a specific filesystem described in /etc/fstab (e.g. "/dev/sda1 /my_drive ext2 defaults 0 2"):
|
||||
- Mount a specific filesystem described in `/etc/fstab` (e.g. `/dev/sda1 /my_drive ext2 defaults 0 2`):
|
||||
|
||||
`mount {{/my_drive}}`
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
> Manage Node.js projects and their module dependencies.
|
||||
> More information: <https://www.npmjs.com/>.
|
||||
|
||||
- Interactively create a package.json file:
|
||||
- Interactively create a `package.json` file:
|
||||
|
||||
`npm init`
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
`npm install`
|
||||
|
||||
- Download a specific version of a package and add it to the list of dependencies in package.json:
|
||||
- Download a specific version of a package and add it to the list of dependencies in `package.json`:
|
||||
|
||||
`npm install {{module_name}}@{{version}}`
|
||||
|
||||
- Download a package and add it to the list of dev dependencies in package.json:
|
||||
- Download a package and add it to the list of dev dependencies in `package.json`:
|
||||
|
||||
`npm install {{module_name}} --save-dev`
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
`npm install -g {{module_name}}`
|
||||
|
||||
- Uninstall a package and remove it from the list of dependencies in package.json:
|
||||
- Uninstall a package and remove it from the list of dependencies in `package.json`:
|
||||
|
||||
`npm uninstall {{module_name}}`
|
||||
|
||||
|
@@ -6,11 +6,11 @@
|
||||
|
||||
`list functions;`
|
||||
|
||||
- Create a Java function using a .jar resource:
|
||||
- Create a Java function using a `.jar` resource:
|
||||
|
||||
`create function {{func_name}} as {{path.to.package.Func}} using '{{package.jar}}';`
|
||||
|
||||
- Create a Python function using a .py resource:
|
||||
- Create a Python function using a `.py` resource:
|
||||
|
||||
`create function {{func_name}} as {{script.Func}} using '{{script.py}}';`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`opt -{{passname}} {{path/to/file.bc}} -S -o {{file_opt.bc}}`
|
||||
|
||||
- Output the Control Flow Graph of a function to a "dot" file:
|
||||
- Output the Control Flow Graph of a function to a `.dot` file:
|
||||
|
||||
`opt {{-dot-cfg}} -S {{path/to/file.bc}} -disable-output`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`parallel gzip ::: {{file1}} {{file2}} {{file3}}`
|
||||
|
||||
- Read arguments from `stdin`, run 4 jobs at once:
|
||||
- Read arguments from stdin, run 4 jobs at once:
|
||||
|
||||
`ls *.txt | parallel -j4 gzip`
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
`{{args}} | parallel -X {{command}}`
|
||||
|
||||
- Break stdin into ~1M blocks, feed each block to `stdin` of new command:
|
||||
- Break stdin into ~1M blocks, feed each block to stdin of new command:
|
||||
|
||||
`cat {{big_file.txt}} | parallel --pipe --block 1M {{command}}`
|
||||
|
||||
|
@@ -2,22 +2,22 @@
|
||||
|
||||
> Convert PDF files to plain text format.
|
||||
|
||||
- Convert filename.pdf to plain text and print it to standard output:
|
||||
- Convert `filename.pdf` to plain text and print it to standard output:
|
||||
|
||||
`pdftotext {{filename.pdf}} -`
|
||||
|
||||
- Convert filename.pdf to plain text and save it as filename.txt:
|
||||
- Convert `filename.pdf` to plain text and save it as `filename.txt`:
|
||||
|
||||
`pdftotext {{filename.pdf}}`
|
||||
|
||||
- Convert filename.pdf to plain text and preserve the layout:
|
||||
- Convert `filename.pdf` to plain text and preserve the layout:
|
||||
|
||||
`pdftotext -layout {{filename.pdf}}`
|
||||
|
||||
- Convert input.pdf to plain text and save it as output.txt:
|
||||
- Convert `input.pdf` to plain text and save it as `output.txt`:
|
||||
|
||||
`pdftotext {{input.pdf}} {{output.txt}}`
|
||||
|
||||
- Convert pages 2, 3 and 4 of input.pdf to plain text and save them as output.txt:
|
||||
- Convert pages 2, 3 and 4 of `input.pdf` to plain text and save them as `output.txt`:
|
||||
|
||||
`pdftotext -f {{2}} -l {{4}} {{input.pdf}} {{output.txt}}`
|
||||
|
@@ -31,6 +31,6 @@
|
||||
|
||||
`perl -p0e 's/{{foo\nbar}}/{{foobar}}/g' {{input_file}} > {{output_file}}`
|
||||
|
||||
- Run a regular expression on `stdin`, printing out the first capture group for each line:
|
||||
- Run a regular expression on stdin, printing out the first capture group for each line:
|
||||
|
||||
`cat {{path/to/input_file}} | perl -nle 'if (/.*({{foo}}).*/) {print "$1"; last;}'`
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`pest --group {{name}}`
|
||||
|
||||
- Run tests and print the coverage report to `stdout`:
|
||||
- Run tests and print the coverage report to stdout:
|
||||
|
||||
`pest --coverage`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> A PHP build tool based on Apache Ant.
|
||||
> More information: <https://www.phing.info>.
|
||||
|
||||
- Perform the default task in the "build.xml" file:
|
||||
- Perform the default task in the `build.xml` file:
|
||||
|
||||
`phing`
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> A backup utility framework for PHP.
|
||||
> More information: <https://phpbu.de>.
|
||||
|
||||
- Run backups using the default "phpbu.xml" configuration file:
|
||||
- Run backups using the default `phpbu.xml` configuration file:
|
||||
|
||||
`phpbu`
|
||||
|
||||
|
@@ -23,7 +23,7 @@
|
||||
|
||||
`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{rulesets}} --exclude {{directory_patterns}}`
|
||||
|
||||
- Output the results to a file instead of `stdout`:
|
||||
- Output the results to a file instead of stdout:
|
||||
|
||||
`phpmd {{path/to/file_or_directory}} {{xml|text|html}} {{rulesets}} --reportfile {{path/to/report_file}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`poetry init`
|
||||
|
||||
- Get the latest version of all dependencies and update poetry.lock:
|
||||
- Get the latest version of all dependencies and update `poetry.lock`:
|
||||
|
||||
`poetry update`
|
||||
|
||||
|
@@ -7,15 +7,15 @@
|
||||
|
||||
`pyenv commands`
|
||||
|
||||
- List all Python versions under the ${PYENV_ROOT}/versions directory:
|
||||
- List all Python versions under the `${PYENV_ROOT}/versions` directory:
|
||||
|
||||
`pyenv versions`
|
||||
|
||||
- Install a Python version under the ${PYENV_ROOT}/versions directory:
|
||||
- Install a Python version under the `${PYENV_ROOT}/versions` directory:
|
||||
|
||||
`pyenv install {{2.7.10}}`
|
||||
|
||||
- Uninstall a Python version under the ${PYENV_ROOT}/versions directory:
|
||||
- Uninstall a Python version under the `${PYENV_ROOT}/versions` directory:
|
||||
|
||||
`pyenv uninstall {{2.7.10}}`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Execute SQL-like queries on .csv and .tsv files.
|
||||
> More information: <https://harelba.github.io/q>.
|
||||
|
||||
- Query .csv file by specifying the delimiter as ',':
|
||||
- Query `.csv` file by specifying the delimiter as ',':
|
||||
|
||||
`q -d',' "SELECT * from {{path/to/file}}"`
|
||||
|
||||
- Query .tsv file:
|
||||
- Query `.tsv` file:
|
||||
|
||||
`q -t "SELECT * from {{path/to/file}}"`
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
`q -d{{delimiter}} -H "SELECT * from {{path/to/file}}"`
|
||||
|
||||
- Read data from stdin; '-' in the query represents the data from `stdin`:
|
||||
- Read data from stdin; '-' in the query represents the data from stdin:
|
||||
|
||||
`{{output}} | q "select * from -"`
|
||||
|
||||
|
@@ -30,6 +30,6 @@
|
||||
|
||||
`rails db:rollback`
|
||||
|
||||
- Fill the current database with data defined in db/seeds.rb:
|
||||
- Fill the current database with data defined in `db/seeds.rb`:
|
||||
|
||||
`rails db:seed`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Persistent key-value database.
|
||||
> More information: <https://redis.io>.
|
||||
|
||||
- Start Redis server, using the default port (6379), and write logs to `stdout`:
|
||||
- Start Redis server, using the default port (6379), and write logs to stdout:
|
||||
|
||||
`redis-server`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`reflex make`
|
||||
|
||||
- Compile and run Go application if any .go file changes:
|
||||
- Compile and run Go application if any `.go` file changes:
|
||||
|
||||
`reflex --regex='{{\.go$}}' {{go run .}}`
|
||||
|
||||
|
@@ -6,6 +6,6 @@
|
||||
|
||||
`echo "hello" | rev`
|
||||
|
||||
- Reverse an entire file and print to `stdout`:
|
||||
- Reverse an entire file and print to stdout:
|
||||
|
||||
`rev {{file}}`
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`samtools view -S -b {{input.sam}} > {{output.bam}}`
|
||||
|
||||
- Take input from stdin (-) and print the SAM header and any reads overlapping a specific region to `stdout`:
|
||||
- Take input from stdin (-) and print the SAM header and any reads overlapping a specific region to stdout:
|
||||
|
||||
`{{other_command}} | samtools view -h - chromosome:start-end`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`scala {{script.scala}}`
|
||||
|
||||
- Execute a .jar program:
|
||||
- Execute a `.jar` program:
|
||||
|
||||
`scala {{filename.jar}}`
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`scrapy crawl {{spider_name}}`
|
||||
|
||||
- Fetch a webpage as scrapy sees it and print source in `stdout`:
|
||||
- Fetch a webpage as scrapy sees it and print source in stdout:
|
||||
|
||||
`scrapy fetch {{url}}`
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
`screen -S {{session_name}}`
|
||||
|
||||
- Start a new daemon and log the output to screenlog.x:
|
||||
- Start a new daemon and log the output to `screenlog.x`:
|
||||
|
||||
`screen -dmLS {{session_name}} {{command}}`
|
||||
|
||||
|
@@ -3,11 +3,11 @@
|
||||
> Check if a PHP application uses dependencies with known security vulnerabilities.
|
||||
> More information: <https://github.com/sensiolabs/security-checker>.
|
||||
|
||||
- Look for security issues in the project dependencies (based on the composer.lock file in the current directory):
|
||||
- Look for security issues in the project dependencies (based on the `composer.lock` file in the current directory):
|
||||
|
||||
`security-checker security:check`
|
||||
|
||||
- Use a specific composer.lock file:
|
||||
- Use a specific `composer.lock` file:
|
||||
|
||||
`security-checker security:check {{path/to/composer.lock}}`
|
||||
|
||||
|
@@ -30,6 +30,6 @@
|
||||
|
||||
`sed -e 's/{{find}}/{{replace}}/' -e 's/{{find}}/{{replace}}/' {{filename}}`
|
||||
|
||||
- Replace separator / by any other character not used in the find or replace patterns, e.g., #:
|
||||
- Replace separator `/` by any other character not used in the find or replace patterns, e.g., `#`:
|
||||
|
||||
`sed 's#{{find}}#{{replace}}#' {{filename}}`
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
> Send email from the command line.
|
||||
|
||||
- Send a message with the content of message.txt to the mail directory of local user `username`:
|
||||
- Send a message with the content of `message.txt` to the mail directory of local user `username`:
|
||||
|
||||
`sendmail {{username}} < {{message.txt}}`
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user