Skip to content

Instantly share code, notes, and snippets.

View gist:0be3aca01a3bf0998415f44e39aac83a
set-option -g prefix M-q
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set -g default-terminal screen-256color
View python_package_setup_check_cuda.py
# inspired by gist.github.com/f0k/63a664160d016a491b2cbea15913d549
from setuptools import setup, find_packages
import ctypes
def cuda_is_available():
libnames = ('libcuda.so', 'libcuda.dylib', 'cuda.dll')
for name in libnames:
try:
ctypes.CDLL(name)