This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stats: | |
directories: 20185 | |
projects: 1127 | |
go files (*.go): 62783 | |
vendored go files: 33314 | |
duplicated paths: 23452 | |
duplicated files: 14784 | |
unique files: 47999 | |
fmt stats: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# this module uses code from Michael Hudson's xmms-py modules | |
# this code is available in its original form here: | |
# http://www.python.net/crew/mwh/hacks/xmms-py.html | |
# the original code had this notice on it: | |
# | |
# Released by Michael Hudson on 2000-07-01, and again on 2001-04-26 | |
# public domain; no warranty, no restrictions | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~$ chef-shell -wat | |
/opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/mixlib-cli-1.7.0/lib/mixlib/cli.rb:230:in `parse_options': invalid option: -wat (OptionParser::InvalidOption) | |
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36/lib/chef/shell.rb:288:in `parse_opts' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36/lib/chef/shell.rb:178:in `parse_opts' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36/lib/chef/shell.rb:56:in `start' | |
from /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.19.36/bin/chef-shell:34:in `<top (required)>' | |
from /usr/bin/chef-shell:57:in `load' | |
from /usr/bin/chef-shell:57:in `<main>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> humanize.naturalsize(1<<30) | |
'1.1 GB' | |
>>> humanize.naturalsize(1<<30, binary=True) | |
'1.0 GiB' | |
humanize.naturalsize(1<<30, gnu=True) | |
'1.0G' |
OlderNewer