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 python3 | |
| import glob | |
| import os | |
| import shutil | |
| import subprocess | |
| import sys | |
| import rarfile |
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
| """ | |
| NamedStruct, a combinationof struct and namedtuple in python, make code more readable. | |
| You can access the fields by name rather than index. | |
| """ | |
| from __future__ import print_function | |
| import struct | |
| from collections import namedtuple |
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 | |
| """ | |
| Copy files inside a zip into another zip file without uncompress it ahead, improve the speed, | |
| """ | |
| import zipfile | |
| def zipfile_get_entry(source, name): |
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 | |
| import os | |
| import sys | |
| import re | |
| import heapq | |
| import subprocess | |
| TOP_N=100 | |
| MIN_ALLOC_BYTE=10*1024 |
NewerOlder