기타(30)
-
ip address location 확인하는 방법
방법 curl -s ipinfo.io/ | jq '.ip,.city,.country,.org' 예시 curl -s ipinfo.io/1.1.1.1 | jq '.ip,.city,.country,.org' "1.1.1.1" "Los Angeles" "US" "AS13335 Cloudflare, Inc."
2023.06.09 -
CentOS 8에 ffmpeg 설치
- 개요 ffmpeg은 관련 의존성이 많아서 설치하는 방법이 까다롭다 - 설치 방법 sudo dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf config-manager --set-enabled powertools sudo dnf install -y sudo dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm sudo dnf install -y https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-..
2023.02.08 -
git 기초 사용법
- 개요 WSL에서 Bash Level로 Git을 다룰 때 필요한 초기 세팅 방법 - 설정 방법 ## git user git config --global --replace-all user.name "" ## git e-mail git config --global --replace-all user.email "" ## git auth git config --global credential.helper store ## git config list git config -l ## change branch git checkout main ## pull git pull ## create branch & check out git checkout -b feature/ ## apply all changes git add..
2022.12.16 -
bitbucket git password
- 개요 bitbucket에 google 로그인으로 연동시 git password 사용 하는 방법 - 방법 app password로 password 발급하여 사용 - 상세 방법 Select the Settings cog in the upper-right corner of the top navigation bar. Under Personal settings, select Personal Bitbucket settings. On the left sidebar, select App passwords. Select Create app password. Give the App password a name, usually related to the application that will use the passwor..
2022.12.16 -
slack rss app 추가
- 개요 Slack 채널에 양질의 RSS Feed를 추가하여 최선 정보 및 트렌드를 빠르게 전달 받는 방법 - slack 채널 생성 후 RSS app 추가 https://slack.com/intl/ko-kr/help/articles/218688467-Slack%EC%97%90-RSS-%ED%94%BC%EB%93%9C-%EC%B6%94%EA%B0%80 - feed 관리 # 피드리스트 /feed list # 피드 구독추가 /feed subscribe # 피드 구독 취소 /feed remove - 추천 피드 Google Search Status Dashboard Updates URL: https://status.search.google.com/en/feed.atom MSRC Security Update Gui..
2022.12.15 -
tg_attr_deg_delay.sh
- 개요 target group을 생성하면 default deregistration delay timeout이 300초 이므로, 줄여서 사용하는 것을 추천한다. 기본적으로 TG가 300초 동안 기다렸다가 deregistration이 되어서 비용이 많이 발생하므로 특별한 이슈가 없다면 30초까지 줄이는 것을 추천한다. 기 존재하는 TG의 timeout 값을 확인하는 스크립트는 아래와 같다. - 스크립트 #!/bin/bash echo "ELB attributes" for i in $(aws elbv2 describe-target-groups --query TargetGroups[].TargetGroupArn --output text) do echo $i aws elbv2 describe-target-grou..
2022.12.07 -
elb_attr_delete_protection.sh
- 개요 AWS 리소스는 최초 생성시 대부분 삭제 방지 기능이 꺼져있는데, 삭제 방지 기능을 켜놓으면 실수로 삭제를 하게 될 경우를 미연에 방지할 수 있는 좋은 기능이다. 기 존재하는 ELB의 삭제 방지 기능을 확인하는 스크립트는 아래와 같다. 리스트 부분만 바꾸면 다른 리소스도 확인이 가능하다. - 스크립트 #!/bin/bash echo "ELB attributes" for i in $(aws elbv2 describe-load-balancers --query LoadBalancers[].LoadBalancerArn[] --output text) do echo $i aws elbv2 describe-load-balancer-attributes --load-balancer-arn $i --query 'A..
2022.12.07 -
Gatsby + S3 + cloudfront
- 개요 Gatsby는 react 기반 프레임워크로 SPA로 구성할 때 자주 쓰인다. - SPA on S3 S3 uncheck Block public access S3 Static website hosting enable cloudfront origin s3 website hosting url >>> .s3-website.ap-northeast-2.amazonaws.com - s3 bucket policy { "Version": "2012-10-17", "Statement": [ { "Sid": "1", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::/*" } ] } - reference ht..
2022.12.07 -
retention 없는 CloudWatch logs의 log groups
- 개요 테라폼이나 AWS Web console에서 AWS 리소스를 생성할 때 CloudWatch Logs에 log group이 retention 설정 없이 생성되는 경우가 많으며 관리가 안돼서 비용이 과금되는 경우가 많다. 아래는 기 생성된 log groups의 retention을 확인하고 적용하는 명령어를 자동 생성해 주는 스크립트이다. - 스크립트 #!/bin/bash echo "CloudwatchLog without Retention Settings" for i in $(aws logs describe-log-groups --query logGroups[*].logGroupName[] --output text) do CloudwatchLogRetention=$(aws logs describe-lo..
2022.12.07 -
codepipeline stage status
- 개요 CodePipeline의 상태 확인을 할 수 있는 스크립트이다 - 스크립트 #!/bin/bash echo "CodePipeline Deploy Status" for i in {0..2}; do for codepipeline in $(aws codepipeline list-pipelines --query pipelines[].name --output text) do stage=$(aws codepipeline get-pipeline-state --name $codepipeline --query 'stageStates[].latestExecution[].status | '[$i]'' --output text) if [[ $stage == "Succeeded" ]] || [[ $stage == "No..
2022.11.21