This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal | |
| REM 프록시 설정에 필요한 변수 정의 | |
| set "PROXY_SERVER=http://127.0.0.1:1" | |
| REM 예외 목록: allurereport.org, files.pythonhosted.org, pypi.org, appium.io, <local> | |
| set "BYPASS_LIST=allurereport.org;files.pythonhosted.org;pypi.org;appium.io;<local>" | |
| set "REG_PATH=HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" | |
| REM 사용자에게 질문 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CA(인증 기관) 인증서를 생성하기 위해서는 주로 OpenSSL을 사용합니다. OpenSSL은 PKI(Public Key Infrastructure)와 SSL/TLS 네트워크 프로토콜을 구현하는 오픈소스 도구입니다. | |
| 다음은 간단하게 CA 인증서와 개인 키를 생성하는 과정입니다: | |
| CA의 개인 키 생성 | |
| openssl genpkey -algorithm RSA -out ca.key -aes256 | |
| 위 명령을 실행하면 OpenSSL은 RSA 알고리즘을 사용하여 개인 키를 생성하고, 그 키는 AES-256으로 암호화됩니다. 이 때 키를 암호화하는 데 사용할 비밀번호를 입력하게 됩니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install packages | |
| sudo yum update -y | |
| sudo yum install -y unzip jq | |
| # set architecture at normal user | |
| if [[ $(arch) == "x86_64" ]]; then | |
| ARCH=amd64 | |
| else | |
| ARCH=arm64 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ $# -ne 1 ]; then | |
| echo "Please enter the assume role arn." | |
| exit 1 | |
| fi | |
| unset AWS_ACCESS_KEY_ID | |
| unset AWS_SECRET_ACCESS_KEY | |
| unset AWS_SESSION_TOKEN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| URL=<WEB URL> | |
| DATE=`date +%H%M%S` | |
| FILE_NAME=deploy_result_${DATE}.txt | |
| rm deploy_result_*.txt | |
| while true; do | |
| curl --silent -o /dev/null -w "%{http_code}\n" http://${URL}/<SUB DIRECTORY> >> ${FILE_NAME} & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # web server | |
| sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
| echo "1234" | passwd --stdin ec2-user | |
| systemctl restart sshd | |
| yum update -y | |
| amazon-linux-extras install -y nginx1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # __ ______ ____ | |
| # \ \ / / _ \ / ___| | |
| # \ \ / /| |_) | | | |
| # \ V / | __/| |___ | |
| # \_/ |_| \____| | |
| # ___ __ _ _ _ | |
| # |_ _|_ __ / _|_ __ __ _ ___| |_ _ __ _ _ ___| |_(_) ___ _ __ |