kisom/zsearch
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
zsearch This is a stupid little tool I wrote because I screwed up in Git, and needed to recover a file. Turns out in a lot of cases, the object will still exist in .git/objects, but those files are zlib compressed. The original program was: $ cat ~/bin/zcat.py #!/usr/bin/env python import re import sys import zlib for arg in sys.argv[2:]: decompressed = zlib.decompress(open(arg).read()) if re.search(sys.argv[1], decompressed): print decompressed This is barely more than that, but it does a little better job with error handling and parsing arguments. Presented in Go and Python.
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published