Skip to content

Instantly share code, notes, and snippets.


Installing the NVIDIA driver, CUDA and cuDNN on Linux (Ubuntu 20.04)

This is a companion piece to my instructions on building TensorFlow from source. In particular, the aim is to install the following pieces of software

on an Ubuntu Linux system, in particular Ubuntu 20.04.

hrgentry / gist:2a02951cb0ef2dedcfad88544ba40aa7
Created Sep 9, 2020 — forked from rich-iannone/gist:1da1ae7a7203958a0c5b1bd1d4b24017
This gt code allows you to make a summary table based on the `pizzaplace` dataset.
View gist:2a02951cb0ef2dedcfad88544ba40aa7
pizzaplace %>%
mutate(type = case_when(
type == "chicken" ~ "chicken (pizzas with chicken as a major ingredient)",
type == "classic" ~ "classic (classical pizzas)",
type == "supreme" ~ "supreme (pizzas that try a little harder)",
type == "veggie" ~ "veggie (pizzas without any meats whatsoever)",
View beamer-slides-with-notes.pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
hrgentry /
Created Jun 17, 2019 — forked from Willian-Zhang/
Install Tensorflow 1.7 on macOS High Sierra 10.13.4 with CUDA and stock python

Tensorflow 1.7 with CUDA on macOS High Sierra 10.13.4 for eGPU

Largely based on the Tensorflow 1.6 gist, and Tensorflow 1.7 gist for xcode, this should hopefully simplify things a bit.


  • NVIDIA Web-Drivers 387. for 10.13.4
  • CUDA-Drivers 387.178
  • CUDA 9.1 Toolkit
hrgentry / .latexmkrc
Created Apr 25, 2018 — forked from fnurl/.latexmkrc
my .latexmkrc that I use with MacTex
View .latexmkrc
# Use xelatex instead of pdflatex
$pdflatex = 'xelatex -synctex=1 -interaction=nonstopmode --shell-escape %O %S';
# Always create PDFs
$pdf_mode = 1;
# Use to preview generated PDFs
$pdf_previewer = 'open -a %S';
# Use continous mode by default