# ์ถ์ฒ ์ฑ
Magnet
Scroll Reverser
AltTab
# AltTab ์ฌ์ฉ์
# ๋ธ๋๋ฆฌ์คํธ: ์ด๋ฆฐ์๋์ฐ์์๋ AltTab์์ ์จ๊ธฐ๊ธฐ(Finder์ฒ๋ผ ์ค์ , Excel,PowerPoint ๋ฑ)
# ๋ชจ์: ํ
๋ง-Windows10, ํ์ค๋ด์๋์ฐ์ต์๋๋น-15%, ํ์ค๋ด์๋์ฐ์ต๋๋๋น-15%, ๋ง์ฐ์ค์ฌ๋ฆด๋์์น ๋์๋ค์จ๊ธฐ๊ธฐ-์ฒดํฌ
๋ฐ๋๋ค์ด๋จธ(๋งฅ์์ ์์ฑํ ๋ฌธ์ ํ๊ธ์๋ชจ์๋ถ๋ฆฌ)
AppCleaner
TaskBar(์๋์ฐ๊ฐ์ taskbar)
Whale(hwp ๋ฌธ์ ๋ณผ์ ์์)
UTM
Rancher Desktop(Docker Desktop ๋์ฒด)
# ๋งฅ ์ฌ์ฉ๋ฒ
### 0. ๊ธฐํ
- ๋์ผ ํ๋ก๊ทธ๋จ ์ ํ cmd + `
### 1. ํ๋ก๊ทธ๋จ ์ข
๋ฃ
- ํ๋ก๊ทธ๋จ ์ข
๋ฃ cmd + q
- ํํญ๋ง ์ข
๋ฃ cmd + w
### 2. ๋ณต์ฌ ๋ถ์ฌ๋ฃ๊ธฐ
- ํ์ Caps lock
- ๋ณต์ฌ cmd + c
- ๋ถ์ฌ๋ฃ๊ธฐ cmd + V
- ๊ฒฝ๋ก๋ณต์ฌ cmd + option + c
- ์๋ผ๋ด๊ธฐ cmd + C >>> cmd + option + V
- ํ๋ก๊ทธ๋จ ์ข
๋ฃ Cmd + q
- ํํญ๋ง ์ข
๋ฃ cmd + w
### 3. ์คํฌ๋ฆฐ์ท
- Shift + Command + 3 : ํ๋ฉด ๊ทธ๋ฆผ์ ํ์ผ๋ก ์ ์ฅ
- Control + Shift + Command + 3 : ํ๋ฉด ๊ทธ๋ฆผ์ ํด๋ฆฝ๋ณด๋์ ๋ณต์ฌ
- Shift + Command + 4 : ์ ํํ ์์ญ ๊ทธ๋ฆผ์ ํ์ผ๋ก ์ ์ฅ
- Control + Shift + Command + 4 : ์ ํํ ์์ญ ๊ทธ๋ฆผ์ ํด๋ฆฝ๋ณด๋์ ๋ณต์ฌ
### 4. ๋งฅ ํฐ๋ฏธ๋(bash) ์ฌ์ฉ
(Finder > ์ด๋ > Utilities > ํฐ๋ฏธ๋)
- ls : ๋๋ ํ ๋ฆฌ ํ์ผ, ํด๋ ๋ณด์ฌ์ฃผ๊ธฐ
- ls -la :
- cd : change directory
- clear : clear screen. ํ๋ฉด ๊ธ์จ ๋น์์ค
- cp : ์ง์ ๋ ๋๋ ํ ๋ฆฌ๋ก ํ์ผ ๋ณต์ฌ
- rm : ํ์ผ ์ญ์
### 5. ์ถ๊ฐ์ค์
- ์บก์ณ์ ์ต์
์์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ์ธ๋ค์ผ์ ๊ฑฐ
- ํค๋ณด๋ ๋จ์ถํค > ์๋น์ค > ํ์ผ ๋ฐ ํด๋ : ํด๋์์ ์๋ก์ด ํฐ๋ฏธ๋ ์ด๊ธฐ ๋จ์ถํค ์ถ๊ฐ
- ์คํ ๋งํ ๋จ์ถํค: OpenVSCode, OpenTerminal, MakeNewFile ๋ฑ
- ํธ๋ํจ๋: ํธ๋ํจ๋ > ํฌ์ธํธ ๋ฐ ํด๋ฆญ > ํญํ์ฌ ํด๋ฆญํ๊ธฐ ์ฒดํฌ
- ํธ๋ํจ๋: ํธ๋ํจ๋ > ์ถ๊ฐ ์ ์ค์ฒ > ํ์ด์ง ์ธ์ด๋๊ธฐ๊ธฐ ์ฒดํฌ
- Finder ์ค์ (๊ณ ๊ธ):
[x] ๋ชจ๋ ํ์ผ ํ์ฅ์ ๋ณด๊ธฐ
[ ] ํ์ฅ์๋ฅผ ๋ณ๊ฒฝํ๊ธฐ ์ ๊ฒฝ๊ณ ๋ณด๊ธฐ
[x] ํด๋ ์ฐ์ ์ ๋ ฌ: ์๋์ฐ์์(์ด๋ฆ์์ผ๋ก ์ ๋ ฌ ์)
[x] ํด๋ ์ฐ์ ์ ๋ ฌ: ๋ฐ์คํฌํ์์
### 6. ๋จ์ถํค
Command + tab = ํ๋ฉด์ ํ
Command + shift + 3 = ์ ์ฒด ํ๋ฉด ์บก์ฒ , 4 = ๋ถ๋ถ์ ํ ์บก์ฒ , 5 = ์ฐฝ์ ํ ์บก์ฒ
Control + ์์ ๋ฐฉํฅํค = Mission Control
Control + ์๋ ๋ฐฉํฅํค = ํ ํ๋ก๊ทธ๋จ ์ฌ๋ฌ์ฐฝ ๋์ ์๋ ๋ฐฉํฅํค๋ก ์ ํ ๊ฐ๋ฅ (command + n = ์์ฐฝ ๋์ฐ๊ธฐ[shift ์ถ๊ฐํ๋ฉด ์ํฌ๋ฆฟ])
Control + Command + F ํ๋ฉด ์ ์ฒดํ๋ฉด ๋๋ฉด์ ๋์ด๊ฐ๋๋ฐ, Control + ์ข์ฐ๋ก ์ด๋๊ฐ๋ฅ
Command ๋ฐฉํฅํค = ๋ฌธ์ฅ ์ฒซ๋ฒ์งธ์ค๋ก ํค๋ณด๋์ปค์ ์ฎ๊ธฐ๊ธฐ
Option ๋ฐฉํฅํค = ๋จ์ด๋ณ ํค๋ณด๋ ์ปค์ ์ฎ๊ธฐ๊ธฐ
Command + Q = ํ๋ก๊ทธ๋จ ์์ ์ข
๋ฃ ํ๊ธฐ
Command + W = ํ๋ก๊ทธ๋จ ๋๊ธฐ
Command + ์ผ์ชฝ = ๋ค๋ก ๊ฐ๊ธฐ
Command + ์ค๋ฅธ์ชฝ = ์์ผ๋ก ๊ฐ๊ธฐ
Command+, ๋ชจ๋ ์ฑ์์ ํ๊ฒฝ ์ค์ ์ฐฝ์ ์ด๊ธฐ
[command]+[A] Finder ์ฐฝ, ๋๋ ๋ฐํํ๋ฉด์์ ๋ชจ๋ ํ์ผ์ ์ ํ
[command]+[shift]+[A] ์์ฉ ํ๋ก๊ทธ๋จ ํด๋๋ฅผ ์ด๊ธฐ
[command]+[C] ์ ํํ ํ์ผ์ด๋ ํ
์คํธ๋ฅผ ๋ณต์ฌ
[command]+[D] ์ ํํ ํ์ผ์ ๋ณต์
[command]+[shift]+[D] [๋ฐ์คํฌํ] ํด๋๋ฅผ ์ด๊ธฐ
[command]+[I] ์ ํํ ํญ๋ชฉ์ ์ ๋ณด๋ฅผ ๊ฐ์ ธ์ค๊ธฐ
[command]+[option]+[I] ์ ํํ ๋ค์ ํญ๋ชฉ์ ์์ฑ์ ๋ณด๊ธฐ
[command]+[J] Finder ์ฐฝ์ ๋ณด๊ธฐ ์ต์
์ ํ์
[command]+[M] ํ์ฑํ๋ ์ฐฝ์ Dock์ผ๋ก ์ถ์
[command]+[N] ์๋ก์ด Finder ์ฐฝ์ ์์ฑ
[command]+[shift]+[N] ์ ํด๋๋ฅผ ๋ง๋ค๊ธฐ
[command]+[O] ์ ํํ ํ์ผ์ ์ด๊ธฐ
[command]+[V] ๋ณต์ฌ๋ ํ์ผ์ด๋ ํ
์คํธ๋ฅผ ๋ถ์ด๊ธฐ
[command]+[W] ํ์ฑํ๋ ์ฐฝ์ ๋ซ๊ธฐ
[command]+[X] ์ค๋ ค๋๊ธฐ
[command]+[Z] ๋ฐฉ๊ธ ์์
ํ๋ ๋ด์ฉ์ ์ทจ์
[command]+[1]~[4] Finder ๋ณด๊ธฐ ํ์์ ์ ํ
[command]+[`] ์ด๋ ค ์๋ Finder ์ฐฝ ์ํ
[command]+ [ ์ด์ ํด๋๋ก ์ด๋
[command]+ ] ๋ค์ ํด๋๋ก ์ด๋
[command]+ [์์ชฝ ํ์ดํ] ํด๋๋ฅผ ์ด๊ธฐ
[command]+[์๋์ชฝ ํ์ดํ] ์ ํ๋ ํ์ผ์ ์ด๊ฑฐ๋ ์คํ
[command]+[delete] ์ ํํ ํ์ผ์ ํด์งํต์ ๋ฒ๋ฆฌ๊ธฐ
[command]+[shift]+[delete] ํด์งํต์ ๋น์ฐ๊ธฐ
[space bar] ๋๋ [command]+[Y] ํ์ด๋ณด๊ธฐ
[command]+ํ์ผ ๋๋๊ทธ ๋ค๋ฅธ ๋์คํฌ๋ก ํ์ผ์ ๋๋๊ทธํ ๋ ๋ณต์ฌํ์ง ์๊ณ ์ด๋
[option]+ํ์ผ ๋๋๊ทธ ๊ฐ์ ๋์คํฌ๋ก ํ์ผ์ ๋๋๊ทธํ ๋ ์ด๋ํ์ง ์๊ณ ๋ณต์ฌ
### Mac Command Line ๋ช
๋ น์ด
^+U to delete before Cursor
^+K to delete after Cursor
^+W to delete just a word.
^+C to cancel.
^+A to go to the beginning of the line.
^+E to go to the end of the line.
# ์์คํ ํ๊ฒฝ์ค์
ํค๋ณด๋ > ๋จ์ถํค
๋์คํ๋ ์ด > ์ ๋ ฌ
ํ์ธ๋ > ํ๊ฒฝ์ค์
์์คํ
์ค์ > ์์ฌ์ด์ฌ์ฉ > ๋์คํ๋ ์ด > ๋์์ค์ด๊ธฐ: ์ผ๊ธฐ(ํ๋ฉด์ ํํจ๊ณผ๊ฐ ์ฌ๋ผ์ง)
์์คํ
์ค์ > ์์ฌ์ด์ฌ์ฉ > ๋์คํ๋ ์ด > ํฌ์ธํฐ์ธ๊ณฝ์์: ๊ฒ์์
์์คํ
์ค์ > ์์ฌ์ด์ฌ์ฉ > ๋์คํ๋ ์ด > ํฌ์ธํฐ์ฑ์ฐ๊ธฐ์์: ํ์์
์์คํ
์ค์ > ์์ฌ์ด์ฌ์ฉ > ๋์คํ๋ ์ด > ํฌ์ธํฐ ํฌ๊ธฐ: ์ ์ ํ๊ฒ
# Utilities
- VSCode
View > Command Palette > Shell Command : Install 'code' command in PATH
ํด๋์์ ์ํ๋ ํ์ผ ์ฐพ๊ธฐ cmd + p
ํ๋ก์ ํธ์์ ๋งค์๋,ํด๋์ค๋ก ์ด๋ cmd + ๋ง์ฐ์ค ์ผ์ชฝํด๋ฆญ
- Clean My Mac :๋์คํฌ ์ ๋ฆฌ์ฉ
- navicat premium:MySQL ์ฌ๋ฌ๊ฐ ๊ด๋ฆฌ
# ์คํ ๋งํ(Automator)๋ฅผ ์ฌ์ฉ
# ๋ฑ๋กํ ์๋น์ค๋ฅผ ํ์ธํ๋ ์์น๋ ~/Library/services
# 1. Open VSCode
Automator > ๋น ๋ฅธ ๋์ > ์
์คํฌ๋ฆฝํธ ์ด๊ธฐ
ํ์ฌ์์ ํ๋์์
ํ๋ฆ:ํ์ผ ๋๋ ํด๋
์ ํํญ๋ชฉ์์น: Finder.app
(์
์คํฌ๋ฆฝํธ์คํ)ํต๊ณผ์
๋ ฅ: ๋ณ์
---
open -n -b "com.microsoft.VSCode" --args "$*"
---
# 2. Open Terminal
Automator > ๋น ๋ฅธ ๋์ > AppleScript ์คํ
์์
ํ๋ฆ์์ : ์
๋ ฅ์์
์ ํํญ๋ชฉ์์น: ๋ชจ๋ ์์ฉ ํ๋ก๊ทธ๋จ
on run {input, parameters}
tell application "Terminal"
if it is running then
do script ""
end if
activate
end tell
end run
# 3. Make NewFile
Automator > ๋น ๋ฅธ ๋์ > AppleScript ์คํ
์์
ํ๋ฆ์์ : ์
๋ ฅ์์
์ ํํญ๋ชฉ์์น: Finder.app
---
tell application "Finder" to make new file at (the target of the front window) as alias
---
# 4. Make NewFile (Application ๋ฒ์ )
Automator > ์์ฉํ๋ก๊ทธ๋จ > AppleScript ์คํ
## ์คํฌ๋ฆฝํธ1 (์คํฌ๋ฆฝํธ1,2,3์ค ํ๋์ ํ)
---
tell application "Finder" to make new file at (the target of the front window) as alias
---
## ์คํฌ๋ฆฝํธ2
---
tell application "Finder" to make new file at (the target of the front window) as alias with properties {name:"newfile.txt"}
---
## ์คํฌ๋ฆฝํธ3
---
on run {input, parameters}
tell application "Finder"
set selection to make new file at (get insertion location) with properties {name:"newfile.txt"}
end tell
return input
end run
---
## ํ์ผ์ ์ฅ
๋ณ๋์ ์ฅ: MakeNewFile.app
์์น: /Applications > BlankFile.app
## Finder์ ์ถ๊ฐ๋ฐฉ๋ฒ
### ์ถ๊ฐ
- cmd๋ฅผ ๋๋ฅธ ์ํ์์ Finder ์๋จ์ Drag&drop์ผ๋ก ์ถ๊ฐ
### ์ญ์
cmd๋ฅผ ๋๋ฅธ ์ํ์์ Finder ์๋จ์ ๋ฒํผ์ Drag&drop์ผ๋ก ์ ์ธ
## ์ฑ ์์ด์ฝ ๋ณ๊ฒฝ
MakeNewFile.app > ์ฐํด๋ฆญ > ์ ๋ณด๊ฐ์ ธ์ค๊ธฐ > ์ต์๋จ ์ผ์กฑ ์ด๋ฏธ์ง์ ์๋ก์ด์ด๋ฏธ์ง๋ฅผ ๋๋๊ทธํด์ ๋ฐ๊พธ๊ธฐ
# 5. Change Display
๋น ๋ฅธ๋์ > ์
ธ ์คํฌ๋ฆฝํธ ์คํ
ํ์ฌ ์์ ํ๋ ์์
ํ๋ฆ(์์
ํ๋ฆ ์์ ): ์
๋ ฅ์์
---
/usr/local/bin/displayplacer "id:A374115D-FB70-7BFF-E15E-ECCF3261834E res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(0,0) degree:0" "id:102B46B9-C736-BEA4-10D6-7B4924CB0C0B res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(1920,0) degree:0"
exit 0;
---
# mac brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
.zshrc์์ ZSH_THEME="robbyrussell" => ZSH_THEME="simple"
# mac nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install 16.17.1
nvm use 16.17.1
nvm alias default 16.17.1
# pyenv
# https://dchkang83.tistory.com/199
brew install pyenv
# ๋ฒ์ ๋ชฉ๋กํ์ธ
pyenv install --list
pyenv install --l
# ํ์๋ฒ์ ์ค์น
pyenv install 3.10.6
# ์ค์ (์ ์ญ)
pyenv global 3.10.6
# ์ค์ (ํ์ฌํ๋ก์ ํธ)
pyenv local 3.10.6
# ์ค์ (ํ์ฌshell)
pyenv shell 3.10.6
# ์ค์น๋ฒ์ ๋ชฉ๋กํ์ธ
pyenv versions
# ๋ฒ์
pyenv version
# python ์ฌ์ค์น
ls -l /usr/local/bin/python*
ln -s -f /usr/local/bin/python3.10 /usr/local/bin/python
#๊ธฐ์กด ๋ฒ์ ์ญ์
rm -rf /usr/local/bin/python*
rm -rf /usr/local/bin/pip*
# ํ๊ฒฝ๋ณ์ ์ญ์
brew doctor
brew cleanup
python -m ensurepip --default-pip
python -m pip install --upgrade pip
# ํฐ๋ฏธ๋์์ ํ์ธ๋ ์ด๊ธฐ
open .
# Finder ์จ๊นํ์ผ ๋ณด๊ธฐ
shift + cmd + .
defaults write com.apple.Finder AppleShowAllFiles YES
killall Finder
# ๋ค์ ์จ๊น
defaults write com.apple.Finder AppleShowAllFiles NO
killall Finder
# macOS Sierra์์ ์ํ(โฉ) ๋์ ๋ฐฑ ์ฟผํธ(`) ์ ๋ ฅํ๊ธฐ
#~/Library ํด๋๋ก ์ด๋ํด์ KeyBindings ํด๋๋ฅผ ์ถ๊ฐํ๋ค.
#~/Library/KeyBindings ํด๋์ DefaultkeyBinding.dict ํ์ผ์ ๋ง๋ ๋ค.
#DefaultkeyBinding.dict ํ์ผ์ ์๋์ ์ฝ๋๋ฅผ ์ถ๊ฐํ๋ค
mkdir ~/Library/KeyBindings
touch ~/Library/KeyBindings/DefaultkeyBinding.dict
vi ~/Library/KeyBindings/DefaultkeyBinding.dict
{
"โฉ" = ("insertText:", "`");
}
# ํ๊ธ์ ํ Shift + space ๋ณ๊ฒฝ
1. ์์คํ
ํ๊ฒฝ์ค์ > ํค๋ณด๋ > ๋จ์ถํค > ์
๋ ฅ์์ค > ์
๋ ฅ ๋ฉ๋ด์์ ๋ค์ ์์ค ์ ํ ๋จ์ถํค๋ฅผ fn + shift + space ๋ก ๋ณ๊ฒฝ
(ํ์ ๋๋ ์ด๊ฐ ์์ผ๋ ค๋ฉด ์
๋ ฅ ๋ฉ๋ด์์ ๋ค์ ์์ค ์ ํ)
2. 1๋ฒ์ด ์ ๋ ๊ฒฝ์ฐ ~/Library/Preferences/com.apple.symbolichotkeys.plist ํ์ผ ์์์ 60,61 ๋ ์ค์ ํ๋๋ฅผ ์ ํํ๊ณ value์ ๊ฐ์ 131072๋ก ๋ณ๊ฒฝ ํ ์ฌ๋ถํ
61(์
๋ ฅ ๋ฉ๋ด์์ ๋ค์ ์์ค ์ ํ)
60(์ด์ ์
๋ ฅ ์์ค ์ ํ)
# ํ๊ธ์ ํ ํค๋ณด๋ ์ค๋ฅธ์ชฝ ํ์์ ํํค
# ํ์ฑํ
mkdir -p /Users/Shared/bin
echo '''#!/bin/sh\nhidutil property --set '\'{\"UserKeyMapping\":\[\{\"HIDKeyboardModifierMappingSrc\":0x7000000e7,\"HIDKeyboardModifierMappingDst\":0x70000006d\}\]\}\''''' > /Users/Shared/bin/userkeymapping
chmod 755 /Users/Shared/bin/userkeymapping
sudo cat<<: >/Users/Shared/bin/userkeymapping.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>userkeymapping</string>
<key>ProgramArguments</key>
<array>
<string>/Users/Shared/bin/userkeymapping</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
:
sudo mv /Users/Shared/bin/userkeymapping.plist /Library/LaunchAgents/userkeymapping.plist
sudo chown root /Library/LaunchAgents/userkeymapping.plist
sudo launchctl load /Library/LaunchAgents/userkeymapping.plist
์ผ์ชฝ ์๋จ ์ฌ๊ณผ ๋ก๊ณ ํด๋ฆญ
์์คํ
> ํค๋ณด๋ > ๋จ์ถํค > ์
๋ ฅ์์ค > ์
๋ ฅ ๋ฉ๋ด์์ ๋ค์ ์์ค ์ ํ > ์ค๋ฅธ์ชฝ command ํด๋ฆญ(F18)
# ๋นํ์ฑํ
sudo launchctl remove userkeymapping
sudo rm /Library/LaunchAgents/userkeymapping.plist
sudo rm /Users/Shared/bin/userkeymapping
# Terminal alias
alias ll='ls -al'
# ssh๋ฅผ config ์ฌ์ฉํด์ ์ ์ ./ssh/config
ssh dev ssh prod
# ssh dev
Host stage
HostName 127.0.0.1
User root
Port 22
# ssh prod
Host prod
HostName 127.0.0.1
User root
Port 22
# scp
### ์๊ฒฉํ์ผ์ ๋ก์ปฌ๋ก ๋ค์ด๋ก๋
scp -P 22 root@127.0.0.1:/home/oseongryu/test.txt ~/dev
### ๋ก์ปฌํ์ผ์ ์๊ฒฉ์ผ๋ก ์
๋ก๋
scp -P 22 ~/dev/test.txt root@127.0.0.1:/home/oseongryu/
scp -o 'ProxyJump sshconfig' root@127.0.0.1:/home/oseongryu/test.txt ~/dev
# mac python pip ( zsh: command not found: pip)
### solution 1
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
### solution 2
which pip
which pip3
alias pip=/usr/local/bin/pip3
source ~/.zshrc
# pbcopy pbpaste
ifconfig | pbcopy
pbpaste
pbpaste > test.md
# Naver Cloud
### ๋งฅ์ผ ๊ฒฝ์ฐ
brew install awscli
which aws
### python์ ์ค์น๊ฐ ์๋ฃ๋์ด ์์ ๊ฒฝ์ฐ
pip install awscli==1.15.85
### aws์ configure๋ Naver Cloud https://www.ncloud.com/mypage/manage/authkey ์์ ํ์ธ
aws configure
### ์ค์ ํ
์คํธ
aws --endpoint-url=https://kr.object.ncloudstorage.com s3 ls s3://my-object-storage
### Object Storage์ ๋ฒํท(ํด๋)์ ๋ชจ๋ ํ์ผ์ ๋ก์ปฌ์ ๋๊ธฐํํฉ๋๋ค.
aws --endpoint-url=https://kr.object.ncloudstorage.com s3 sync s3://<bucket_name>[/<object_name>] <local_directory_name>
### ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์ ๋ชจ๋ ํ์ผ์ Object Storage์ ๋ฒํท(ํด๋)์ ๋๊ธฐํํฉ๋๋ค.
aws --endpoint-url=https://kr.object.ncloudstorage.com s3 sync <local_directory_name> s3://<bucket_name>[/<object_name>]
# Azure Cli
brew install azure-cli
az login
npx express-generator myExpressApp --view pug
cd myExpressApp
npm install
az webapp up --sku F1 --name <app-name>
az webapp up --sku F1 --name myExpressApp
npm start
# ์ฌ๋ฆฝ๋ชจ๋
# ์ฌ๋ฆฝ๋ชจ๋ ๋นํ์ฑํ
sudo pmset -c disablesleep 1
# ์ฌ๋ฆฝ๋ชจ๋ ํ์ฑํ
sudo pmset -c disablesleep 0
# vscode
xattr "/Applications/Visual Studio Code.app"
sudo xattr -r -d com.apple.quarantine "/Applications/Visual Studio Code.app"
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
arch -x86_64 pod install
# How to change proxy setting using Command line in Mac
# https://superuser.com/questions/316502/how-to-change-proxy-setting-using-command-line-in-mac-os
sudo networksetup -setwebproxy "Wi-Fi" 192.0.0.4 8000
sudo networksetup -setsecurewebproxy "Wi-Fi" 192.0.0.4 8000
sudo networksetup -setwebproxystate "Wi-Fi" off
sudo networksetup -setsecurewebproxystate "Wi-Fi" off
sudo networksetup -setwebproxystate "Wi-Fi" on
networksetup -getwebproxy "Wi-Fi"
networksetup -getsecurewebproxy "Wi-Fi"
# mac sudo ๋ช ๋ น์ด ๋น๋ฐ๋ฒํธ ์์ด
sudo visudo
์ฌ์ฉ์๋ช
ALL=(ALL) NOPASSWD:ALL
# mac change screenshot name
defaults write com.apple.screencapture name "shot"
killall SystemUIServer
defaults write com.apple.screencapture name "Screenshot"
# ๋ ์ง์ ์ธ
defaults write com.apple.screencapture "include-date" 0;killall SystemUIServer
# ๋ ์งํฌํจ
defaults write com.apple.screencapture "include-date" 1;killall SystemUIServer
# mac dock speed
# ํ์ฑํ
defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0 && killall Dock
defaults write com.apple.dock autohide -bool true && defaults write com.apple.dock autohide-delay -float 0 && defaults write com.apple.dock autohide-time-modifier -float 0.25 && killall Dock
# ๋นํ์ฑํ
defaults delete com.apple.dock autohide && defaults delete com.apple.dock autohide-delay && defaults delete com.apple.dock autohide-time-modifier && killall Dock
# launcherpad
#๋ฐ์นํจ๋ ์์ด์ฝ ํฌ๊ธฐ ์กฐ์
defaults write com.apple.dock springboard-columns -int 10
defaults write com.apple.dock springboard-rows -int 10
#๋ฐ์นํจ๋ ์ด๊ธฐํ
killall Dock
# ์ฒ์ ์ํ๋ก ๋์๊ฐ๊ธฐ
defaults delete com.apple.dock springboard-columns
defaults delete com.apple.dock springboard-rows
# ๋ฐ์นํจ๋ ์ด๊ธฐํ
killall Dock
# ๋ฐ์นํจ๋ ์ค์ ์์ ์ด๊ธฐํ
# defaults write com.apple.dock ResetLaunchPad -bool true
# mac xcode ์ ๋ฆฌ
# 1. Xcode Archive ์ญ์
~/Library/Developer/Xcode/Archives
# 2. Simulator Device ์ญ์
~/Library/Developer/Xcode/iOS DeviceSupport/
# 3. Project Build ์ญ์
~/Library/Developer/Xcode/DerivedData/
# 4. Device Log ์ญ์
~/Library/Developer/Xcode/iOS Device Logs/
# [mac] mkdir Read-only file system
# SIP (Security Integrity Protection) ๋นํ์ฑํ
### ๋ถํ
์ cmd + R
csrutil disable
### bash
sudo mount -uw /
### SIP ํ์ฑํ
scrutil enable
# ์ฌ๋ณผ๋ฆญ๋งํฌ (\t๋ก ๋์ด์ฐ๊ธฐ)
# ์ค์ ํ ์ฌ์์
sudo vi /etc/synthetic.conf
/etc/synthetic.conf
---
data /Users/doo/data
---
# hosts
sudo vi /private/etc/hosts
127.0.0.1 local.co.kr
127.0.0.1 local.test.co.kr
# ๋ฃจํธ๋ ๋ฒจ ํ์ ์ฌ๋ณผ๋ฆญ๋งํฌ ์์ฑ
sudo vi /etc/synthetic.conf synthetic.conf ํ์ผ ์ถ๊ฐํ ์ฌ๋ถํ
tomcat /Users/oseongryu/DEV/tomcat
java /Users/oseongryu/DEV/java
# [error] cp: utimensat: /usr/local/Cellar/ca-certificates/.: Permission denied
sudo chown -R ${USER}:staff /usr/local/Cellar/
# displayplacer ๋งฅ๋ถ ๋์ผ๋ชจ๋ํฐ ์์น ๋ณ๊ฒฝ ๋ฌธ์ ํด๊ฒฐ
# https://yoshikixdrum.tistory.com/316
brew tap jakehilborn/jakehilborn && brew install displayplacer
# ์ ์ฉ
displayplacer list
# ํ์ฌ์ฉ
displayplacer "id:A374115D-FB70-7BFF-E15E-ECCF3261834E res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(0,0) degree:0" "id:102B46B9-C736-BEA4-10D6-7B4924CB0C0B res:1920x1080 hz:60 color_depth:8 enabled:true scaling:off origin:(1920,0) degree:0"
# ๋งฅ๋ถ ํ๊ธ ์์ ๋ชจ์ ๋ถ๋ฆฌ ๋ฌธ์ ํด๊ฒฐ
์์คํ
์ค์ > ํค๋ณด๋ > ํ
์คํธ์
๋ ฅ > ์
๋ ฅ์์ค ํธ์ง
๋ง์ถค๋ฒ ์ธ์ด๋ณ ์๋์ค์ ์ ํ๊ตญ์ด๋ก ๋ณ๊ฒฝ
๋ง์ถค๋ฒ ์๋ ์์ ์ฒดํฌํด์
์๋์ผ๋ก ๋ฌธ์ฅ์ ๋๋ฌธ์๋ก ์์ ์ฒดํฌํด์
์คํ์ด์ค๋ฅผ ๋ ๋ฒ ๋๋ฌ ๋ง์นจํ ์ถ๊ฐ ์ฒดํฌํด์
Touch Bar ์
๋ ฅ ์ ์ ์ฒดํฌํด์
์ค๋งํธ ์ธ์ฉ ๋ถํธ ๋ฐ ๋์ ์ฌ์ฉ ์ฒดํฌํด์
์ค์ ํ ๋ฆฌํ๋ ์
๋ฌธ์ ํด๊ฒฐ ํ ํ์ํ ์ฒดํฌ๋ฐ์ค ๋ค์์ฒดํฌ
# https://playnewway.com/entry/๋งฅ๋ถ-ํ๊ธ-์์-๋ชจ์-๋ถ๋ฆฌ-๋ฌธ์ -ํด๊ฒฐ๋ฒ-๋ง์ฐ์ค-๋ง์ผ๋ก
# mac crontab
### mac crontabl ์ถ๊ฐ
# ํฌ๋ก ํญ ๋ฑ๋ก (ํฌ๋ก ํญ ์ถ๊ฐ ํ ๊ถํ ๋ฌธ์ ๋ฐ์์ chmod +x filename)
crontab -e
# 10๋ถ๋ง๋ค ์ํ
*/10 * * * * $HOME/git/python-selenium/venv/bin/python3 $HOME/git/python-selenium/selenium/youtube_fredit.py
# 5๋ถ๋ง๋ค ์ํ
*/5 * * * * $HOME/git/python-selenium/venv/bin/python3 $HOME/git/python-selenium/selenium/youtube_fredit.py
# 5๋ถ๋ง๋ค ์ํ mail์ด ์ค์ง ์๋๋ก ๋ก๊ทธ๋ก ์ฒ๋ฆฌ
*/5 * * * * $HOME/git/python-selenium/venv/bin/python3 $HOME/git/python-selenium/selenium/youtube_fredit.py >> $HOME/python.log 2>&1
# ํฌ๋ก ํญ ๋ชฉ๋ก
crontab -l
# mac mail(You have new mail.)
# mail list
cat /var/mail/$USER
# mail delete
sudo rm /var/mail/$USER
# mac ์์ ํ๋ก๊ทธ๋จ, ๋ฐฑ๊ทธ๋ผ์ด๋์์ ํ์ฉ
# ์์คํ
์ค์ > ์ผ๋ฐ > ๋ก๊ทธ์ธ ํญ๋ชฉ
# Finder > shift + cmd + G ์ด๋ > .plist ์ญ์
~/Library/LaunchAgents
~/Library/LaunchDaemons
~/Library/StartupItems
/Library/LaunchAgents
/Library/LaunchDaemons
/Library/StartupItems
# mac ํด๋๋ช ํ์งํ
/System/Library/CoreServices/SystemFolderLocalizations/ko.lproj/SystemFolderLocalization.strings
# mac ํ๊ธํ์ผ๋ช ํ๊ธ ์์๋ชจ์ ๋ถ๋ฆฌ ํ์ ํด๊ฒฐ
https://blog.naver.com/daekkai71/223176789304
brew install convmv
#ํ์ผ๋ณํ
convmv -f utf8 -t utf8 --nfc --notest แแ
ญแแ
ฎแซแแ
ณแซแแ
ฎแแ
ตแแ
กแซแแ
งแซแแ
งแผแแ
กแซแแ
ข_20250124.png
for i in "$@"; do
convmv -f utf-8 -t utf-8 --nfc --notest "$i"
done
# mac Finder ์ค์
# Finder๋ ์ต๋ํ ๊ธฐ๋ณธ๊ฐ ์ฌ์ฉ์ผ๋ก ์ค์ ๋๋๋ก ํ๊ธฐ
# ํ๊ฒฝ ์ค์ ์ด๊ธฐํ $HOME/Preferences/com.apple.finder(.plist), com.apple.systempreferences(.plist) ํ์ผ 2๊ฐ๋ฅผ ์ญ์ ํ๊ณ ์ฌ์๋
# rm -rf $HOME/Library/Preferences/com.apple.finder.plist
# rm -rf $HOME/Library/Preferences/com.apple.systempreferences.plist
# ํ์ธ๋ ์ ์ฒด๊ฒฝ๋ก๋ก ๋ณด๊ธฐ: defaults write com.apple.finder _FXShowPosixPathInTitle YES
# ํ์ธ๋ ์์ํ๋ก ๋ณด๊ธฐ: defaults write com.apple.finder _FXShowPosixPathInTitle NO
1. Finder > ๋ณด๊ธฐ > ๊ฒฝ๋ก ๋ง๋ ๋ณด๊ธฐ
1. Finder > ๋ณด๊ธฐ > ์ํ ๋ง๋ ๋ณด๊ธฐ
1. ๋ชฉ๋ก๋ณด๊ธฐ
2. ๊ณ์ธต๋ณด๊ธฐ: ์์ ์ผ, ํฌ๊ธฐ, ์ข
๋ฅ
3. ์๋์ ๋ ์ง ์ฌ์ฉ ์ฒดํฌํด์
# mac .DS_Store
# ์ผ๊ด์ญ์
sudo find / -type f -name '\.DS_Store' -print -delete
# .DS_Store ์์ฑ ๋ง๊ธฐ
defaults write com.apple.desktopservices DSDontWriteNetworkStores ture
# mac brew bundle, cask, mas
# brew : cask, mas, wget ๋ฑ ๊ฐ๋ฐ ํจํค์ง
# cask : atom, docker ๋ฑ ์น์ฌ์ดํธ์์ ๋ค์ด ๋ฐ์ ์ค์นํ๋ ์ดํ๋ฆฌ์ผ์ด์
# mas : ์นด์นด์คํก, wechat ๋ฑ ์ฑ์คํ ์ด๋ฅผ ํตํด ์ค์นํ๋ ์ดํ๋ฆฌ์ผ์ด์
# brew search microsoft
brew install microsoft-remote-desktop
brew install keka
# cask (deprecated brew install --cask)
brew install cask
brew cask install <application>
brew cask list
brew cask remove <application>
# mas
brew install mas
# mas์์ Windows App ๊ฒ์
mas search "Windows App"
mas install 1295203466
# iRightMouse
# Microsoft To Do
# Magnet
# ๋ฌด๋น์คํธ
# Microsoft OneNote
# ์ ๋์ฝ HTTPS
# RunCat
# ์ฌใ
์ฌ์
# Friendly Streaming
# Translate Tab
# My Wonderful Days
#brewfile๋ฆฌ์คํธ์๋ ๋ค์ ๋ฌธ๊ตฌ๋ฅผ ์ถ๊ฐ
mas "Windows App", 1295203466
mas list
#brewfile ์์ฑ
brew bundle dump
#brewfile ๋ด์ฉ ํ์ธ
cat brewfile
#brewfile ์คํ
brew bundle
# https://imch.dev/posts/lets-setup-team-development-environment-using-brewfile/
brew install --cask docker
# โDocker.appโ์(๋) ์ธํฐ๋ท์์ ๋ค์ด๋ก๋๋ ์ฑ์
๋๋ค. ์ด๊ฒ ์ต๋๊น?
echo "$pass" | sudo -S xattr -dr com.apple.quarantine /Applications/Docker.app
# Operation not permitted
์ค์ > ๊ฐ์ธ์ ๋ณด ๋ณดํธ ๋ฐ ๋ณด์ > ์ ์ฒด ๋์คํฌ ์ ๊ทผ๊ถํ ํ์ฉ
# mac direnv
# https://www.44bits.io/ko/post/direnv_for_managing_directory_environment
ํด๋๋ณ ํ๊ฒฝ๊ด๋ฆฌ
# References
https://oddcode.tistory.com/126
๋ค์ด๋ฒํด๋ผ์ฐ๋ Object Storage CLI :
https://cli.ncloud-docs.com/docs/guide-objectstorage
https://cli-fin.ncloud-docs.com/docs/guide-objectstorage
AzureCli: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos
AzureCli: https://docs.microsoft.com/ko-kr/cli/azure/get-started-with-azure-cli
โ - centos-nginx - powershell โ