CodeCleanupTools

A set of command-line tools to cleanup C# and VB source code.

APACHE-2.0 License

Stars
122
Committers
9

Bot releases are visible (Hide)

CodeCleanupTools - ListBinaryInfo (lbi.exe) Latest Release

Published by KirillOsenkov over 2 years ago

CodeCleanupTools - dos2unix

Published by KirillOsenkov about 6 years ago

Converts CRLF line endings to LF.

CodeCleanupTools - ListBinaryInfo (lbi.exe)

Published by KirillOsenkov about 6 years ago

CodeCleanupTools - Print file sizes and bug fixes

Published by KirillOsenkov about 7 years ago

CodeCleanupTools - timing.exe

Published by KirillOsenkov about 7 years ago

Tool to measure the duration of time a process took. Prepend any cmd command line with "timing".

CodeCleanupTools - ListBinaryInfo.exe

Published by KirillOsenkov over 7 years ago

Better and cleaner output

CodeCleanupTools - ListBinaryInfo.exe

Published by KirillOsenkov over 7 years ago

Group by assembly name and file SHA

CodeCleanupTools - ListBinaryInfo

Published by KirillOsenkov over 7 years ago

Adds the /nr switch to ListBinaryInfo.exe (non-recursive).

CodeCleanupTools - bin2hex

Published by KirillOsenkov over 7 years ago

Allows to pass bin2hex a single argument (input file) the bytes of which will be printed to the console.

CodeCleanupTools - ListBinaryInfo

Published by KirillOsenkov over 7 years ago

ListBinaryInfo.exe *.dll
ListBinaryInfo.exe foo.dll

prints out some information about the assemblies (a single assembly or a pattern). Includes whether an assembly is signed, delay signed, x86, x64 or AnyCPU, as well as full name (including public key token if signed).

CodeCleanupTools - bin2hex tool

Published by KirillOsenkov almost 8 years ago

Initial release of the bin2hex.exe tool.

A tool to convert binary files to text (hex) and back to binary. It can be used as a poor person's binary editor.

Usage: bin2hex <input> <output> [<column-width>]*

If the input is a binary file, writes a human-readable hex contents to the output file (will overwrite if output exists).
Example: for bin2hex input.dll output.txt 8 8 the output.txt will contain

4D 5A 90 00 03 00 00 00  04 00 00 00 FF FF 00 00
B8 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
...

By default the tool will output bytes on a single line separated by space. Specify one or more space-separated numbers after input and output to create columns.

  Example: bin2hex foo.dll foo.txt 8         - uses one 8-byte column
  Example: bin2hex foo.dll foo.txt 4 4       - uses two 4-byte columns
  Example: bin2hex foo.dll foo.txt 8 8 8     - uses three 8-byte columns

If the input is a text hex file produced by this tool (in a format like above), writes the bytes to the output as binary. In a hex file, whitespace is ignored, so the columns, line breaks etc. don't matter.