- C-a == Ctrl-a
- M-a == Alt-a
:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
| ARG UBUNTU_VERSION=20.04 | |
| ARG CUDA_VERSION=11.3.1 | |
| ARG CUDA=11.3 | |
| ARG CUDNN_VERSION=8 | |
| FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION} | |
| LABEL maintainer "http://gzupark.dev" | |
| ARG CUDA_VERSION | |
| ARG CUDA | 
| FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04 | |
| RUN apt-get update && apt-get install -y curl | |
| RUN curl -sSL http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh && \ | |
| bash /tmp/miniconda.sh -bfp /usr/local && \ | |
| rm -rf /tmp/miniconda.sh | |
| RUN conda update -y conda | |
| RUN conda install -q -y pyyaml mkl mkl-include setuptools cmake cffi typing ipython | 
| docker-machine create -d virtualbox \ | |
| --virtualbox-cpu-count=2 \ | |
| --virtualbox-memory=2048 \ | |
| --virtualbox-disk-size=100000 \ | |
| --virtualbox-boot2docker-url https://github.com/Alexoner/boot2docker/releases/download/v17.06.0-ce-usb-rc5/boot2docker.iso \ | |
| ${DOCKER_MACHINE} | 
| docker-machine create -d virtualbox \ | |
| --virtualbox-cpu-count=2 \ | |
| --virtualbox-memory=2048 \ | |
| --virtualbox-disk-size=100000 \ | |
| --virtualbox-boot2docker-url https://github.com/gzupark/boot2docker-webcam-mac/releases/download/18.06.1-ce-usb/boot2docker.iso \ | |
| ${DOCKER_MACHINE} | 
| # This file is useful for reading the contents of the ops generated by ruby. | |
| # You can read any graph defination in pb/pbtxt format generated by ruby | |
| # or by python and then convert it back and forth from human readable to binary format. | |
| import tensorflow as tf | |
| from google.protobuf import text_format | |
| from tensorflow.python.platform import gfile | |
| def pbtxt_to_graphdef(filename): | |
| with open(filename, 'r') as f: | 
To remove a submodule you need to:
| from cipher.crypto import Cipher | |
| data = 'Something you want to decrypt' | |
| dec = Cipher(key, iv) | |
| result = dec.decryption(data) |