I hereby claim:
- I am robustican on github.
- I am robustican (https://keybase.io/robustican) on keybase.
- I have a public key ASDSyDB9b6ptcPbVenwPSmaqOCGLnJPKfO7vCVEK3YBZQQo
To claim this, I am signing this object:
| export LOG_DIR=~/logs | |
| # `tee` the stdout/stderr of a command to | |
| # ${LOG_DIR}/<binary>/$(datetime).log or ${LOG_DIR}/<binary>/<subcommand>/$(datetime).log | |
| # $1: full command (including arguments) to log | |
| log_command() { | |
| local log_dir="${LOG_DIR}/${1}" | |
| if [ "$1" = "mortar" ]; then | |
| log_dir="${log_dir}/$2" | |
| fi | |
| mkdir -p "${log_dir}" |
I hereby claim:
To claim this, I am signing this object:
| from __future__ import print_function, absolute_import, unicode_literals | |
| import time | |
| try: | |
| from Queue import Empty | |
| except ImportError: | |
| from queue import Empty | |
| from multiprocessing import Process, cpu_count, Manager | |
| import logging |
| from __future__ import print_function, absolute_import, unicode_literals | |
| try: | |
| from Queue import Empty | |
| except ImportError: | |
| from queue import Empty | |
| from multiprocessing import Process, cpu_count, Manager | |
| import logging | |
| import traceback |