Skip to content

Instantly share code, notes, and snippets.

View nopedev's full-sized avatar
πŸ’­
뿜뿜

nope nopedev

πŸ’­
뿜뿜
View GitHub Profile
@nopedev
nopedev / .bash_profile
Created April 4, 2018 02:06 — forked from KennethanCeyer/.bash_profile
bash_profile for MAC users
#.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
#============================================================
#
# ALIASES AND FUNCTIONS
# Arguably, some functions defined here are quite big.
# If you want to make this file smaller, these functions can

python

pyenv

install pyenv

brew update

brew install pyenv

add to .bash_profile

@nopedev
nopedev / .vimrc
Created May 9, 2018 06:33
.vimrc simple setting
"Syntax Highlighting
if has("Syntax")
syntax on
endif
set autoindent
set cindent
set ts=4
set shiftwidth=4
#.bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# ==========
# ALIAS
# ==========
alias ll="ls -alv"
@nopedev
nopedev / docker-desktop-laradock-port-2222.md
Created November 7, 2019 09:10
Docker Desktop / laradock / windows 10 μ‚¬μš©μ‹œ port 2222 κΆŒν•œ νšλ“ λͺ»ν• κ²½μš°

Windows 10 μ—μ„œ docker-compose μ‹€ν–‰μ‹œ port 2222 κΆŒν•œ νšλ“ λͺ»ν•  경우

  • Hyper-V κΈ°λŠ₯ ν™œμ„±ν™”μ‹œ 2222 포트λ₯Ό μ˜ˆμ•½ν•΄λ²„λ €μ„œ laradock μ—μ„œ λͺ»μ“°λŠ”κ²Œ 원인
  1. cmd κ΄€λ¦¬μž κΆŒν•œμœΌλ‘œ μ‹€ν–‰
  2. netsh int ipv4 show excludedportrange protocol=tcp μ‹€ν–‰ν•΄μ„œ 2222 포트 μ˜ˆμ•½λ˜μ–΄ μžˆλŠ”μ§€ 확인
  3. μ˜ˆμ•½λ˜μ–΄ μžˆλ‹€λ©΄ Hyper-V μ’…λ£Œ β†’ PC λ¦¬λΆ€νŠΈ
  4. netsh int ipv4 add excludedportrange protocol=tcp startport=2222 numberofports=1 μ‹€ν–‰ν•΄μ„œ μ§μ ‘κ΄€λ¦¬ν¬νŠΈλ‘œ 등둝
  5. Hyper-V ν™œμ„±ν™” β†’ PC λ¦¬λΆ€νŠΈ
  6. netsh int ipv4 show excludedportrange protocol=tcp μ‹€ν–‰ν•΄μ„œ 2222 ν¬νŠΈκ°€ 직접관리 포트둜 λΉ μ ΈμžˆλŠ”μ§€ 확인
@nopedev
nopedev / gist:58f0efaecd1dda3294f94f2c1dcc40d4
Last active July 15, 2020 08:44
LetsEncrypt Group Change
// Create group with root and nodeuser as members
$ sudo groupadd certusers
$ sudo usermod -a -G certusers root
$ sudo usermod -a -G certusers nodeuser

// Make the relevant letsencrypt folders owned by said group.
$ sudo chgrp certusers /etc/letsencrypt/live/site.domain.com
$ sudo chgrp certusers /etc/letsencrypt/archive/site.domain.com
@nopedev
nopedev / μœˆλ„μš°10 WSL2 Ubuntu.md
Last active March 24, 2022 05:42
μœˆλ„μš°10 WSL2 Ubuntu
  1. update Window

  2. in CMOS enable Virtualization Technology

  3. Powershell or CMD open ad Admin

    Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
    
    # 온라인 μŠ€ν† μ–΄λ₯Ό 톡해 λ‹€μš΄λ‘œλ“œν•  수 μžˆλŠ” Linux 배포판 λͺ©λ‘
    

wsl -l -o | wsl --list --online

@nopedev
nopedev / μš°λΆ„νˆ¬μŠ€μ™‘.md
Last active April 19, 2021 03:36
μš°λΆ„νˆ¬ μŠ€μ™‘νŒŒμΌ

μŠ€μ™‘ 파일/νŒŒν‹°μ…˜ 쑴재 μ—¬λΆ€ 확인

sudo free -m
sudo swapon -s => 아무것도 μ•ˆλ‚˜μ˜€λ©΄ λ―Έμ„€μ • μƒνƒœ

μŠ€μ™‘νŒŒμΌ 생성

# μŠ€μ™‘μš©λ„ 파일 생성

git reset remote commit

  • git reset --hard μˆ˜μ •λ‚΄μš© 남기지 μ•Šκ³  리셋
  • git reset --soft μˆ˜μ •λ‚΄μš© add된 μƒνƒœλ‘œ 리셋
  • git reset --mixed μˆ˜μ •λ‚΄μš© μ›Œν¬μŠ€νŽ˜μ΄μŠ€ νŒŒμΌμ— λ°˜μ˜λ˜μ–΄ μžˆλŠ” μƒνƒœλ‘œ 리셋
> git reset --mixed HEAD~1
> git push -f origin main