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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| NEW_HOSTNAME="" # Jiraμ μλ Hostname μμ μ°Έκ³ . | |
| NEW_IPADDR="10.128.40.50/22" | |
| NEW_GW="10.128.40.254" | |
| NEW_DNS="8.8.8.8 1.1.1.1" | |
| require_root() { | |
| if [[ $EUID -ne 0 ]]; then |
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 | |
| #cloud-config | |
| # ===== Basic system prep ===== | |
| # Enable systemd services to start after cloud-init | |
| # Update packages | |
| dnf -y update | |
| # Install Python 3 (AL2023 κΈ°λ³Έ ν¬ν¨μ΄μ§λ§ νμ€ν μ€μΉ) | |
| dnf -y install python3 |
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 | |
| ### ------------------------------------------------------------------------------------------ | |
| ### λ³Έ νμΌμ 21-national-1-mark.pdfμ μ±μ μ€ν¬λ¦½νΈλ₯Ό νλ²μ μ€νν μ μλλ‘ λͺ¨μλ νμΌμ λλ€. | |
| ### μΌλΆ μ€ν¬λ¦½νΈλ μ€λ₯λ‘ μΈν΄ μμ λμμ μ μμΌλ, ν΄λΉ μ€ν¬λ¦½νΈλ μΆμ μμ μλμμ μ ν λ³κ²½λμ§ μμμμ λ°νλλ€. | |
| ### 2021λ μ κ΅κΈ°λ₯κ²½κΈ°λν κ³Όμ λ°°ν¬νμΌμλ mark.shκ° ν¬ν¨λμ§ μμμ΅λλ€. | |
| ### ------------------------------------------------------------------------------------------ | |
| read -p "" participant_number | |
| read -p "" random_string |
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 | |
| ### --------------------------------------------------------------------------- | |
| ### λ³Έ νμΌμ 23-local-1-leaked-mark.pdfμ μ±μ μ€ν¬λ¦½νΈλ₯Ό νλ²μ μ€νν μ μλλ‘ λͺ¨μλ νμΌμ λλ€. | |
| ### 2023λ μ§λ°©κΈ°λ₯κ²½κΈ°λν μ μΆκ³Όμ λ°°ν¬νμΌμλ mark.shκ° ν¬ν¨λμ§ μμμ΅λλ€. | |
| ### λν, μ€λ₯κ° μκ±°λ Deprecate λ λͺ λ Ήμ΄λ νμ¬ λ²μ μ λ§κ² μμ νμμ΅λλ€. | |
| ### λ¨, μ±μ κΈ°μ€νμμ μλνλλλ‘ μμ νμμΌλ―λ‘ μ°Έκ³ ν΄μ£ΌμκΈ° λ°λλλ€. | |
| ### --------------------------------------------------------------------------- | |
| echo "=============== 1-1. VPC CIDR ===============" |
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 | |
| ### --------------------------------------------------------------------------- | |
| ### λ³Έ νμΌμ 23-local-2-mark.pdfμ μ±μ μ€ν¬λ¦½νΈλ₯Ό νλ²μ μ€νν μ μλλ‘ λͺ¨μλ νμΌμ λλ€. | |
| ### 2023λ μ§λ°©κΈ°λ₯κ²½κΈ°λν κ³Όμ λ°°ν¬νμΌμλ mark.shκ° ν¬ν¨λμ§ μμμ΅λλ€. | |
| ### --------------------------------------------------------------------------- | |
| BUCKET_NAME="<μ μκ° μμ±ν S3 λ²ν·>" | |
| echo "========== 1-1 ==========" |
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 | |
| ### --------------------------------------------------------------------------- | |
| ### λ³Έ νμΌμ 23-local-1-mark.pdfμ μ±μ μ€ν¬λ¦½νΈλ₯Ό νλ²μ μ€νν μ μλλ‘ λͺ¨μλ νμΌμ λλ€. | |
| ### 2023λ μ§λ°©κΈ°λ₯κ²½κΈ°λν κ³Όμ λ°°ν¬νμΌμλ mark.shκ° ν¬ν¨λμ§ μμμ΅λλ€. | |
| ### --------------------------------------------------------------------------- | |
| echo "========== 1-1 ==========" | |
| aws ec2 describe-vpcs --filter Name=tag:Name,Values=wsi-vpc --query "Vpcs[].CidrBlock" |
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
| from flask import Flask | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def hw(): | |
| return 'hello world!' | |
| if __name__ == "__main__": | |
| app.run(host="0.0.0.0", port=80) |