sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| FROM ubuntu | |
| RUN apt update \ | |
| && apt install -y firefox \ | |
| openssh-server \ | |
| xauth \ | |
| && mkdir /var/run/sshd \ | |
| && mkdir /root/.ssh \ | |
| && chmod 700 /root/.ssh \ | |
| && ssh-keygen -A \ | |
| && sed -i "s/^.*PasswordAuthentication.*$/PasswordAuthentication no/" /etc/ssh/sshd_config \ |
| #!/usr/bin/python3 | |
| import argparse | |
| import logging | |
| import subprocess | |
| import os | |
| import tempfile | |
| from tempfile import mkstemp | |
| import configparser | |
| import gzip |
| import sys | |
| from PyQt5.QtWidgets import QApplication | |
| from PyQt5.QtSvg import QSvgWidget | |
| from io import BytesIO | |
| import matplotlib.pyplot as plt | |
| # matplotlib: force computer modern font set | |
| plt.rc('mathtext', fontset='cm') |
| """ | |
| Create train, valid, test iterators for CIFAR-10 [1]. | |
| Easily extended to MNIST, CIFAR-100 and Imagenet. | |
| [1]: https://discuss.pytorch.org/t/feedback-on-pytorch-for-kaggle-competitions/2252/4 | |
| """ | |
| import torch | |
| import numpy as np |
| # 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: |
| import numpy as np | |
| import tensorflow as tf | |
| from tensorflow.python.ops import seq2seq | |
| from tensorflow.python.ops import rnn_cell | |
| seed = 7 | |
| np.random.seed(7) | |
| def generate_sequences(sequence_num, sequence_length, batch_size): |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine to administer the local Docker engine.
docker-machine create --driver virtualbox default (this is the default with Docker toolkit).