Skip to content

Instantly share code, notes, and snippets.

View eunchurn's full-sized avatar
🧬
Dancing

Eunchurn Park eunchurn

🧬
Dancing
View GitHub Profile
@eunchurn
eunchurn / change-centos-mirror.sh
Created December 7, 2023 15:25 — forked from lesstif/change-centos-mirror.sh
change centos mirror to korea's portal.(CentOS 를 카카오와 네이버로 변경)
#!/usr/bin/env bash
BASE_REPOS=/etc/yum.repos.d/CentOS-Linux-BaseOS.repo
PARAM="r:hkn"
KAKAO="mirror.kakao.com\/centos"
NAVER="mirror.navercorp.com\/centos"
if [ "$(id -u)" != "0" ]; then
echo "'$0' must be run as root" 1>&2
@eunchurn
eunchurn / change-ubuntu-mirror.sh
Created December 7, 2023 15:25 — forked from lesstif/change-ubuntu-mirror.sh
우분투(ubuntu)의 apt 기본 미러(mirror)를 다음 카카오(kakao), 카이스트(kaist), 부경대(harukasan) 으로 변경
#!/usr/bin/env bash
SL=/etc/apt/sources.list
PARAM="r:hm:dnak"
KAKAO=mirror.kakao.com
KAIST=ftp.kaist.ac.kr
HARU=ftp.harukasan.org
@eunchurn
eunchurn / second.post
Created January 29, 2020 01:03
Second post
# Second
## Second
Hi
@eunchurn
eunchurn / intro.post
Created January 29, 2020 00:59
Test Post
# Test
## Test
@eunchurn
eunchurn / nvm-windows npm upgrade
Created July 4, 2019 09:36
npm upgrade on nvm-windows
cd %APPDATA%\nvm\v10.15.3 # or whatever version you're using
mv npm npm-old
mv npm.cmd npm-old.cmd
cd node_modules\
mv npm npm-old
cd npm-old\bin
node npm-cli.js i -g npm@latest
@eunchurn
eunchurn / post-merge
Created June 27, 2019 04:55 — forked from GianlucaGuarini/post-merge
Git hook that gets triggered after any 'git pull' whenever one of the files specified has changed. Useful to update any web application dependency using bower npm or composer
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# forked by Gianluca Guarini
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep -E --quiet "$1" && eval "$2"
}
@eunchurn
eunchurn / ipc.example.js
Created January 16, 2019 10:32 — forked from Xaekai/ipc.example.js
Example of Interprocess communication in Node.js through a UNIX domain socket
/*
**
** Example of Interprocess communication in Node.js through a UNIX domain socket
**
** Usage:
** server> MODE=server node ipc.example.js
** client> MODE=client node ipc.example.js
**
*/