Skip to content

Instantly share code, notes, and snippets.

View wongjingping's full-sized avatar

JP wongjingping

View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/jingpingw/.oh-my-zsh"
# Set theme. More at https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="robbyrussell"
" show line numbers
set number
" indent by 2 spaces
set softtabstop=2
set shiftwidth=2
" turn on syntax highlighting
syntax on
" autocomplete brackets
:inoremap ( ()<Esc>i
@wongjingping
wongjingping / Setting up CUDA and NVIDIA drivers for using GPU on CentOS
Created February 25, 2016 08:08
Instructions for setting up CUDA and NVIDIA drivers for using GPU on CentOS
# rmb to export http_proxy, https_proxy before anything, and su - root
export http_proxy=...
export https_proxy=...
# update yum and install packages
yum update
yum install kernel-devel kernel-headers dkms
# disable Nouveau, by adding the following line to /etc/modprobe.d/blacklist.conf
blacklist nouveau
@wongjingping
wongjingping / Learning Journal
Last active April 26, 2024 06:39
A simple record of random coding tools/tricks/concepts that I've learnt over time. Separate concepts are delimited with ;
# My learning journal
2015-12-22,hdf5 h5py
2016-01-04,gnu screen
2016-01-06,how to build ATLAS from source
2016-01-07,how to set http_proxy;how to find proxy address from .pac script in Internet Options
2016-01-08,sloth
2016-01-15,json (python)
2016-01-17,cv2
2016-01-20,keras
2016-01-22,python generators