This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Second | |
| ## Second | |
| Hi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Test | |
| ## Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/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" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ** | |
| ** 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 | |
| ** | |
| */ |