start new:
tmux
start new with session name:
tmux new -s myname
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# Save this file (after modifying ID_VENDOR and ID_MODEL if necessary) as /etc/udev/rules.d/81-thinkpad-dock.rules | |
# These values seem to work for "ThinkPad Mini Dock Plus Series 3" | |
SUBSYSTEM=="usb", ACTION=="add|remove", ENV{ID_VENDOR}=="17ef", ENV{ID_MODEL}=="100a", RUN+="/etc/sbin/thinkpad-dock.sh" |
"""A library for describing and applying affine transforms to PIL images.""" | |
import numpy as np | |
import PIL.Image | |
class RGBTransform(object): | |
"""A description of an affine transformation to an RGB image. | |
This class is immutable. |
Updated 4/11/2018
Here's my experience of installing the NVIDIA CUDA kit 9.0 on a fresh install of Ubuntu Desktop 16.04.4 LTS.
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/autossh@host1 | \
sudo tee /etc/default/autossh@example
curl -sSL https://gist.githubusercontent.com/ttimasdf/ef739670ac5d627981c5695adf4c8f98/raw/[email protected] | \
sudo tee /etc/systemd/system/[email protected]
sudo useradd -g nogroup -s /bin/false -m tunnel
sudo -u tunnel mkdir -p ~tunnel/.ssh # and copy your private key here
#!/usr/bin/env bash | |
# This file is meant to be run by direnv. Direnv will execute your script with bash, even if you're using another shell. | |
printf '─%.0s' $(seq $(tput cols)) | |
################## CMake Generator (Cmake 3.15+) | |
# If available, use Ninja buildsystem generator, which is faster | |
# but Colcon may not show compiler output on a failed build | |
# if [ -x "$(command -v ninja)" ]; then |