mirror of
https://github.com/cheat/cheat.git
synced 2025-12-14 03:02:07 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b736083c3 | ||
|
|
b477df20b2 | ||
|
|
6304a65399 | ||
|
|
bc40ced2c1 |
@@ -38,7 +38,7 @@ from docopt import docopt
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# parse the command-line options
|
# parse the command-line options
|
||||||
options = docopt(__doc__, version='cheat 2.1.10')
|
options = docopt(__doc__, version='cheat 2.1.11')
|
||||||
|
|
||||||
# list directories
|
# list directories
|
||||||
if options['--directories']:
|
if options['--directories']:
|
||||||
|
|||||||
5
cheat/cheatsheets/csplit
Normal file
5
cheat/cheatsheets/csplit
Normal 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
5
cheat/cheatsheets/man
Normal 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
2
cheat/cheatsheets/numfmt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Convert bytes to Human readable format
|
||||||
|
numfmt --to=iec --suffix=B --padding=7 1048576
|
||||||
2
setup.py
2
setup.py
@@ -3,7 +3,7 @@ import os
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'cheat',
|
name = 'cheat',
|
||||||
version = '2.1.10',
|
version = '2.1.11',
|
||||||
author = 'Chris Lane',
|
author = 'Chris Lane',
|
||||||
author_email = 'chris@chris-allen-lane.com',
|
author_email = 'chris@chris-allen-lane.com',
|
||||||
license = 'GPL3',
|
license = 'GPL3',
|
||||||
|
|||||||
Reference in New Issue
Block a user