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 os | |
import argparse | |
import shutil | |
import textwrap | |
def list_files_by_size(directory_path): | |
files_with_sizes = [] | |
for root, dirs, files in os.walk(directory_path): |
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 tiangolo/python-machine-learning:cuda9.1-cudnn7-devel-python3.6 | |
# RUN conda install tensorflow-gpu | |
RUN conda install -y cudatoolkit=9.0 | |
RUN conda install -y jupyter matplotlib pandas pillow seaborn tqdm | |
RUN pip install h5py wandb | |
RUN pip install cupy-cuda91==7.0.0b3 | |
RUN pip install jupyter_http_over_ws | |
RUN jupyter serverextension enable --py jupyter_http_over_ws |
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 | |
# 'Wi-Fi' or 'Ethernet' or 'Display Ethernet' | |
INTERFACE=Wi-Fi | |
# Ask for the administrator password upfront | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until finished | |
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & |