Skip to content

Instantly share code, notes, and snippets.

View wang-zhijun's full-sized avatar

WANG ZHIJUN wang-zhijun

  • Tokyo
View GitHub Profile
@wang-zhijun
wang-zhijun / kubernetes-sample.md
Last active August 16, 2018 04:23
kubernetes-sample

簡単なnginx pod

# tee pod-nginx.yaml <<-'EOF'
apiVersion: v1
kind: Pod 
metadata:
  name: nginx
  labels:
 app: my-nginx 
@wang-zhijun
wang-zhijun / hugo.md
Last active June 30, 2018 17:25
hugo
$ brew install hugo

$ hugo version
Hugo Static Site Generator v0.42.2 darwin/amd64

$ hugo new site mysite

$ cd mysite/
@wang-zhijun
wang-zhijun / django
Created December 19, 2017 08:59
Django
```
# djangoをインストール
pip install Django
# djangoインストールされてるかチェック
python -m django --version
# ブロジェクトを作成する
django-admin startproject django_test
@wang-zhijun
wang-zhijun / git.md
Last active November 1, 2017 07:07
Git

GitをCentosにインストール(install)する

sudo yum remove git
sudo yum install make curl-devel gcc openssl-devel expat-devel  cpan gettext asciidoc xmlto
wget https://www.kernel.org/pub/software/scm/git/git-2.15.0.tar.gz
tar -zxf git-2.15.0.tar.gz
cd git-2.15.0
./configure
make prefix=/usr/local/git all
make prefix=/usr/local/git install
@wang-zhijun
wang-zhijun / ml.md
Last active September 27, 2020 07:09
ml
# Import `tensorflow`
import tensorflow as tf

# Initialize two constants
x1 = tf.constant([1,2,3,4])
x2 = tf.constant([5,6,7,8])

# Multiply
result = tf.multiply(x1, x2)
@wang-zhijun
wang-zhijun / jupyter.md
Last active July 3, 2017 05:52
jupyter

https://www.continuum.io/downloads

wget https://repo.continuum.io/archive/Anaconda3-4.4.0-Linux-x86_64.sh

sudo yum install bzip2
bash Anaconda3-4.4.0-Linux-x86_64.sh
jupyter notebook
jupyter notebook --generate-config
@wang-zhijun
wang-zhijun / pandas.md
Last active May 29, 2017 02:34
Pandas
We couldn’t find that file to show.
@wang-zhijun
wang-zhijun / ambari.md
Last active May 25, 2017 23:13
ambari

Install Java

yum install java-1.8.0-openjdk

Maximum Open File Descriptirs

/etc/security/limits.d/20-nproc.confファイルを修正

@wang-zhijun
wang-zhijun / r.md
Last active August 17, 2017 02:41
r

Comparing two variances is useful in several cases, including:

When you want to perform a two samples t-test to check the equality of the variances of the two samples

When you want to compare the variability of a new measurement method to an old one. Does the new method reduce the variability of the measure?

> data("ToothGrowth")
> head(ToothGrowth)
 len supp dose
@wang-zhijun
wang-zhijun / kafka.md
Last active May 10, 2017 04:06
kafka

https://kafka.apache.org/quickstart

wget http://ftp.kddilabs.jp/infosystems/apache/kafka/0.10.2.0/kafka_2.11-0.10.2.0.tgz
tar -xvzf kafka_2.11-0.10.2.0.tgz
cd kafka_2.11-0.10.2.0/