본문 바로가기

기록

(26)
AWS 액세스 키 발급하고 설정하기 AWS를 통해 배포를 하려고 할 때 반드시 필요한 것이 바로 액세스 키입니다. 이번엔 개인 계정을 만든 후 액세스 키를 발급 받는 방법에 대해 알아봅시다. 먼저 당연하게도 AWS 계정을 만들어야 합니다. 계정을 만드는 방법은 그냥 AWS 상의 스텝을 따라가기만 하면 되므로 따로 설명은 추가하지 않겠습니다. 이후 AWS 콘솔에 로그인 한 후, 내 보안 자격 증명으로 접속해 줍니다. 그리고 액세스 키(액세스 키 ID 및 비밀 액세스 키) 부분을 펼칩니다. 이후 새 액세스 키 만들기 버튼을 눌러줍니다. 그러면 바로 액세스키가 생성되며, 생성된 액세스 키 ID와 보안 액세스 키를 확인할 수 있습니다. 이 두 가지 정보는 생성된 시점에 딱 한 번만 확인할 수 있으므로 미리 기록해 두거나 키 파일 다운로드 버튼을 ..
효율적인 커밋 메세지 관리를 위한 Conventional Commits 적용하기 개발을 진행하다 보면 항상 고민이 많이 되는 부분이 커밋 메세지인 것 같습니다. 내가 쓸 때에도 잘 쓰지 않으면 문제가 되지만, 여러 명이 함께 건드리게 되는 프로젝트의 경우엔 더더욱 커밋 메세지가 명확하지 않으면 히스토리 파악이 쉽지 않을 때가 왕왕 있습니다. 이런 커밋 메세지 관리를 위해 나온 것이 Conventional Commits입니다. Conventional Commits Conventional Commits은 말 그대로 커밋 메세지를 위한 규칙입니다. 명확한 커밋 히스토리를 위한 간단한 규칙을 제공하고, 이를 사용하여 자동화된 도구를 만들기 쉽게 합니다. 이 규칙은 커밋 메세지에 기능, 수정 사항 및 변경 사항을 설명함으로써 SemVer(Semantic Versioning)와 일치합니다. 커..
LeetCode 0819. Most Common Word(Python) 문제 Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guaranteed there is at least one word that is not banned, and that the answer is unique. The words in paragraph are case-insensitive and the answer should be returned in lowercase. Example 1: Input: paragraph = "Bob hit a ball, the hit BALL flew far after it was hit...
LeetCode 0344. Reverse String(Python) 문제 Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. You may assume all the characters consist of printable ascii characters. Example 1: Input: ["h","e","l","l","o"] Output: ["o","l","l","e","h"] Example 2: Input: ["H","a..
LeetCode 0002. Add Two Numbers(Python) 문제 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example 1: Input: l1 = [2,4,3], l2 = [5,6,4] Output: [7,0,8] Explanation: 34..
LeetCode 0001. Two Sum 문제 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use thesameelement twice. You can return the answer in any order. Example 1: Input: nums = [2,7,11,15], target = 9 Output: [0,1] Output: Because nums[0] + nums[1] == 9, we return [0, 1]. Exampl..
Windows Terminal 테마와 폰트 수정하기 마이크로소프트에서 드디어 Windows Terminal의 1.0버전을 공개했습니다. 저는 정식 버전이 공개되자 마자 바로 설치하여 사용해보고 있습니다. 디자인도 예뻐지고 탭 기능도 있고 꽤나 편리하더라고요. 만족스럽습니다. 각설하고, 오늘은 이 Windows Terminal의 테마와 폰트, 글자 크기 같은 걸 조정해보겠습니다. 먼저 Windows Terminal에서 Ctrl + ,을 누르거나 위 스크린샷처럼 더보기 버튼을 눌러 설정을 켜줍니다. 그러면 예전의 터미널처럼 설정 창이 뜨는 게 아니라 settings.json 파일이 열립니다. Windows Terminal은 이 settings.json를 통해 정말 여러 가지를 본인 입맛대로 바꾸어 사용할 수 있답니다. 오늘은 이 중에서 테마와 폰트를 수정해볼..
Pyenv로 파이썬 버전 관리하기 어떤 언어든 그렇겠지만 사용하다 보면 여러 버전을 동시에 사용해야 할 때가 있습니다. 이직한 회사에서 파이썬을 사용하고 있는데요. 여기도 어떤 프로젝트는 3.6.4를 사용하고 있고, 또 어떤 프로젝트는 3.7.6을 사용하고 있더라고요. 그래서 여러 버전을 동시에 사용하고 싶어 졌습니다. 마침 회사에서 pyenv라는 걸 사용하고 있어서 저도 사용해봤습니다. Pyenv는 무얼 할 수 있나요? 사용자별로 글로벌 파이썬 버전을 설정할 수 있어요. (Let you change the global Python version on a per-user basis.) 프로젝트별로 파이썬 버전을 설정할 수 있어요. (Provide support for per-project Python versions.) 환경변수로 파이썬..