준호씨의 블로그
leetcode https://leetcode.com/ programmers https://programmers.co.kr/learn/challenges 백준 https://www.acmicpc.net/ hacker rank https://www.hackerrank.com/ codewars https://www.codewars.com/
운영툴 프로젝트를 하나 전달 받았는데 로컬 개발 환경을 세팅 하니 일정 시간이 지나면 "Error: Connection lost: The server closed the connection." 이 발생하면서 nodejs 프로세스가 죽어 버렸다. 좀 더 상세히 적자면 events.js:182 throw er; // Unhandled 'error' event ^ Error: Connection lost: The server closed the connection. at Protocol.end (/Users/junho85/WebstormProjects/.../node_modules/mysql/lib/protocol/Protocol.js:112:13) at Socket. (/Users/junho8..
https://github.com/git/git/tree/master/contrib/completion 에서 관련 파일을 받을 수 있다. cd ~ wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -O .git-prompt.sh ~/.bashrc 파일 수정. PS1 보다 위에 아래 내용을 추가 source ~/.git-prompt.sh PS1 설정에 $(__git_ps1) 추가 junho85@junho85:~/git_branch_test$ (my-branch) git checkout master Switched to branch 'master' junho85@junho85:~/git_b..
보다 아래처럼 하는 것이 좋다. 한글보다는 영어로 한글을 사용할 경우 일단 인코딩이 utf-8 이나 euc-kr 이냐에 따라서 다른 파일로 인식할 수 있다. 그리고 완성형이냐 조합형이냐에 따라서도 다른 문자로 인식할 수 있다. 그래서 가능하면 파일명은 영어로 쓰는 것이 좋다. 언젠가 한가지 방식으로 통일 되는 날이 온다면 모르겠지만 아직은 아니다. 공백은 쓰지 않거나 언더바 "_" 나 대시 "-" 를 사용 공백이 들어가면 폰트나 환경에 따라 공백문자가 몇개 들어갔는지 알기 어렵다. 게다가 공백문자가 스페이스인지 탭인지도 구분이 모호하다. 혼란의 여지가 많기 때문에 가능하다면 공백을 쓰지 않거나, 언더바 "_" 나 대시 "-" 등으로 구분하는 것을 권장한다.
ENVIRONMENT=prod 10 0 * * * somescript.sh
ctrl + b, : :move-window -t 99 Sometimes you may want to change tmux window's number. Because window tap is ordered by window numbers. You may want to move some windows to far away from other windows. Then change the window number. References https://superuser.com/questions/343572/how-do-i-reorder-tmux-windows