Skip to content

Instantly share code, notes, and snippets.

View hideojoho's full-sized avatar

Hideo Joho hideojoho

View GitHub Profile
@hideojoho
hideojoho / 0-4-steps-get-docker-with-gpu-on-ubuntu-2004.md
Last active September 27, 2024 21:32
4 steps to get a docker running with GPU on Ubuntu 20.04

⚠️ The following instruction is written on 25 Jul 2020 (= old).

4 steps to get a docker running with GPU on Ubuntu 20.04

Environment

  • Ubuntu 20.04
  • CUDA 10.2
  • Docker Latest
@hideojoho
hideojoho / master-playbook.yml
Created July 20, 2020 23:29
Ansible playbook for GPU nodes
---
- hosts: all
vars:
ansible_connect_timeout: 300
become: true
tasks:
- name: Update and upgrade apt packages
apt:
update_cache: yes
upgrade: yes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hideojoho
hideojoho / 0-How-to-setup-ubuntu-server-2004-for-gpu.md
Last active June 7, 2023 13:11
How to set up Ubuntu Server 20.04 with GPU to use TensorFlow and Pytorch via JupyterLab on Docker

How to set up Ubuntu Server 20.04 with GPU to use TensorFlow and Pytorch via JupyterLab on Docker

Environment

  • Ubuntu Server 20.04
  • CUDA Driver 10.2
  • Docker 19.03
  • NVIDIA Container Toolkit 2.3.0
  • NVIDIA RTX 2080ti (or other supported GPUs)
@hideojoho
hideojoho / How-to-use-Python-Scholarly.md
Last active July 19, 2023 16:06
How to use Python Scholarly to get author and publication data from Google Scholar

How to use Python Scholarly to get author and publication data from Google Scholar

⚠️ Just for reference. DO NOT abuse or your access could be banned.

@hideojoho
hideojoho / COVID19inTokyo.py
Created June 14, 2020 08:06
COVID-19 in Tokyo
from urllib.request import urlopen
import json, dateutil.parser
import matplotlib.pyplot as plt
plt.style.use('ggplot')
link = "https://raw.githubusercontent.com/tokyo-metropolitan-gov/covid19/development/data/data.json"
with urlopen(link) as f:
data = json.load(f)
@hideojoho
hideojoho / How-to-setup-centos7-on-mac.md
Last active January 13, 2020 02:43
How to set up a new centos 7 VM on MacOS (2019 Winter Holiday Edition)

How to set up a new centos 7 VM on MacOS

⚠️ As of Jan 13, 2020, there is a compatibility issue between VirtualBox and Vagrant, and thus, you need to use VirtualBox ver 6.0 rather than the latest ver 6.1.

Environments

Host

  • MacOS 10.15.2
  • Homebrew 2.2.1
  • VirtualBox 6.0.14
@hideojoho
hideojoho / Howto-deploy-ESK-on-docker.md
Last active October 27, 2019 08:26
How to deploy Elasticsearch and Kibana on Docker

How to deploy Elasticsearch and Kibana on Docker

  • Elasticsearch + Kibana: 6.6.2
  • Java Memory: 1GB
  • Create folders
ESK
├── docker-compose.yml
└── es-data
@hideojoho
hideojoho / Dockerfile
Created September 11, 2019 01:27
How to start a JupyterLab on Docker
FROM jupyter/datascience-notebook
RUN pip install --upgrade pip
RUN pip install jupyterlab
RUN jupyter serverextension enable --py jupyterlab
@hideojoho
hideojoho / How-to-calculate-pr-of-cacm-with-ntcireval.md
Last active September 3, 2019 07:31
How to calculate precision and recall of CACM collection with NTCIREVAL

How to calculate precision and recall of CACM collection with NTCIREVAL

Well, it doesn't quite calculate precision and recall, actually.

Download

Uncompress the tar balls