Usage:
gitCheck [directory]This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.
Changes
| #!/usr/bin/python3 | |
| # This file allows modifying a a safeloader factory image. | |
| # It can be used to transplant a partition from one image into another, or to update the | |
| # firmware version info. | |
| # The procedure to calculate the hash and the required salt are described at: | |
| # https://github.com/openwrt/openwrt/blob/master/tools/firmware-utils/src/tplink-safeloader.c | |
| import argparse | |
| import binascii |
Usage:
gitCheck [directory]This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.
Changes
| app.filter('bytes', function() { | |
| return function(bytes, precision) { | |
| if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-'; | |
| if (typeof precision === 'undefined') precision = 1; | |
| var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], | |
| number = Math.floor(Math.log(bytes) / Math.log(1024)); | |
| return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number]; | |
| } | |
| }); |