# ์ถ”์ฒœ ์•ฑ

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
###  ๋งฅ์ผ ๊ฒฝ์šฐ
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
Last Updated: 4/13/2025, 11:14:44 PM