Skip to content

Instantly share code, notes, and snippets.

@dragonxlwang
dragonxlwang / .vimrc
Created April 25, 2017 18:04
a minimal vimrc with ctrlp
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
From d71bb4c36ad0dd42f10224aba2f5d10599cd25fa Mon Sep 17 00:00:00 2001
From: Xiaolong Wang <dragonxlwang@gmail.com>
Date: Tue, 12 Apr 2016 16:41:27 -0500
Subject: [PATCH] fix lime color
---
gitk | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gitk b/gitk
@dragonxlwang
dragonxlwang / timan-install-vim
Last active April 11, 2016 23:32
timan-install-vim
sudo yum install -y ruby ruby-devel lua lua-devel luajit \
luajit-devel ctags git python python-devel \
python3 python3-devel tcl-devel \
perl perl-devel perl-ExtUtils-ParseXS \
perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \
perl-ExtUtils-Embed
cd ~
version=7.4.1724
curl -OL https://github.com/vim/vim/archive/v$version.tar.gz
@dragonxlwang
dragonxlwang / timan-suite
Last active April 12, 2016 03:20
timan-suite
sudo yum install cmake clang boost rubygems
gem install gist
chmod a+rx /usr/bin/gist
yum install curl-devel
# timan-install-git
## ==================================================
cd ~
yum groupinstall "Development Tools"
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel
@dragonxlwang
dragonxlwang / timan-brew-sh
Last active April 21, 2016 17:51
timan-yum-brew
export CC="/home/xwang95/.linuxbrew/bin/gcc"
export CXX="/home/xwang95/.linuxbrew/bin/g++"
export OBJC="/home/xwang95/.linuxbrew/bin/gcc"
export OBJCXX="/home/xwang95/.linuxbrew/bin/g++"
export CFLAGS="-Os -w -pipe -march=core2"
export CXXFLAGS="-Os -w -pipe -march=core2"
export CPPFLAGS="-isystem/home/xwang95/.linuxbrew/include"
export LDFLAGS="-L/home/xwang95/.linuxbrew/lib -Wl,--dynamic-linker=/home/xwang95/.linuxbrew/lib/ld.so -Wl,-rpath,/home/xwang95/.linuxbrew/lib"
export MAKEFLAGS="-j16"
export CMAKE_PREFIX_PATH="/home/xwang95/.linuxbrew"
sudo -H /usr/local/bin/pip install --upgrade "ipython[all]"
sudo -H /usr/local/bin/pip install --upgrade numpy scipy matplotlib jupyter
sudo -H /usr/local/bin/pip install --upgrade basemap numba pillow pygame sympy nose
sudo -H /usr/local/bin/pip install --upgrade nltk
sudo -H /usr/local/bin/pip install --upgrade flake8 pep8 autopep8 yapf jedi
python -m nltk.downloader all
cd ~
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
yum install devtoolset-2
source /opt/rh/devtoolset-2/enable
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline readline-devel
yum -y install python-devel openssl openssl-devel gcc sqlite-devel
[[ ! -e Python-2.7.11.tgz ]] && { wget --no-check-certificate https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz; } || { rm -rf Python-2.7.11; }
tar -zxvf Python-2.7.11.tgz
cd Python-2.7.11
@dragonxlwang
dragonxlwang / timan-install-git
Last active April 7, 2016 00:34
tmux and git
cd ~
yum groupinstall "Development Tools"
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel
# for gga git gui
sudo yum install xorg-x11-xauth
ver=2.8.0
curl -L https://github.com/git/git/archive/v$ver.tar.gz -o git-$ver.tar.gz
tar -zxf git-$ver.tar.gz
cd git-$ver
make configure