Skip to content

Commit 32642d0

Browse files
Update data files
1 parent 17e3b55 commit 32642d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+4585
-137
lines changed

data/common/7z

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,26 @@
66

77
`7z a {{archived.7z}} {{path/to/file}}`
88

9+
- Encrypt an existing archive (including headers):
10+
11+
`7z a {{encrypted.7z}} -p{{password}} -mhe {{archived.7z}}`
12+
913
- Extract an existing 7z file with original directory structure:
1014

11-
`7z x {{archived}}`
15+
`7z x {{archived.7z}}`
1216

1317
- Extract an archive with user-defined output path:
1418

15-
`7z x {{archived}} -o{{path/to/output}}`
19+
`7z x {{archived.7z}} -o{{path/to/output}}`
1620

1721
- Archive using a specific archive type:
1822

19-
`7z a -t {{zip|gzip|bzip2|tar|...}} {{archived}} {{path/to/file}}`
23+
`7z a -t {{zip|gzip|bzip2|tar|...}} {{archived.7z}} {{path/to/file}}`
2024

2125
- List available archive types:
2226

2327
`7z i`
2428

2529
- List the contents of an archive file:
2630

27-
`7z l {{archived}}`
31+
`7z l {{archived.7z}}`

data/common/awk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@
2121
- Sum the values in the first column and pretty-print the values and then the total:
2222

2323
`awk '{s+=$1; print $1} END {print "--------"; print s}' {{filename}}`
24+
25+
- Print every third line starting from the first line:
26+
27+
`awk 'NR%3==1' {{filename}}`

data/common/babel

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# babel
2+
3+
> A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.
4+
5+
- Transpile a specified input file and output to stdout:
6+
7+
`babel {{path/to/file}}`
8+
9+
- Transpile a specified input file and output to a specific file:
10+
11+
`babel {{path/to/input_file}} --out-file {{path/to/output_file}}`
12+
13+
- Transpile the input file every time it is changed:
14+
15+
`babel {{path/to/input_file}} --watch`
16+
17+
- Transpile a whole directory of files:
18+
19+
`babel {{path/to/input_directory}}`
20+
21+
- Ignore specified comma-separated files in a directory:
22+
23+
`babel {{path/to/input_directory}} --ignore {{ignored_files}}`
24+
25+
- Transpile and output as minified JavaScript:
26+
27+
`babel {{path/to/input_file}} --minified`
28+
29+
- Choose a set of presets for output formatting:
30+
31+
`babel {{path/to/input_file}} --presets {{presets}}`
32+
33+
- Output all available options:
34+
35+
`babel --help`

data/common/beanstalkd

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# beanstalkd
2+
3+
> A simple and generic work-queue server.
4+
5+
- Start beanstalkd, listening on port 11300:
6+
7+
`beanstalkd`
8+
9+
- Start beanstalkd listening on a custom port and address:
10+
11+
`beanstalkd -l {{ip_address}} -p {{port_number}}`
12+
13+
- Persist work queues by saving them to disk:
14+
15+
`beanstalkd -b {{path/to/persistence_directory}}`
16+
17+
- Sync to the persistence directory every 500 milliseconds:
18+
19+
`beanstalkd -b {{path/to/persistence_directory}} -f {{500}}`

data/common/box

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# box
2+
3+
> A PHP application for building and managing Phars.
4+
5+
- Build a new Phar file:
6+
7+
`box build`
8+
9+
- Build a new Phar file using a specific config file:
10+
11+
`box build -c {{path/to/config}}`
12+
13+
- Display information about the PHAR PHP extension:
14+
15+
`box info`
16+
17+
- Display information about a specific Phar file:
18+
19+
`box info {{path/to/phar_file}}`
20+
21+
- Validate the first found config file in the working directory:
22+
23+
`box validate`
24+
25+
- Verify the signature of a specific Phar file:
26+
27+
`box verify {{path/to/phar_file}}`
28+
29+
- Display all available commands and options:
30+
31+
`box help`

data/common/case

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# case
2+
3+
> Branch based on the value of an expression.
4+
5+
- Match a variable against string literals to decide which command to run:
6+
7+
`case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac`
8+
9+
- Combine patterns with |, use * as a fallback pattern:
10+
11+
`case {{$tocount}} in {{[wW]|words}}) {{wc -w README}}; ;; {{[lL]|lines}}) {{wc -l README}}; ;; *) {{echo "what?"}}; ;; esac`

data/common/fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# fish
22

33
> The Friendly Interactive SHell.
4-
> A command-line interpreter designed to be user firendly.
4+
> A command-line interpreter designed to be user friendly.
55

66
- Start interactive shell:
77

data/common/forever

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# forever
2+
3+
> Server-side JavaScript application that makes sure Node.js applications run indefinitely (restarts after exit).
4+
5+
- Start running a file forever (as a daemon):
6+
7+
`forever {{script}}`
8+
9+
- List running "forever" processes (along with IDs and other details of "forever" processes):
10+
11+
`forever list`
12+
13+
- Stop a running "forever" process:
14+
15+
`forever stop {{ID|pid|script}}`

data/common/git-sizer

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# git sizer
2+
3+
> Computes various Git repository size metrics and alerts you to any that might cause problems or inconvenience.
4+
5+
- Report only statistics that have a level of concern greater than 0:
6+
7+
`git sizer`
8+
9+
- Report all statistics:
10+
11+
`git sizer -v`
12+
13+
- See additional options:
14+
15+
`git sizer -h`

data/common/gitk

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# gitk
2+
3+
> A graphical git repository browser.
4+
5+
- Show the repository browser for the current git repository:
6+
7+
`gitk`
8+
9+
- Show repository browser for a specific file or folder:
10+
11+
`gitk {{path/to/file_or_folder}}`
12+
13+
- Show commits made since 1 week ago:
14+
15+
`gitk --since={{"1 week ago"}}`
16+
17+
- Show commits older than 1/1/2016:
18+
19+
`gitk --until={{"1/1/2015"}}`
20+
21+
- Show at most 100 changes in all branches:
22+
23+
` gitk --max-count={{100}} --all`

0 commit comments

Comments
 (0)