- 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 |
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} |
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} |
# 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) |
#!/bin/bash | |
# Check for CUDA and try to install. | |
# https://gitlab.com/nvidia/cuda/blob/ubuntu16.04/9.0/base/Dockerfile | |
apt-get update && apt-get install -y --no-install-recommends ca-certificates apt-transport-https gnupg-curl && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
NVIDIA_GPGKEY_SUM=d1be581509378368edeec8c1eb2958702feedf3bc3d17011adbf24efacce4ab5 && \ | |
NVIDIA_GPGKEY_FPR=ae09fe4bbd223a84b2ccfce3f60f4b3d7fa2af80 && \ | |
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub && \ |