전체 글 보기

· Tool/Git
명령어 사용법 $ git log -p ##예시 $ git log -p test.py git log 문서 메뉴얼 Browsing revisions The git-log[1] command can show lists of commits. On its own, it shows all commits reachable from the parent commit; but you can also make more specific requests: $ git log v2.5.. # commits since (not reachable from) v2.5 $ git log test..master # commits reachable from master but not test $ git log master..t..
· AWS
Boto3 설정 설정에는 credential 과 non-credentials 로 나뉜다. credentials aws_access_key_id aws_secret_access_key aws_session_token non-credentials region Boto3 Credential 정보 찾는 순서와 위치 boto3는 인증 정보를 실행되면 특정 위치의 파일을 읽어서 가져오거나 작성한 Python 코드에서 정보를 찾는다. 찾는 순서는 1. (Python 코드) boto.client() 을 만들며 사용한 파라미터 값 2. (Python 코드) boto.session() 을 만들며 사용한 파라미터 값 3. Python 코드를 실행하는 PC 또는 서버에 설정된 환경 변수 4. Python 코드를 실행하는 PC..
리눅스 쉘 스크립트에서 여러 인수들을 전달해 사용한다. 기본 사용법 xargs [-0prtx][-e[eof-str]] [-i[replace-str]] [-l[max-lines]] [-nmax-args] [-s max-chars] [-P max-procs] [--null] [--eof[=eof-str]] [--replace[=replace-str]] [--max-lines[=max-lines]] [--interactive] [--max-chars=max-chars] [--verbose] [--exit] [--max-procs=max-procs] [--max-args=max-args] [--no-run-if-empty] [--version] [--help] [command [initial-arguments]..
설치 방법 (아래 3가지 방법 중 편한 걸 선택) - PakageManager 이용 설치 - Script - From Source - PakageManager 이용 설치 $ brew install helm - Script $ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 $ chmod 700 get_helm.sh $ ./get_helm.sh - From Source helm을 소스 빌드 하는 과정은 미리 준비해야 하는 환경들이 있어서 삽질을 좀 했다. Go 환경과 source 빌드에 필요한 패키지들이 설치 되어 있어야 한다. 사전에 준비되어야 하는 작업 1. go 설치 설치하는 PC의..
방법 vi를 실행하면 vim에서 사용하는 환경 설정 파일을 읽어서 실행하는데 그 파일이 ~/.vimrc 이다. 주로 사용하는 vim 옵션들을 ~/.vimrc 에 (없으면 생성해) 필요한 값을 넣어서 저장해 사용한다. 이후에는 저장된 설정들을 적용해 vi가 실행된다. # 검색어 하이라이트 set hlsearch # 자동 들여쓰기 set autoindent # 자동 들여쓰기 set cindent # Tab은 2칸 띄어쓰기로 설정 set ts=2 # syntax가 하이라이트 기능이 있다면 하이라이트 if has("syntax") syntax on endif vim에는 사용할 수 있는 옵션들이 다양하다. 공식문서를 읽고 필요한 기능이 있으면 추가해서 사용해보자. 참고 Vim doc: options https:/..
계정 패스워드 만기 정보 확인 $ sudo chage -l 예시) $ sudo chage -l sampleid Last password change : May 20, 2024 Password expires: never Password inactive: never Account expires: never Minimum number of days between password change: 0 Maximum number of days between password change: 99999 Number of days of warning before password expires: 7 # chage 메뉴얼 Usage: chage [options] LOGIN Options: -d, --lastday LAST_DA..
기록으로 만드는 행운
'분류 전체보기' 카테고리의 글 목록