Skip to content

Instantly share code, notes, and snippets.

View 1eedaegon's full-sized avatar
Need more mocha =]

Gon ⌬ 1eedaegon

Need more mocha =]
  • Anywhere you want
  • 13:07 (UTC +09:00)
View GitHub Profile
@1eedaegon
1eedaegon / wsl2-with-docker-network.md
Last active August 17, 2023 12:07
wsl2 with docker desktop unable to connect to dns

Because docker desktop use subnet 192.168.65.0/24

Could not resolve DNS after start Docker desktop

curl www.naver.com
curl: (6) Could not resolve host: www.naver.com

Solution 1: Change docker desktop network cidr

@1eedaegon
1eedaegon / install-ngrok-wsl2.md
Created July 12, 2023 08:00
How to install ngrok on wsl2

Ngrok

Requirements

  • Windows 11
  • WSL 2

Installation

  1. Download ngrok
@1eedaegon
1eedaegon / enable-systemd-wsl2.md
Last active July 12, 2023 07:42
How to enable systemd on wsl2

Systemd

Requirements

  • Windows 11
  • WSL 2

Enable systemd option inside wsl2 instance

  1. Add inside /etc/wsl.conf:
@1eedaegon
1eedaegon / vim-go.md
Last active April 10, 2023 01:33
How to setup vim-go

1. Using Pathogen

git clone https://github.com/fatih/vim-go.git ~/.vim/bundle/vim-go

2. On vim

  • :GoInstallBinaries

3. If you got this error:

vim-go: could not find 'gopls'. Run :GoInstallBinaries to fix it

  • Check binary path: go env | grep GOBIN > ""
  • go get golang.org/x/tools/gopls@latest
@1eedaegon
1eedaegon / windows-update-61%-trouble-shooting.md
Last active November 30, 2022 07:39
Windows 포맷 후 업데이트 61% 문제

Windows 포맷 후 업데이트 61% 문제

#troubleshooting #windows #gram #포맷


메모:

윈도우 업데이트와 혈투 결과

Problem:

LG Gram windows 10 포맷 후 업데이트 61% 멈춤 문제

@1eedaegon
1eedaegon / simple-disk-management-using-lvm.md
Last active July 25, 2022 05:48
How to simple use LVM

How to manage disk simply using LVM2

Set up disks scalably

Pre-requirements

Install two packages

  • lvm2
  • xfs
> apt install lvm2
> apt install xfsprogs
@1eedaegon
1eedaegon / how-to-setup-poetry.md
Last active November 6, 2024 07:09
How to setup poetry python dependency manager

How to use poetry python dependency manager

awesome pacakage manager: poetry

Download poetry installer file and Install

First, download poetry python file

> curl -sSL https://install.python-poetry.org | python3 -

Default setting

@1eedaegon
1eedaegon / setup-black-on-vscode.md
Last active June 7, 2022 14:12
Set up black python formatter on vscode

Setup black python formatter on vscode

First, you remove default formatter setting like:

"editor.defaultFormatter": "esbenp.prettier-vscode" <- REMOVE THIS LINE

And install python like(link):

How to install python3.9

Run vscode and open settings.json

@1eedaegon
1eedaegon / install-python3.9-on-ubuntu18.04.md
Last active May 3, 2025 03:19
How to install python3.9 on ubuntu18.04

How to install python 3.9 on ubuntu 18.04

  • Install packages
  • Download python3.9
  • Build and install python binaries

Install packages

> sudo apt update
> sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev
@1eedaegon
1eedaegon / change-python-version.md
Last active June 6, 2022 11:46
How to change python version on ubuntu 18.04

How to change python version on ubuntu 18.04

  • Use update-alternatives
  • Change python command path

Check python version and path

  1. Check python2 and python3 version
# Python2
> python --version
Python 2.7.17