본문 바로가기

Programming General

(4)
서버별 ssh 접속 포트 지정해두기 어떤 서버들은 ssh로 접속할 때 기본 포트 22번이 막혀있다. (보안상 이유 등으로..) 그러면 ssh -p @ 처럼 -p 옵션을 줘서 접속해야하는데, 포트 번호를 기억하기도 어렵고 귀찮다. 이럴 때 .ssh/config 파일에 호스트별로 ssh 접속포트를 지정해두면 ssh 만으로 접속할 수 있다. // .ssh/config Host HostName Port User 참고: https://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/
[Udacity] Networking for Web Developers https://classroom.udacity.com/courses/ud256 Key Concepts Layer HTTP / SSH Application TCP / UDP Transport IP Internet Ethernet / Wifi Hardware nc(=netcat) 이라는 툴로 통신을 할 수 있다. netcat은 Application Layer가 아닌 Transport Layer에서 통신한다. 포트 포트에 "Listen" 하면 해당 포트로 들어오는 통신을 받을 수 있다. 미리 정해지고 널리 쓰이는 포트들이 있다. ex) 80 - HTTP, 22 - SSH - netcat -l // shell 1 $ netcat -l 1234 // listen on port 1234 // shell 2 $ ne..
13. Roman to integer https://leetcode.com/problems/roman-to-integer/ Roman to Integer - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열로 주어진 로마 숫자를 10진수 정수로 바꾸는 문제다. 예를 들어 "III"은 3, "V"은 5다. 일반적으로 로마자는 큰 글자부터 작은 글자까지 나열하고, 글자들을 더한 합이 최종 숫자가 된다. 예를들면 8은 "VIII" (5 + 3). 하지만 예외적으로 4같은 경우는 "IIII"로 쓰지 않..
Concurrency vs Parallelism https://youtu.be/FChZP09Ba4E Shared resource / Multiple tasks that need to be coordinated --> Concurrency