Skip to content

Instantly share code, notes, and snippets.

View yuchsiao's full-sized avatar

Yo Hsiao yuchsiao

View GitHub Profile
conda install numpy scipy scikit-learn matplotlib seaborn pandas tensorflow keras
# in windows 10
sudo apt-get install libopencv-dev python-opencv
sudo apt-get install execstack
conda install opencv
conda install -c mlgill imutils=0.3.6
execstack -c $HOME/anaconda3/lib/libopencv_*
pip install imutils
@yuchsiao
yuchsiao / .vimrc
Last active April 26, 2018 22:34
vim config with programming tab
syntax on
set t_Co=256
"colorscheme SerialExperimentsLain
"https://github.com/nanotech/jellybeans.vim
colorscheme jellybeans
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
vi /etc/yum.repos.d/cloudera-manager.repo
[cloudera-manager]
# Packages for Cloudera Manager, Version 5, on RedHat or CentOS 7 x86_64
name=Cloudera Manager
baseurl=https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5/
gpgkey =https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/RPM-GPG-KEY-cloudera
gpgcheck = 1
yum update
yum install cloudera-manager-daemons cloudera-manager-server -y
@yuchsiao
yuchsiao / free_email_provider_domains.txt
Created August 10, 2016 03:54 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
apt-get update
apt-get install python-software-properties -y
apt-get install software-properties-common -y
apt-get install wget -y
apt-get install curl -y
apt-get install vim -y
# Install oracle java 8
apt-get install wget -y
apt-get install curl -y
apt-get install software-properties-common -y
apt-get install vim -y
cd
wget https://gist.githubusercontent.com/yuchsiao/e2f9c1481976b4d5c524/raw/870969f072c461ad47da76e5822bdd3b807a9829/.screenrc
apt-get install -y screen
screen
@yuchsiao
yuchsiao / ubuntu1404_init.sh
Last active March 18, 2016 01:05
Ubuntu 14.04 initialization
apt-get install wget -y
apt-get install software-properties-common -y
# Install open-jdk
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
cd
sudo yum install wget -y
sudo yum install bzip2 -y
wget https://gist.githubusercontent.com/yuchsiao/e2f9c1481976b4d5c524/raw/870969f072c461ad47da76e5822bdd3b807a9829/.screenrc
sudo yum -y install screen
screen
# Download and install miniconda
cd
# Screen env
wget https://gist.githubusercontent.com/yuchsiao/e2f9c1481976b4d5c524/raw/870969f072c461ad47da76e5822bdd3b807a9829/.screenrc
sudo yum -y install screen
screen
# Python env
CONDA_PATH="miniconda2"
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
cd
CONDA_PATH="miniconda2"
wget https://gist.githubusercontent.com/yuchsiao/e2f9c1481976b4d5c524/raw/870969f072c461ad47da76e5822bdd3b807a9829/.screenrc
sudo yum -y install screen
screen
# Download and install miniconda
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
chmod u+x Miniconda-latest-Linux-x86_64.sh