Skip to content

Commit

Permalink
Update data files
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Mar 18, 2018
1 parent 17e3b55 commit 32642d0
Show file tree
Hide file tree
Showing 227 changed files with 4,585 additions and 137 deletions.
12 changes: 8 additions & 4 deletions data/common/7z
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@

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

- Encrypt an existing archive (including headers):

`7z a {{encrypted.7z}} -p{{password}} -mhe {{archived.7z}}`

- Extract an existing 7z file with original directory structure:

`7z x {{archived}}`
`7z x {{archived.7z}}`

- Extract an archive with user-defined output path:

`7z x {{archived}} -o{{path/to/output}}`
`7z x {{archived.7z}} -o{{path/to/output}}`

- Archive using a specific archive type:

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

- List available archive types:

`7z i`

- List the contents of an archive file:

`7z l {{archived}}`
`7z l {{archived.7z}}`
4 changes: 4 additions & 0 deletions data/common/awk
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@
- Sum the values in the first column and pretty-print the values and then the total:

`awk '{s+=$1; print $1} END {print "--------"; print s}' {{filename}}`

- Print every third line starting from the first line:

`awk 'NR%3==1' {{filename}}`
35 changes: 35 additions & 0 deletions data/common/babel
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# babel

> A transpiler which converts code from JavaScript ES6/ES7 syntax to ES5 syntax.

- Transpile a specified input file and output to stdout:

`babel {{path/to/file}}`

- Transpile a specified input file and output to a specific file:

`babel {{path/to/input_file}} --out-file {{path/to/output_file}}`

- Transpile the input file every time it is changed:

`babel {{path/to/input_file}} --watch`

- Transpile a whole directory of files:

`babel {{path/to/input_directory}}`

- Ignore specified comma-separated files in a directory:

`babel {{path/to/input_directory}} --ignore {{ignored_files}}`

- Transpile and output as minified JavaScript:

`babel {{path/to/input_file}} --minified`

- Choose a set of presets for output formatting:

`babel {{path/to/input_file}} --presets {{presets}}`

- Output all available options:

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

> A simple and generic work-queue server.

- Start beanstalkd, listening on port 11300:

`beanstalkd`

- Start beanstalkd listening on a custom port and address:

`beanstalkd -l {{ip_address}} -p {{port_number}}`

- Persist work queues by saving them to disk:

`beanstalkd -b {{path/to/persistence_directory}}`

- Sync to the persistence directory every 500 milliseconds:

`beanstalkd -b {{path/to/persistence_directory}} -f {{500}}`
31 changes: 31 additions & 0 deletions data/common/box
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# box

> A PHP application for building and managing Phars.

- Build a new Phar file:

`box build`

- Build a new Phar file using a specific config file:

`box build -c {{path/to/config}}`

- Display information about the PHAR PHP extension:

`box info`

- Display information about a specific Phar file:

`box info {{path/to/phar_file}}`

- Validate the first found config file in the working directory:

`box validate`

- Verify the signature of a specific Phar file:

`box verify {{path/to/phar_file}}`

- Display all available commands and options:

`box help`
11 changes: 11 additions & 0 deletions data/common/case
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# case

> Branch based on the value of an expression.

- Match a variable against string literals to decide which command to run:

`case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac`

- Combine patterns with |, use * as a fallback pattern:

`case {{$tocount}} in {{[wW]|words}}) {{wc -w README}}; ;; {{[lL]|lines}}) {{wc -l README}}; ;; *) {{echo "what?"}}; ;; esac`
2 changes: 1 addition & 1 deletion data/common/fish
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# fish

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

- Start interactive shell:

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

> Server-side JavaScript application that makes sure Node.js applications run indefinitely (restarts after exit).

- Start running a file forever (as a daemon):

`forever {{script}}`

- List running "forever" processes (along with IDs and other details of "forever" processes):

`forever list`

- Stop a running "forever" process:

`forever stop {{ID|pid|script}}`
15 changes: 15 additions & 0 deletions data/common/git-sizer
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# git sizer

> Computes various Git repository size metrics and alerts you to any that might cause problems or inconvenience.

- Report only statistics that have a level of concern greater than 0:

`git sizer`

- Report all statistics:

`git sizer -v`

- See additional options:

`git sizer -h`
23 changes: 23 additions & 0 deletions data/common/gitk
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# gitk

> A graphical git repository browser.

- Show the repository browser for the current git repository:

`gitk`

- Show repository browser for a specific file or folder:

`gitk {{path/to/file_or_folder}}`

- Show commits made since 1 week ago:

`gitk --since={{"1 week ago"}}`

- Show commits older than 1/1/2016:

`gitk --until={{"1/1/2015"}}`

- Show at most 100 changes in all branches:

` gitk --max-count={{100}} --all`
31 changes: 31 additions & 0 deletions data/common/grunt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# grunt

> A JavaScript task runner for automating processes.

- Run the default task process:

`grunt`

- Run one or more specific space-separated task(s):

`grunt {{task_name}}`

- Specify an alternative configuration file:

`grunt --gruntfile {{path/to/file}}`

- Specify an alternative base path for relative files:

`grunt --base {{path/to/directory}}`

- Specify an additional directory to scan for tasks in:

`grunt --tasks {{path/to/directory}}`

- Perform a dry-run without writing any files:

`grunt --no-write`

- List all available options:

`grunt --help`
4 changes: 2 additions & 2 deletions data/common/gzip
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

- Compress a file specifying the output filename:

`gzip -c {{file.ext}} > {{compressed_file.ext}}.gz`
`gzip -c {{file.ext}} > {{compressed_file.ext.gz}}`

- Uncompress a gzipped file specifying the output filename:

`gzip -c -d {{file.ext}}.gz > {{uncompressed_file.ext}}`

- Specify the compression level. 1=Fastest (Worst), 9=Slowest (Best), Default level is 6:

`gzip -9 -c {{file.ext}} > {{compressed_file.ext}}.gz`
`gzip -9 -c {{file.ext}} > {{compressed_file.ext.gz}}`
7 changes: 7 additions & 0 deletions data/common/imapsync
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# imapsync

> Email IMAP tool for syncing, copying and migrating email mailboxes between two imap servers, one way, and without duplicates.

- Synchronize imap account between host1 and host2:

`imapsync --host1 {{host1}} --user1 {{user1}} --password1 {{secret1}} --host2 {{host2}} --user2 {{user2}} --password2 {{secret2}}`
23 changes: 23 additions & 0 deletions data/common/iperf3
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# iperf3

> Traffic generator for testing network bandwidth.

- Run iperf3 as a server:

`iperf3 -s`

- Run an iperf3 server on a specific port:

`iperf3 -s -p{{port}}`

- Start bandwidth test:

`iperf3 -c{{server}}`

- Run iperf3 in multiple parallel streams:

`iperf3 -c{{server}} -P{{streams}}`

- Reverse direction of the test. Server sends data to the client:

`iperf3 -c{{server}} -R`
27 changes: 27 additions & 0 deletions data/common/json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# json5

> A command-line tool for converting JSON5 files to JSON.

- Convert JSON5 stdin to JSON stdout:

`echo {{input}} | json5`

- Convert a JSON5 file to JSON and output to stdout:

`json5 {{path/to/input_file.json5}}`

- Convert a JSON5 file to the specified JSON file:

`json5 {{path/to/input_file.json5}} --out-file {{path/to/output_file.json}}`

- Validate a JSON5 file:

`json5 {{path/to/input_file.json5}} --validate`

- Specify the number of spaces to indent by (or "t" for tabs):

`json5 --space {{indent_amount}}`

- View available options:

`json5 --help`
36 changes: 36 additions & 0 deletions data/common/kak
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# kak

> Kakoune is a mode-based code editor implementing the "multiple selections" paradigm.
> Data can be selected and simultaneously edited in different locations, using multiple selections; users can also connect to the same session for collaborative editing.

- Open a file and enter normal mode, to execute commands:

`kak {{path/to/file}}`

- Enter insert mode from normal mode, to write text into the file:

`i`

- Escape insert mode, to go back to normal mode:

`<Escape>`

- Replace all instances of "foo" in the current file with "bar":

`%s{{foo}}<Enter>c{{bar}}<Escape>`

- Un-select all secondary selections, and keep only the main one:

`<Space>`

- Search for numbers and select the first two:

`/\d+<Enter>N`

- Insert the contents of a file:

`!cat {{path/to/file}}<Enter>`

- Save the current file:

`:w<Enter>`
19 changes: 19 additions & 0 deletions data/common/laravel
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# laravel

> A command line installer for the Laravel framework.

- Create a new Laravel application:

`laravel new {{name}}`

- Use the latest development release:

`laravel new {{name}} --dev`

- Overwrite if the directory already exists:

`laravel new {{name}} --force`

- List the available installer commands:

`laravel list`
24 changes: 24 additions & 0 deletions data/common/lebab
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# lebab

> A JavaScript modernizer for transpiling code to ES6/ES7.
> Transformations must be provided for all examples.

- Display a list of the available transformations:

`lebab --help`

- Transpile using one or more comma-separated transformations:

`lebab --transform {{transformation}}`

- Transpile a file to stdout:

`lebab {{path/to/input_file}}`

- Transpile a file to the specified output file:

`lebab {{path/to/input_file}} --out-file {{path/to/output_file}}`

- Replace all `.js` files in-place in the specified directory, glob or file:

`lebab --replace {{directory|glob|file}}`
Loading

0 comments on commit 32642d0

Please sign in to comment.