Skip to content

Instantly share code, notes, and snippets.

View comchangs's full-sized avatar
🍻
Make more something.

Murry Jeong (정문창) comchangs

🍻
Make more something.
View GitHub Profile
@comchangs
comchangs / nosleep.sh
Created March 19, 2020 07:04
Completely disable sleep on any Mac
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more
# Before doing anything, save your current configuration using
pmset -g
# To disable sleep
sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1;
# And to go back to normal
sudo pmset -a sleep 1; sudo pmset -a hibernatemode [original hibernatemode value]; sudo pmset -a disablesleep 0;
@comchangs
comchangs / 1515eed1dc0-f75e2bea.md
Created May 11, 2018 06:29 — forked from bynaki/1515eed1dc0-f75e2bea.md
npm - --save 옵션 - --save-dev 옵션

npm

--save 옵션

$ npm install github --save

만약 현재 경로에 package.json 이 존재하면 아래와 같이 dependencies 항목에 자동으로 포함된다.