Skip to content

Instantly share code, notes, and snippets.

View adityathiru's full-sized avatar

Aditya Thiruvengadam adityathiru

  • Klarity Intelligence Inc.
  • San Francisco, California
  • X @kishoreugal
View GitHub Profile
@adityathiru
adityathiru / install_cuda10.sh
Created May 7, 2019 11:55
Install CUDA 10 (works best on AWS/GCP)
#!/bin/bash
echo "Checking for CUDA10 and installing."
# Check for CUDA10 and try to install.
if ! dpkg-query -W cuda-10-0; then
# The 16.04 installer works with 16.10.
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_10.0.130-1_amd64.deb
dpkg -i ./cuda-repo-ubuntu1604_10.0.130-1_amd64.deb
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
apt-get update
apt-get install cuda-10-0 -y
@adityathiru
adityathiru / install_cuda9.sh
Created May 7, 2019 11:55
Install CUDA 9 (works best on AWS/GCP)
#!/bin/bash
echo "Checking for CUDA9 and installing."
# Check for CUDA9 and try to install.
if ! dpkg-query -W cuda-9-0; then
# The 16.04 installer works with 16.10.
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
dpkg -i ./cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
apt-get update
apt-get install cuda-9-0 -y
@adityathiru
adityathiru / install_cuda8.sh
Created May 7, 2019 11:54
Installing CUDA 8 (works best on AWS/GCP)
#!/bin/bash
echo "Checking for CUDA8 and installing."
# Check for CUDA8 and try to install.
if ! dpkg-query -W cuda-8-0; then
# The 16.04 installer works with 16.10.
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
dpkg -i ./cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
apt-get update
apt-get install cuda-8-0 -y
@adityathiru
adityathiru / LMS.py
Created April 21, 2016 07:15
LMS Script
#!/usr/local/bin/env python
# This script is my first try at web scraping, aimed at students of IIIT-B, to quickly check notifications, new assignments / forum posts and downloading files from LMS portal.
# Script is under development, further features will be added as and when I find free time :p ;)
import re
import urllib2
import requests
import selenium
from lxml import html