Skip to content

Instantly share code, notes, and snippets.

View hideojoho's full-sized avatar

Hideo Joho hideojoho

View GitHub Profile
@hideojoho
hideojoho / How-to-use-new-partition-for-MariaDB.md
Last active August 27, 2019 07:47
How to use a new partition as MariaDB's data folder

How to use a new partition as MariaDB's data folder

Note

Changes from previous situations

  • You will remove mariadb and mariadb-server from the VM first
  • You will remove mariadb related files such as /etc/my.cnf and /var/lib/mysql
@hideojoho
hideojoho / How-to-increase-VM-diskspace.md
Last active April 3, 2023 07:28
How to increase a VM's disk space

How to increase a VM's disk space

Environments

  • Vagrant
  • Virtualbox
  • CentOS 7

Note

The following steps are based on a Vagrant VM box which does NOT use LVM for a root partition, which seems to be the case for the official CentOS box.

@hideojoho
hideojoho / How-to-setup-VM-with-Wikipedia.md
Last active December 26, 2022 23:36
How to set up a VM that has a local copy of Wikipedia

Requirements

  • At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
  • At least 3GB of diskspace (depends on your dump data size)
  • 1 - many hours of time (depends on your network speed and dump data size)

Environments

  • MacOSX 10.13.6
  • Homebrew 2.1.6
  • Vagrant 2.2.5
  • Virtualbox 6.0.10
@hideojoho
hideojoho / How-to-setup-VM-with-python-on-macos.md
Last active June 22, 2019 12:53
How to set up a VM with Python (Miniconda) on MacOS

Requirements

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

Environments

  • MacOSX 10.14.5
  • Homebrew 2.1.6
  • VirtualBox 6.0.8
  • Vagrant 2.2.4
@hideojoho
hideojoho / How-to-setup-elasticsearch-kibana-logstash-v6-2019.md
Last active April 29, 2019 05:46
How to set up a VM on Mac for Elasticsearch, Kibana, and Logstash ver 6.x (2019)

Requirements

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

Environments

  • MacOSX 10.14.4
  • Homebrew 2.1.1
  • VirtualBox 6.0.6
  • Vagrant 2.2.4
@hideojoho
hideojoho / How-to-setup-elasticsearch-kibana-logstash-v7-2019.md
Last active October 25, 2023 20:06
How to set up a VM on Mac for Elasticsearch, Kibana, and Logstash ver 7.0 (2019)

Requirements

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

Environments

  • MacOSX 10.14.4
  • Homebrew 2.1.1
  • VirtualBox 6.0.6
  • Vagrant 2.2.4
@hideojoho
hideojoho / How-to-setup-elasticsearch-and-kibana-v7-2019.md
Last active April 28, 2019 02:01
How to set up a virtual machine in MacOS for Elasticsearch and Kibana ver 7.0 (2019)

Requirements

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

Environments

  • MacOSX 10.13.6
  • Homebrew 2.1.1
  • VirtualBox 6.0.6
  • Vagrant 2.2.4
@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
@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 / 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