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 bash | |
| # | |
| # Build a wheel package from a git tracked Python repository, | |
| # and publish it to PyPI. | |
| # | |
| # Tong Zhang, 2021-10-29 | |
| # | |
| # |
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 bash | |
| # | |
| # Tong Zhang <zhangt@frib.msu.edu> | |
| # 2018-07-31 11:22:12 AM EDT | |
| # Travis CI only | |
| # after_success | |
| # deploy gh-pages | |
| # |
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
| from datetime import datetime | |
| import pytz | |
| import tzlocal | |
| local_timezone = tzlocal.get_localzone() | |
| utc_time = datetime.utcnow() | |
| local_time = utc_time.replace(tzinfo=pytz.utc).astimezone(local_timezone) | |
| print(utc_time.strftime("%Y-%m-%d %H:%M:%S [%Z]")) |
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
| def get_all_dirs(des_root, src_root): | |
| ret = [] | |
| for r,d,f in os.walk(src_root): | |
| ret.append( | |
| (os.path.join(des_root, r), [os.path.join(r, fi) for fi in f]) | |
| ) | |
| return ret |
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
| #!/bin/bash | |
| # | |
| # clean up docker images/data. | |
| # | |
| # Tong Zhang <zhangt@frib.msu.edu> | |
| # 2017-08-25 08:47:34 AM EDT | |
| # | |
| print_help () |
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
| #!/bin/bash | |
| # Code refactoring tool: | |
| # | |
| # Replace $OLD with $NEW for files | |
| # | |
| # Tong Zhang <zhangt@frib.msu.edu> | |
| # 2017-07-21 10:52:37 AM EDT | |
| # |
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/python3 | |
| ####################################################### | |
| # Python rsync Backup script | |
| # Sebastian Kraft, 24.06.2013 | |
| # | |
| ####################################################### | |
| #----------------------------------------------------- | |
| # Config |