Skip to content

Instantly share code, notes, and snippets.

View hazxone's full-sized avatar

M Hazwan hazxone

  • Datafyt
  • Malaysia
View GitHub Profile
@hazxone
hazxone / gist:52901e552e413c2d803e9786a6d9da0a
Created December 9, 2020 01:44 — forked from tzvsi/gist:222b3b22a847004a729744f89fe31255
Installing CUDA 10.2, CuDNN 7.6.5, TensorRT 7.0, Ubuntu 18.04

Step 1: Installing CUDA (~5.5 minutes)

You can also install CUDA directly from the offline installer, but this is a little easier.

sudo apt update
sudo apt upgrade -y

mkdir install ; cd install
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
@hazxone
hazxone / remove_comments.py
Created August 29, 2019 07:27 — forked from BroHui/remove_comments.py
Remove comments and docstrings from a python fille.
""" Strip comments and docstrings from a file.
"""
import sys, token, tokenize
def do_file(fname):
""" Run on just one file.
"""
source = open(fname)