Skip to content

Instantly share code, notes, and snippets.

View dte's full-sized avatar
💭
dreaming

Dillon Erb dte

💭
dreaming
View GitHub Profile
@dte
dte / install-CUDA-docker-nvidia-docker.sh
Created July 19, 2017 20:56
Install CUDA, Docker, and Nvidia Docker on a new Paperspace GPU machine
#!/bin/bash
# 1. Install CUDA
echo "Installing CUDA..."
# Only install if CUDA is not already installed.
if ! dpkg-query -W cuda; 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-get update
apt-get install cuda -y
@dte
dte / get_available_gpus.py
Created November 16, 2017 19:27 — forked from jovianlin/get_available_gpus.py
Get List of Devices in TensorFlow
from tensorflow.python.client import device_lib
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return [x.name for x in local_device_protos if x.device_type == 'GPU']
get_available_gpus()

Keybase proof

I hereby claim:

  • I am dte on github.
  • I am dte (https://keybase.io/dte) on keybase.
  • I have a public key ASBUHk4r10yK56bUqf0cZ9iYkVdIqehPtxMHsTcvtYp4awo

To claim this, I am signing this object:

@dte
dte / midjourney-download.py
Created January 3, 2023 20:25
Download your midjourney gallery
import requests
import re
import json
import os
import sys
UA = 'Midjourney-history-sync/1.0'
USER_ID = '###'
@dte
dte / configure-nvlink.sh
Created February 6, 2023 19:57
Configure NVLink on Paperspace A100-80Gx8 Ubuntu machines