Compare commits

...

4 Commits

Author SHA1 Message Date
Chris Lane
6b736083c3 v2.1.11
- Merged PR #227

- Patch version bump
2015-07-31 15:19:22 -04:00
Shadab Zafar
b477df20b2 New Sheet: man - an interface to reference manuals 2015-07-24 18:54:41 +05:30
Shadab Zafar
6304a65399 New Sheet: numfmt - convert numbers from/to human-readable strings 2015-07-24 18:53:50 +05:30
Shadab Zafar
bc40ced2c1 New Sheet: csplit - used to split a file into parts 2015-07-24 18:51:55 +05:30
5 changed files with 14 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ from docopt import docopt
if __name__ == '__main__':
# parse the command-line options
options = docopt(__doc__, version='cheat 2.1.10')
options = docopt(__doc__, version='cheat 2.1.11')
# list directories
if options['--directories']:

5
cheat/cheatsheets/csplit Normal file
View File

@@ -0,0 +1,5 @@
# Split a file based on pattern
csplit input.file '/PATTERN/'
# Use prefix/suffix to improve resulting file names
csplit -f 'prefix-' -b '%d.extension' input.file '/PATTERN/' '{*}'

5
cheat/cheatsheets/man Normal file
View File

@@ -0,0 +1,5 @@
# Convert a man page to pdf
man -t bash | ps2pdf - bash.pdf
# View the ascii chart
man 7 ascii

2
cheat/cheatsheets/numfmt Normal file
View File

@@ -0,0 +1,2 @@
# Convert bytes to Human readable format
numfmt --to=iec --suffix=B --padding=7 1048576

View File

@@ -3,7 +3,7 @@ import os
setup(
name = 'cheat',
version = '2.1.10',
version = '2.1.11',
author = 'Chris Lane',
author_email = 'chris@chris-allen-lane.com',
license = 'GPL3',