Building TensorFlow from source
On deep learning AMI
source activate base| #!/usr/bin/env bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| LOG_GROUP_NAME="" | |
| LOG_STREAM_NAME="" | |
| REGION="" | |
| OUTPUT_FILE="$(date +"%Y%m%d").log" |
Building TensorFlow from source
On deep learning AMI
source activate base| sudo apt-get install -y ninja-build ccache | |
| # ccache for better cached compilers | |
| echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc | |
| source ~/.bashrc | |
| ccache -F 0 | |
| ccache -M 0 | |
| # OPTIONAL | |
| # llvm-lit for omp build |
If you are getting this in gdb on macOS while trying to run a program:
Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))gdbc)| ############ User input for AWS Access key and AWS Secret key | |
| echo "Please provide your S3 Access Key: " | |
| read -s AWSID | |
| echo "Please provide your S3 Secret key:" | |
| read -s AWSSEC | |
| calculate_signature () { | |
| AWSSEC=$1 | |
| x_amz_date_short=$2 |
| $ tmux --version | |
| tmux: illegal option -- - | |
| usage: tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name] | |
| [-S socket-path] [command [flags]] | |
| $ tmux --help | |
| tmux: illegal option -- - | |
| usage: tmux [-2CluvV] [-c shell-command] [-f file] [-L socket-name] | |
| [-S socket-path] [command [flags]] |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
| sudo apt-get update | |
| sudo apt-get install gcc-5 g++-5 | |
| sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
| import praw # simple interface to the reddit API, also handles rate limiting of requests | |
| import re | |
| from collections import deque | |
| from time import sleep | |
| USERNAME = "Your username here" | |
| PASSWORD = "Your password here" | |
| USERAGENT = "Your useragent string here. It should include your /u/username as a courtesy to reddit" | |
| r = praw.Reddit(USERAGENT) |