Skip to content

Instantly share code, notes, and snippets.

View hideojoho's full-sized avatar

Hideo Joho hideojoho

View GitHub Profile
@hideojoho
hideojoho / Vagrant_elasticsearch_kibana.md
Last active June 28, 2021 08:00
How to set up a virtual machine with Elasticsearch and Kibana using Vagrant. See https://gist.github.com/hideojoho/a7f8fa864a250380b0e78c5fcbc4d52e for 2019 version.

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 1-2 hours of time (depends on your network speed)

Environments

  • MacOSX 10.11.6
  • VirtualBox 5.1.10
  • Vagrant 1.8.7
@hideojoho
hideojoho / docker_elasticsearch_kibana.md
Last active December 1, 2016 11:08
How to set up Elasticsearch and Kibana using Docker

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 0.5 hours of time (depends on your network speed)

Environments

  • MacOSX 10.11.6
  • Docker for Mac

Download & Install

@hideojoho
hideojoho / Vagrant_jupyterhub.md
Last active April 18, 2021 19:52
How to set up a JupyterHub server on Vagrant

What you will get

  • JupyterHub server for multiple users
  • Python libraries: numpy scipy pandas matplotlib (can be changed via Vagrant_provision.sh below)
  • Jupyter Notebook Extensions

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 2.5GB of diskspace
  • 1-2 hours of time (depends on your network speed)
@hideojoho
hideojoho / Vagrant_jupyter_with_R.md
Last active July 31, 2021 20:57
How to install Jupyter Notebook with R kernel on Vagrant

What you will get

  • Jupyter Notebook for Python 3 and R
  • Jupyter Notebook Extensions
  • Python libraries: numpy scipy pandas matplotlib (can be changed via Vagrant_provision.sh below)
  • R packages: Many (ggplot2, knitr, lattice, to name a few)

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 4GB of diskspace
  • 2-3 hours of time (depends on your network speed)
@hideojoho
hideojoho / install_jupyter_on_ubuntu1604_desktop.sh
Last active December 4, 2017 08:18
How to install Jupyter Notebook on Ubuntu 16.04 LTS Desktop
# Change Desktop item's language to English
LANG=C xdg-user-dirs-gtk-update
# Update package list
sudo apt-get update
# Install required libraries
sudo apt-get install make git build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils
# Install pyenv script
@hideojoho
hideojoho / How_to_install_Jupyter_Notebook_on_MacOS.md
Created December 26, 2017 08:12
MacOSにJupyter Notebookをインストールする方法

MacOSにJupyter Notebookをインストールする方法

Homebrew(パッケージ管理ソフト)のインストール

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

pyenvのインストール

@hideojoho
hideojoho / How_to_host_wikipedia_in_vm.md
Last active January 2, 2018 06:48
How to set up a virtual machine to host a Wikipedia dump in MySQL

How to set up a virtual machine to host a Wikipedia dump in MySQL

This is an instruction specifically designed to host a Wikipedia dump on mysql. Be aware the reserved spec for the VM below.

  • Disk size: 500GB
  • Memory: 12GB
  • Client OS: Ubuntu 16.04
  • Host OS: MacOS 10.13.2

Install VirtualBox and Vagrant via Homebrew

@hideojoho
hideojoho / how-to-do-wakti-on-ubuntu.md
Last active January 2, 2018 07:52
How to divide Japanese texts using Mecab on Ubuntu

How to divide Japanese texts using Mecab on Ubuntu

  • OS: Ubuntu 16.04 LTS

Installation

$ sudo apt-get -y install mecab libmecab-dev mecab-ipadic-utf8 git make curl xz-utils file
$ git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git
$ cd mecab-ipadic-neologd
$ ./bin/install-mecab-ipadic-neologd -n
@hideojoho
hideojoho / how_to_setup_tensorflow_on_ubuntu.md
Last active June 11, 2018 07:19
How to set up Tensorflow GPU for a new user on Ubuntu

How to set up Tensorflow GPU for a new user on Ubuntu

Install pyenv

git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
exec $SHELL -l
@hideojoho
hideojoho / Vagrant_elasticsearch_kibana_2019.md
Last active June 26, 2021 16:59
How to set up a virtual machine with Elasticsearch and Kibana using Vagrant (2019)

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • About 1GB of diskspace
  • 1-2 hours of time (depends on your network speed)

Environments

  • MacOSX 10.14.2
  • VirtualBox 6.0.2
  • Vagrant 2.2.3