I was able to simplify downloading and installing cuda, cudnn alot. updated
the post. went with a slightly diff approach than what you posted, if you
see anything i can fix/improve please let me know:

  
      gist.github.com
  
  
    https://gist.github.com/mjdietzx/0ff77af5ae60622ce6ed8c4d9b419f45 40
waya-dl-setup.sh
#!/bin/bash

# install CUDA Toolkit v8.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb"
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get -y install cuda

This file has been truncated. show original