Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View whlteXbread's full-sized avatar

Andrew Catellier whlteXbread

View GitHub Profile
@whlteXbread
whlteXbread / nvidia_cuda_cudnn_setup.md
Created September 27, 2018 01:12
install cuda/cudnn 9.2 on ubuntu 18.04 because you're a glutton for punishment

DEAR LORD THIS IS A HUGE PAIN IF YOU'RE ON 18.04

okay, what a huge mess. ima go through this real quick before i forget any of it.

  1. install the display driver. right now the ubuntu PPA doesn't have 396 in it so here's some rigamarole:
  2. install 390 first, lol:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
@whlteXbread
whlteXbread / rasterio_window_bug.py
Created January 2, 2018 16:29
Demonstrate `rasterio` windowing bug
import rasterio
from rasterio.mask import mask
import fiona
import numpy as np
test_filename = 'test_rasterio_mask.tif'
test_image = 128 * np.ones((1, 1000, 2000), dtype=np.uint8)
test_transform = rasterio.Affine(-0.05, 0.07, 15000,
0.07, 0.05, 3500000)
test_crs = {'init': 'epsg:32614'}
@whlteXbread
whlteXbread / access_jupyter_notebooks.md
Last active June 4, 2019 20:31
Two ways to access your fastai Jupiter Notebook

Accessing Your [fast-ai, AWS] Jupyter Notebook from Anywhere

Some networks out in the world don't allow traffic on all ports. For the most part though, HTTP is open just about everywhere.

As we know, Jupyter notebooks don't operate on the standard HTTP port. What follows are a couple ways to use commonly open ports to access your notebook.

I'll discuss two methods, both with their advantages and disadvantages:

  • Using SSH to tunnel HTTP traffic through an open SSH port