This file contains 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
;;; toggle-mode-line.el --- Toggle mode line. | |
(defun toggle-mode-line () | |
(interactive) | |
(if mode-line-format | |
(progn (setq-local hidden-mode-line-format mode-line-format) | |
(setq mode-line-format nil)) | |
(setq mode-line-format hidden-mode-line-format)) | |
(force-mode-line-update)) | |
This file contains 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
;;; hide-backup.el --- Hide backup files (~filename) in temporary directory. | |
(setq backup-directory-alist | |
`((".*" . ,temporary-file-directory))) | |
(provide 'hide-backup) |
This file contains 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
sudo apt-get install -y python3-numpy python3-scipy python3-dev libopenblas-dev python3-pip | |
sudo pip3 install Theano | |
echo -e "[global]\ndevice = gpu\nfloatX = float32" > ~/.theanorc |
This file contains 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
sudo apt-get install -y python3-numpy python3-scipy python3-dev libopenblas-dev python3-pip | |
git clone https://github.com/Theano/Theano.git | |
cd Theano | |
sudo python3 setup.py develop | |
cd ~ |
This file contains 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
#!/bin/bash | |
set -o nounset | |
set -o errexit | |
git clone https://github.com/tensorflow/tensorflow | |
sudo apt-get install -y openjdk-8-jdk libcurl4-openssl-dev python3-numpy swig python3-dev python3-pip python3-setuptools zlib1g-dev | |
echo "deb http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | |
curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add - |
This file contains 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
# must set aws credentials | |
import boto3 | |
from datetime import datetime | |
from dateutil.tz import tzutc | |
from operator import itemgetter | |
from functools import partial | |
from pipe import Pipe | |
def get_region_history(region): | |
remove_windows = partial(filter, lambda item: item['ProductDescription'] != 'Windows') |
This file contains 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
#!/bin/bash | |
set -o nounset | |
set -o errexit | |
# Required! | |
# downloads/ directory with: | |
# cuda_8.0.27_linux.run with md5 checksum: bea6165ccd0a6690cac04ed9544bbe57 | |
# cudnn-8.0-linux-x64-v5.0-ga.tgz with md5 checksum: be1896b0db052a7ca06a062262c4b842 | |
NVIDIA_FILENAME=NVIDIA-Linux-x86_64-367.27.run |
This file contains 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
#!/bin/bash | |
if [ -d /mnt ] && [ ! -e /mnt/tmp ] ; then | |
sudo mkdir /mnt/tmp | |
sudo chmod 777 /mnt/tmp | |
fi |
This file contains 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
# Required downloads: | |
# NVIDIA-Linux-x86_64-367.27.run | |
# cuda_8.0.27_linux.run | |
# cudnn-8.0-linux-x64-v5.0-ga.tgz | |
sudo apt-get install build-essential | |
sudo apt-get install linux-image-extra-`uname -r` | |
sudo ./NVIDIA-Linux-x86_64-367.27.run | |
./cuda_8.0.27_linux.run --extract=`pwd`/extracts | |
sudo ./extracts/cuda-linux64-rel-8.0.27-20733550.run |
This file contains 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 boto3 | |
from datetime import datetime | |
from dateutil.tz import tzutc | |
from operator import itemgetter | |
from functools import partial | |
from pipe import Pipe | |
def get_region_history(region): | |
remove_windows = partial(filter, lambda item: item['ProductDescription'] != 'Windows') |