- ref; http://clien.net/cs2/bbs/board.php?bo_table=lecture&wr_id=286974
- 동영상 인코딩 프로그램 : Handbrake
- PPC때부터 존재하는 OSX 인코더. 직관적이고 편리함. 결재하듯 처음시작부터 메뉴를 선택해가며 인코딩에 이름
- 다운로드 링크 : https://handbrake.fr/downloads.php
- 자막변환 프로그램 : MinySubtitleConverter
- 국내 프로그래머 Firen님의 개인 제작 프로그램으로 본인읜 블로그인 Firen's Diary에 Windows , OSX 및 Java 버전을 배포하고 계심
- 다운로드 링크 : http://goo.gl/LbfNfL
- 영상/자막 병합 프로그램 : Subler
- 이탈리아의 Damiano Galassi(galad87)님이 bitbucket에 공개하신 프로그램으로 영상/자막의 병합에 탁월함.
- 다운로드 링크 : https://bitbucket.org/galad87/subler/overview
-
-
Save hyunjun/cf75a8a9367b272c5707 to your computer and use it in GitHub Desktop.
-
MOV -> mp4 size 감소
ffmpeg -n -loglevel error -i <MOV> -vcodec libx264 -crf 28 -preset faster -tune film <mp4>
test에서 11.1MB가 5.2MB로 감소
-
mp4에서 소리 제거
- FFmpeg 영상 파일에서 음성 제거하기 - 나눔팁
ffmpeg -i <input> -an <output>
-
mp4에서 mp3 추출
ffmpeg -i <mp4> [-ss 00:00:00 -to 00:11:26] -b:a 320K -vn <mp3>
-
images -> mp4 병합
ffmpeg -f image2 -framerate 25 -pattern_type sequence -start_number 214 -r 3 -i IMG_0%03d.JPG -s 3840x1774 test.avi
- -start_number는 filename에 쓸 image들의 시작 번호. 즉 -start_number 214와 IMG_0%03d.JPG는 IMG_0214.JPG부터 만들기 시작
- -r이 frame rate, 즉 -r 3는 초당 3장
- 해상도(3840x1774)는 사진 해상도에 맞춰서
-
mp3 file 합치기
❯ cat list.txt file 'start_volume.mp3' file 'end_volume.mp3' ... ❯ ffmpeg -f concat -safe 0 -i list.txt -c copy merged.mp3
-
mp3 volume 조정
- FFmpeg을 이용한 음원 볼륨의 평준화
ffmpeg -i org.mp3 -filter volumedetect -f null -
volume 값 정보 출력ffmpeg -i org.mp3 -filter volume=-14.5dB adjusted.mp3
-면 작아지고 +면 커지는 쪽으로 조정
-
iMovie 동영상에 음악 더하기(동영상에 이미 존재하는 음악/음성을 놔둔채 더하는 것)
- 기존 machine
- chrome
- chrome session 동기화 -> bookmark 관리자 이용
- firefox; session 동기화 -> extension 사용
- chrome
- Apple
- Apple ID
- 기존 machine 삭제 (icloud.com이나 system preference 통해 삭제 가능)
- 새 machine 설정
- Internet accounts 추가
- Keyboard 설정 변경
- Korean 추가
- Input source
- Ctrl <-> Caps lock
- 외부 연결 keyboard가 있으면 별도 변경
- 외부 키보드 사용시 필요하면 option <-> command, 애플키보드와 별도 설정
- copy & paste; use cmd-shift-c
- Display 설정: layout 등
- Touchpad 설정 변경 필요
- Finder; 경로 막대 보기
- Apple ID
- Brew
- install apps using Brewfile
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(오래 걸림)brew bundle --file=./Brewfile
- 수정 필요, 매우 오래 걸림 + GitHub account 입력 필요, 특히 Xcode가 엄청나게 오래 걸리니 별도로 하는 게 나음
- neovim, firefox 실패했다고 나오는데 실제로는 사용 가능
- Font
- Cascadia
- JetBrains Mono
- Input
- D2Coding font
brew tap caskroom/fonts; brew cask install font-hack-nerd-font; cd ~/Library/Fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf
- git
-
- 기존 SSH 키 확인 - GitHub Docs
- 새 SSH 키 생성 및 ssh-agent에 추가 - GitHub Docs
- GitHub 계정에 새 SSH 키 추가 - GitHub Docs
- SSH 연결 테스트 - GitHub Docs
- company 관련 추가 설정 https://gist.github.com/hyunjun/cf75a8a9367b272c5707?permalink_comment_id=4562443#gistcomment-4562443
- 그냥 하면 정상 동작하지 않아 우선
GIT_SSH_COMMAND='ssh -i ~/.ssh/id_ed25519_atlas -o IdentitiesOnly=yes' git clone git@company:goodatlas/<repository>.git
와 같은 방식으로 하니 동작
- 그냥 하면 정상 동작하지 않아 우선
-
git config 주의. 개인/회사 구분 필요. 자세한 방법은 https://gist.github.com/hyunjun/5b3124a6110d5198e8cc#file-configuration-md
-
~/.ssh/config 다음 내용 추가해야 할 수도 있음 https://stackoverflow.com/questions/15589682/ssh-connect-to-host-github-com-port-22-connection-timed-out
Host github.com HostName ssh.github.com Port 443
-
git lga 설정
-
lsd 설치?
-
- vi
- 시작하고
:SPUpdate
실행 - 만약 vi 설치 후 SpaceVim이 자동으로 plugin update를 안 하는 경우
- https://github.com/SpaceVim/SpaceVim/issues/4790
ln -s ~/.SpaceVim ~/.config/nvim
- https://github.com/SpaceVim/SpaceVim/issues/4790
- 시작하고
- Application
- Chrome
- TabCopy extension에서 Format을 markdown으로 설정 변경하기
- Calendar
- iCalc 찾아보기
- Password app: 뭘 쓸지 아직 미정
/usr/local/anaconda3/bin/conda update conda -y && /usr/local/anaconda3/bin/conda update anaconda -y && brew update && brew upgrade
- Ridibooks; 내 기기 관리에서 기존 기기 삭제 후 새 기기에 앱 설치
- JetBrains
- 필요한 경우 license 갱신
- ideavim
- scala plugin, JDK, Scala SDK, SBT tool window
- Slack 모든 space: agapelover4u@yahoo.co.kr, hyunjun.chung@gmail.com, 회사 account
- sdkman https://mungingdata.com/java/sdkman-multiple-versions-java-sbt-scala/
- IntelliJ
- scalafmt 설정
- feedly -> hyunjun.jeong@gmail.com
- notion.so -> halatha@knou.ac.kr (google)
- Chrome
- 본격 macOS에 개발 환경 구축하기
xcode-select --install
이 오류나는 경우 System Preferences에서 Software Update 선택git config --global color.ui auto
ssh-keygen -t rsa
; github ssh key 등록(github.com, bitbucket.org)- SpaceVim
- cp init.toml ~/.SpaceVim.d/init.toml
colorscheme = "onedark"
+ layer 설정vimcompatible = true
원래 vim과 다른 keybinding이 있는데 이걸 다시 원래대로 돌리는 기능
vi ~/.SpaceVim/autoload/SpaceVim.vim
let g:spacevim_relativenumber
를 1 -> 0으로 바꾸면 set norelativenumberlet g:spacevim_project_rooter_automatically
를 1 -> 0으로 바꾸면 set autochdir
- plugin 전체 업데이트는
:SPUpdate
- etc
- autochdir
- ~/.SpaceVim.d/init.toml이나 ~/.SpaceVim.d/init.vim, ~/.vimrc 파일을 만들어 설정하는 건 동작하지 않음
set norelativenumber
- ~/.config/nvim/init.vim 혹은 ~/.SpaceVim/config/main.vim 혹은 ~/.SpaceVim/init.vim 에 추가
- ~/.vim/init.vim 혹은 ~/.vim/config/main.vim 이 가장 마지막 혹은 최종 overriding인 듯?
- custom-configuration
- autochdir
- layer 설정
- colorscheme은 꼭 추가해야 필요한 plugin이 추가되고 options의 colorscheme이 정상 동작
- cp init.toml ~/.SpaceVim.d/init.toml
- tmux; 설정은 여기 나온 거 쓰지 말고(나랑 안 맞음) 저장소에 있는 거 가져다 쓸 것. 물론 여기 나온 거는 설정 참고할 때 쓰면 좋음
- 2023.04
2022.03기준
- macOS 안내서
- 본격 macOS에 개발 환경 구축하기
- 개발자를 위한 애플 실리콘 M1 맥 세팅 | 44BITS
- M1 맥북 개발 환경 세팅
- 애플 실리콘(M1) 터미널 환경 설정하기 | ~/xo.dev
- macOS Setup after 15 Years of Linux · HookRace Blog
- M1, M1 Pro, M1 Max 맥북에서 처음해야하는 일 - Homebrew부터
-
keyboard, trackpad, internet accounts등
-
terminal
-
arch -arm64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
softwareupdate --install-rosetta --agree-to-license
-
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
vi ~/.zprofile
iterm2_print_user_vars() { CPU=$(uname -m) iterm2_set_user_var cpu $CPU } CPU=$(uname -m) if [[ "$CPU" == "arm64" ]]; then eval "$(/opt/homebrew/bin/brew shellenv)" else export PATH=/opt/homebrew/bin:$PATH eval "$(/usr/local/bin/brew shellenv)" fi alias ibrew="arch -x86_64 /usr/local/bin/brew" alias abrew="arch -arm64 /opt/homebrew/bin/brew"
-
brew install iterm2
-
-
패키지 관리자 (Apple Silicon/M1) | macOS 안내서
- 나중에 git 항목에 git config에서 회사/개인 구분 방법에 대해 설명 추가 필요
- https://gist.github.com/hyunjun/cf75a8a9367b272c5707#file-install-md
- git identity alias를 이용해 company/personal 구분
-
brew install
gh- iterm2
- 준비 | macOS 안내서
- itsycal
- dropbox
- google-chrome
- bookmark 이용해서 현재 열린 탭 전부 이동
- slack
- agapelover4u at yahoo.co.kr로 login, hyunjun.slack.com 등
spectaclerectangle- adobe-acrobat-reader
- ridibooks
-
brew install anaconda
brew update && brew upgrade && /opt/homebrew/anaconda3/bin/conda update conda -y && /opt/homebrew/anaconda3/bin/conda update anaconda -y
-
❯ vi ~/.SpaceVim/autoload/SpaceVim.vim # let g:spacevim_relativenumber를 1 -> 0으로 바꾸면 set norelativenumber # let g:spacevim_project_rooter_automatically를 1 -> 0으로 바꾸면 set autochdir -> deprecated
-
brew install --cask jetbrains-toolbox
-
docker
- /usr/sbin/softwareupdate --install-rosetta --agree-to-license
- ibrew install docker-toolbox
- brew install --cask docker # brew install docker는 오류 발생
- 참고; https://stackoverflow.com/questions/64963370/error-cannot-install-in-homebrew-on-arm-processor-in-intel-default-prefix-usr
brew cleanup && brew update && brew upgrade && /opt/homebrew/anaconda3/bin/conda update --all --yes && /opt/homebrew/anaconda3/bin/conda update conda --all --yes && /opt/homebrew/anaconda3/bin/conda update anaconda --all --yes && omz update && asdf plugin update --all
-
시에라 및 예전 버전도 모두 가능
-
한영 전환 단축키를 shift + space로 변경
-
파인더에서 command+shift+G 키를 눌러
~/Library/Preferences/com.apple.symbolichotkeys.plist
를 copy & paste -
텍스트 편집기로
<key>61</key>
를 찾음<key>61</key> <dict> <key>enabled</key> <true/> <key>value</key> <dict> <key>parameters</key> <array> <integer>32</integer> <integer>49</integer> <integer>131072</integer> // <integer> 3번째에 다른 숫자가 써 있는데 131072로 변경, 저장 후 리부팅
-
shift+space가 아니라 command+space로 하려면 1048576
- Shift : 131072
- Control : 262144
- Option : 524288
- Command : 1048576