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 | |
| # move all services to runit, was tricky to make this happen in docker without | |
| # overwriting cron / sshd | |
| echo "*** Copying services to runit" | |
| cp -R /home/wandb/service/* /etc/service/ | |
| cp -R /home/wandb/wandb-logrotate /etc/logrotate.d/ | |
| HOST=${HOST:-http://localhost:8080} |
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
| import glob | |
| import tensorflow as tf | |
| # Get matching filenames | |
| pattern = '../../test-images/*.jpg.*' # A bunch of 299x299x3 jpegs | |
| matching_filenames = glob.iglob(pattern) | |
| # Pipeline settings | |
| NUM_GPUS = 2 | |
| BATCH_SIZE = 32 |
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 -xe | |
| # requires jq and 3 brokers to start | |
| which jq || echo 'no jq found, bye!' && exit 1 | |
| ZK_HOST=zkhost1:2181/kafka | |
| # record all topics | |
| /usr/local/kafka/bin/kafka-topics.sh --zookeeper $ZK_HOST --list > all_topics | |
| # generate json for listing which topics to reassign |