OS: CENTOS 6.8 (No root access)
GCC: locally installed 5.2.0 (Cluster default is 4.4.7)
Bazel: 0.4.0-2016-11-06 (@fa407e5)
Tensorflow: v0.11.0rc2
CUDA: 8.0
| docker run \ | |
| --name {{printf "%q" .Name}} \ | |
| {{- with .HostConfig}} | |
| {{- if .Privileged}} | |
| --privileged \ | |
| {{- end}} | |
| {{- if .AutoRemove}} | |
| --rm \ | |
| {{- end}} | |
| {{- if .Runtime}} |
| #!/bin/bash | |
| # remove exited containers: | |
| docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v | |
| # remove unused images: | |
| docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi | |
| # remove unused volumes: | |
| find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <( |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.
import Data.List
import qualified Data.Set as Set
import Criterion.Main
import System.Random
import Control.Applicative
main :: IO ()| # place this file in ~/.config/terminator/config | |
| [global_config] | |
| title_transmit_bg_color = "#d30102" | |
| focus = system | |
| [keybindings] | |
| reset_clear = <Ctrl>R | |
| new_tab = <Ctrl>T | |
| split_horiz = <Ctrl><Shift>E | |
| split_vert = <Ctrl>E | |
| close_term = <Ctrl><Shift>W |
| git fetch upstream | |
| git reset --hard upstream/master |
| import os, hashlib, urllib2, optparse | |
| def get_remote_md5_sum(url, max_file_size=100*1024*1024): | |
| remote = urllib2.urlopen(url) | |
| hash = hashlib.md5() | |
| total_read = 0 | |
| while True: | |
| data = remote.read(4096) | |
| total_read += 4096 |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |