Skip to content

Instantly share code, notes, and snippets.

View zhangalex's full-sized avatar

Alex Zhang zhangalex

  • China
View GitHub Profile
@zhangalex
zhangalex / waya-dl-setup.sh
Created November 17, 2017 09:31 — forked from mjdietzx/waya-dl-setup.sh
Install CUDA Toolkit v8.0 and cuDNN v6.0 on Ubuntu 16.04
#!/bin/bash
# install CUDA Toolkit v8.0
# instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network))
CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb"
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG}
sudo dpkg -i ${CUDA_REPO_PKG}
sudo apt-get update
sudo apt-get -y install cuda
@zhangalex
zhangalex / gist:e5b840bbb8293c2841b2
Last active August 29, 2015 14:05
clockwork init script
#!/bin/sh
### BEGIN INIT INFO
# Provides: clock
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts clock for wand
# Description: starts clock for wand
### END INIT INFO
@zhangalex
zhangalex / gist:3093ebcc0135ac5b883c
Last active August 29, 2015 14:05
sidekiq init scripts
#!/bin/sh
### BEGIN INIT INFO
# Provides: sidekiq
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts sidekiq for event mobile
# Description: starts sidekiq for event mobile
### END INIT INFO