Skip to content

Instantly share code, notes, and snippets.

View saranjsr's full-sized avatar

Saranjeet Singh saranjsr

  • Accenture
  • Germany
View GitHub Profile
@saranjsr
saranjsr / single-ec2-access-iam-policy
Created April 20, 2018 14:56
restricting single ec2 access using tag
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:RebootInstances"
],
"Condition": {
@saranjsr
saranjsr / cuda-8.0-cudnn-v6.0-ubuntu16.04
Created April 20, 2018 14:56
install cuda 8 with cudnn version 6 on ubuntu 16.04
Installation
#wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
#sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
#sudo apt-get update
#sudo apt-get install cuda-8.0 -y
Reboot the server and add below lines in .bashrc file.
export CUDA_ROOT=/usr/local/cuda