Skip to content

Commit

Permalink
Update data files
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Nov 1, 2018
1 parent e178431 commit 22474d3
Show file tree
Hide file tree
Showing 1,181 changed files with 19,691 additions and 927 deletions.
4 changes: 4 additions & 0 deletions data/common/ag
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

`ag {{foo}}`

- Find files containing "foo" in a specific directory:

`ag {{foo}} {{path/to/folder}}`

- Find files containing "foo", but only list the filenames:

`ag -l {{foo}}`
Expand Down
12 changes: 10 additions & 2 deletions data/common/airpaste
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@

> Share messages and files on the same network.

- Wait for message and display when received:

`airpaste`

- Send text:

`echo {{text}} | airpaste`

- Send file:

`airpaste < {{file.txt}}`
`airpaste < {{path/to/file}}`

- Receive file:

`airpaste > {{file.txt}}`
`airpaste > {{path/to/file}}`

- Create/Join channel:

Expand Down
6 changes: 3 additions & 3 deletions data/common/ansible
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

- Execute a command on a group of hosts by invoking command module with arguments:

`ansible {{group}} -m command -a '{{my command}}'`
`ansible {{group}} -m command -a '{{my_command}}'`

- Execute a command with administrative privileges:

`ansible {{group}} --become --ask-become-pass -m command -a '{{my command}}'`
`ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'`

- Execute a command using a custom inventory file:

`ansible {{group}} -i {{inventory_file}} -m command -a '{{my command}}'`
`ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'`
4 changes: 4 additions & 0 deletions data/common/aria2c
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
- FTP download with username and password:

`aria2c --ftp-user={{username}} --ftp-passwd={{password}} {{url}}`

- Limit download speed in bytes/s:

`aria2c --max-download-limit={{speed}} {{url}}`
2 changes: 1 addition & 1 deletion data/common/arp
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

- Create an entry:

`arp -s {{address}} {{mac address}}`
`arp -s {{address}} {{mac_address}}`
19 changes: 19 additions & 0 deletions data/common/asar
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# asar

> A file archiver for the Electron platform.

- Archive a file or folder:

`asar pack {{path/to/file}} {{archived.asar}}`

- Extract an archive:

`asar extract {{archived.asar}}`

- Extract a specific file from an archive:

`asar extract-file {{archived.asar}} {{file}}`

- List the contents of an archive file:

`asar list {{archived.asar}}`
2 changes: 1 addition & 1 deletion data/common/at
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

- Execute commands from standard input in 5 minutes (press `Ctrl + D` after entering commands):

`at now + 5 min`
`at now + 5 minutes`

- Execute a command from standard input at 10:00 AM today:

Expand Down
12 changes: 12 additions & 0 deletions data/common/atom
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,15 @@
- Open a file or folder in a new window:

`atom -n {{path/to/file_or_folder}}`

- Open a file or folder in an existing window:

`atom --add {{path/to/file_or_folder}}`

- Open atom in safe mode (does not load any additional packages):

`atom --safe`

- Prevent atom from forking into the background, keeping atom attached to the terminal:

`atom --foreground`
4 changes: 4 additions & 0 deletions data/common/autojump
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

`jc {{pattern}}`

- Open a directory that contains the given pattern in the operating system file manager:

`jo {{pattern}}`

- Remove non-existing directories from the autojump database:

`j --purge`
Expand Down
19 changes: 19 additions & 0 deletions data/common/b2sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# b2sum

> Calculate BLAKE2 cryptographic checksums.

- Calculate the BLAKE2 checksum for a file:

`b2sum {{filename1}}`

- Calculate BLAKE2 checksums for multiple files:

`b2sum {{filename1}} {{filename2}}`

- Read a file of BLAKE2 sums and filenames and verify all files have matching checksums:

`b2sum -c {{filename.b2}}`

- Calculate the BLAKE2 checksum from stdin:

`{{somecommand}} | shasum`
15 changes: 15 additions & 0 deletions data/common/banner
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# banner

> Print the given argument as a large ASCII art.

- Print the text message as a large banner (quotes are optional):

`banner {{"Hello World"}}`

- Print the text message as a banner with a width of 50 characters:

`banner -w {{50}} {{"Hello World"}}`

- Read text from stdin:

`banner`
28 changes: 28 additions & 0 deletions data/common/bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# bat

> Print and concatenate files.
> A `cat` clone with syntax highlighting and Git integration.

- Print the contents of a file to the standard output:

`bat {{file}}`

- Concatenate several files into the target file:

`bat {{file1}} {{file2}} > {{target_file}}`

- Append several files into the target file:

`bat {{file1}} {{file2}} >> {{target_file}}`

- Number all output lines:

`bat -n {{file}}`

- Syntax highlight a json file:

`bat --language json {{file.json}}`

- Display all supported languages:

`bat --list-languages`
6 changes: 3 additions & 3 deletions data/common/bosh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- Create local alias for director:

`bosh alias-env {{environment-name}} -e {{ip address or url}} --ca-cert {{ca_certificate}}`
`bosh alias-env {{environment_name}} -e {{ip_address|url}} --ca-cert {{ca_certificate}}`

- List environments:

Expand All @@ -24,11 +24,11 @@

- Ssh into virtual machine:

`bosh -e {{environment}} ssh {{virtual machine}} -d {{deployment}}`
`bosh -e {{environment}} ssh {{virtual_machine}} -d {{deployment}}`

- Upload stemcell:

`bosh -e {{environment}} upload-stemcell {{stemcell file or url}}`
`bosh -e {{environment}} upload-stemcell {{stemcell_file|url}}`

- Show current cloud config:

Expand Down
23 changes: 23 additions & 0 deletions data/common/bup
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# bup

> Backup system based on the git packfile format, providing fast incremental saves and global deduplication.

- Initialize a backup repository in the specified local directory:

`bup -d {{path/to/repository}} init`

- Prepare a given folder before taking a backup:

`bup -d {{path/to/repository}} index {{path/to/folder}}`

- Backup a folder to the repository:

`bup -d {{path/to/repository}} save -n {{backup_name}} {{path/to/folder}}`

- Show the backup snapshots currently stored in the repository:

`bup -d {{path/to/repository}} ls`

- Restore a specific backup snapshot to a target directory:

`bup -d {{path/to/repository}} restore -C {{path/to/target_directory}} {{backup_name}}`
11 changes: 11 additions & 0 deletions data/common/chroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# chroot

> Run command or interactive shell with special root directory.

- Run command as new root directory:

`chroot {{/path/to/new/root}} {{command}}`

- Specify user and group (ID or name) to use:

`chroot --userspec={{user:group}}`
4 changes: 4 additions & 0 deletions data/common/clang
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
- Include libraries located at a different path than the source file:

`clang {{input_source.c}} -o {{output_executable}} -I{{header_path}} -L{{library_path}} -l{{library_name}}`

- Compile source code into LLVM Intermediate Representation (IR):

`clang -S -emit-llvm {{file.c}} -o {{file.ll}}`
7 changes: 7 additions & 0 deletions data/common/clear
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# clear

> Clears the screen of the terminal.

- Clear the screen (equivalent to typing Control-L when using the bash shell):

`clear`
19 changes: 19 additions & 0 deletions data/common/cmark
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# cmark

> Converts CommonMark Markdown formatted text to other formats.

- Render a Commonmark Markdown file to HTML:

`cmark --to html {{filename.md}}`

- Convert data from standard input to latex:

`cmark --to latex`

- Convert straight quotes to smart quotes:

`cmark --smart --to html {{filename.md}}`

- Validate utf8 characters:

`cmark --validate-utf8 {{filename.md}}`
23 changes: 23 additions & 0 deletions data/common/coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# coffee

> Executes CoffeeScript scripts or compiles them into JavaScript.

- Run a script:

`coffee {{path/to/file.coffee}}`

- Compile to JavaScript and save to a file with the same name:

`coffee --compile {{path/to/file.coffee}}`

- Compile to JavaScript and save to a given output file:

`coffee --compile {{path/to/file.coffee}} --output {{path/to/file.js}}`

- Run interactive REPL:

`coffee --interactive`

- Watch script for changes and re-run script:

`coffee --watch {{path/to/file.coffee}}`
15 changes: 15 additions & 0 deletions data/common/complete
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# complete

> Provides argument autocompletion to shell commands.

- Apply a function that performs autocompletion to a command:

`complete -F {{function}} {{command}}`

- Apply a command that performs autocompletion to another command:

`complete -C {{autocomplete_command}} {{command}}`

- Apply autocompletion without appending a space to the completed word:

`complete -o nospace -F {{function}} {{command}}`
4 changes: 2 additions & 2 deletions data/common/composer
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

- Add a package as a dependency for this project, adding it to `composer.json`:

`composer require {{user/package-name}}`
`composer require {{user/package_name}}`

- Install all the dependencies in this project's `composer.json`:

`composer install`

- Uninstall a package from this project, removing it as a dependency from `composer.json`:

`composer remove {{user/package-name}}`
`composer remove {{user/package_name}}`

- Update all the dependencies in this project's `composer.json`:

Expand Down
4 changes: 4 additions & 0 deletions data/common/convert
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
- Horizontally append images:

`convert {{image1.png}} {{image2.png}} {{image3.png}} +append {{image123.png}}`

- Create a gif from a series of images with 100ms delay between them:

`convert {{image1.png}} {{image2.png}} {{image3.png}} -delay {{100}} {{animation.gif}}`
2 changes: 1 addition & 1 deletion data/common/cordova
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- Create a cordova project:

`cordova create {{path}} {{package.name}} {{project.name}}`
`cordova create {{path}} {{package_name}} {{project_name}}`

- Display the current workspace status:

Expand Down
10 changes: 3 additions & 7 deletions data/common/cp
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@

- Copy a file into another folder, keeping the filename:

`cp {{path/to/file.ext}} {{path/to/target/parent/folder}}`
`cp {{path/to/file.ext}} {{path/to/target_parent_folder}}`

- Copy a folder recursively to another location:

`cp -r {{path/to/folder}} {{path/to/copy}}`

- Copy a folder recursively into another folder, keeping the folder name:

`cp -r {{path/to/folder}} {{path/to/target/parent/folder}}`

- Copy a folder recursively, in verbose mode (shows files as they are copied):

`cp -vr {{path/to/folder}} {{path/to/copy}}`

- Copy the contents of a folder into another folder:

`cp -r {{path/to/source/folder/*}} {{path/to/target/folder}}`
`cp -r {{path/to/source_folder/*}} {{path/to/target_folder}}`

- Copy text files to another location, in interactive mode (prompts user before overwriting):

`cp -i {{*.txt}} {{path/to/source/}}`
`cp -i {{*.txt}} {{path/to/target_folder}}`
2 changes: 1 addition & 1 deletion data/common/cppcheck
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

- List available tests, filtered by a given search pattern:

`cppcheck --errorlist | grep "{{search pattern}}"`
`cppcheck --errorlist | grep "{{search_pattern}}"`

- Check a given file, ignoring specific tests:

Expand Down

0 comments on commit 22474d3

Please sign in to comment.