Skip to content

Instantly share code, notes, and snippets.

View kazusato's full-sized avatar

Kazuhiko Sato kazusato

View GitHub Profile
https://github.com/mockito/mockito/wiki/What's-new-in-Mockito-2#mock-the-unmockable-opt-in-mocking-of-final-classesmethods

Build a simple Apache Storm environment

Run nimbus and supervisor on ONE node.

Download and install Apache Storm

$ wget http://ftp.jaist.ac.jp/pub/apache/storm/apache-storm-1.2.2/apache-storm-1.2.2.tar.gz
$ tar xvfz apache-storm-1.2.2.tar.gz
$ sudo mv apache-storm-1.2.2 /opt

Run Zookeeper and Kafka on CentOS

Zookeeper

A file "zookeeper.out" will be created in the current directory.

$ wget http://ftp.jaist.ac.jp/pub/apache/zookeeper/zookeeper-3.4.13/zookeeper-3.4.13.tar.gz
$ tar xvfz zookeeper-3.4.13.tar.gz
$ sudo useradd zookeeper

kubectlの補完をエイリアスにも適用するには

kubectlの補完

kubectl completion -hでも出てくる通り、

$ kubectl completion bash > ~/.kube/completion.bash.inc
$ printf "
# Kubectl shell completion
$ source '$HOME/.kube/completion.bash.inc'

インストール

VirtualBoxからパッケージをダウンロードし、

# dpkg -i virtualbox-5.2_5.2.16-123759_Ubuntu_bionic_amd64.deb

でインストールするが、途中でエラーが発生した。

以下のページに従えば、正常に起動するようになった。

CentOS7へのざっくり導入手順

おおむね3.1 Installing an RPM Package に書かれている通りだが、事前にEPELを有効にしておく必要があった。

# yum update
# yum install -y https://yum.enterprisedb.com/edbrepos/edb-repo-latest.noarch.rpm
# vi /etc/yum.repo.d/edb.repo
# ... enable and update username/password for edbas10, enterprisedb-tools and enterprisedb-dependencies
$ aws s3 ls
$ aws s3 ls s3://bucketname
$ aws s3 ls s3://bucketname/folder/
$ aws s3 cp --recursive s3://bucketname/folder/ .
# Oracle Database 12c CDB/PDB
- CDB = Container Databae
- PDB = Pluggable Database
## tnsnames.ora
```
pdb1=
(description =

TeX Liveインストール on CentOS Docker image

最終的にはDockerfileにまとめる予定だが、作業メモとして残しておく。

注意点

以下のパッケージが必要:

  • perl
  • perl-Digest-MD5
  • wget