Skip to content

Instantly share code, notes, and snippets.

# 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)
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
@tianrluo
tianrluo / .vimrc
Created April 23, 2021 19:46
vimrc
" set rtp+=$HOME/.local/config/powerline/bindings/vim
set nocompatible
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins