Skip to content

Instantly share code, notes, and snippets.

Andrew Catellier whlteXbread

Block or report user

Report or block whlteXbread

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

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

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 Jan 2, 2018
Demonstrate `rasterio` windowing bug
View rasterio_window_bug.py
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 Jun 4, 2019
Two ways to access your fastai Jupiter Notebook
View access_jupyter_notebooks.md

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
You can’t perform that action at this time.