본문 바로가기

전체 글182

python _aws instance 제어하기 (a cloud guru) https://github.com/seulseul627/aws-snapshot.git seulseul627/aws-snapshot Demo project to manage AWS instance snapshots. Contribute to seulseul627/aws-snapshot development by creating an account on GitHub. github.com PS C:\Users\Administrator\code\aws-snapshot> aws configure --profile shotty AWS Access Key ID [None]: -- AWS Secret Access Key [None]: -- Default region name [None]: ap-northeast-2 D.. 2020. 2. 12.
python Study (a cloud guru) https://github.com/seulseul627/python-study.git import math import requests def calc_dist(lat1, lon1, lat2, lon2): lat1 = math.radians(lat1) lon1 = math.radians(lon1) lat2 = math.radians(lat2) lon2 = math.radians(lon2) h = math.sin( (lat2 - lat1) / 2 ) ** 2 + \ math.cos(lat1) * \ math.cos(lat2) * \ math.sin( (lon2 - lon1) / 2 ) ** 2 return 6372.8 * 2 * math.asin(math.sqrt(h)) def get_dist(meteor.. 2020. 2. 12.
python package 사용 The Python Standard Library https://docs.python.org/3/library/index.html PyPI - the Python Package Index https://pypi.org/ # 패키지 설치 pip3 install requests # 패키지 import ipython3 import requests In [2]: requests.get('http://nasa.gov') Out[2]: In [3]: resp = requests.get('http://nasa.gov') In [4]: resp.status_code Out[4]: 200 In [5]: resp.text Out[5]: '\nIn [6]: meteor_resp = requests.get('https://d.. 2020. 2. 10.
[AWS][기술백서]Performance at Scale with Amazon ElastiCache https://d0.awsstatic.com/whitepapers/performance-at-scale-with-amazon-elasticache.pdf 불러오는 중입니다... Overview - im-memory key-value endgines - ElastiCache Cluster에 처음엔 노드 1개로 시작해서 늘리는 방식으로 테스트 Memcached vs. Redis https://aws.amazon.com/ko/elasticache/redis-vs-memcached/ Redis vs. Memcached | AWS Redis and Memcached are popular, open-source, in-memory data stores. Although they are both easy to use.. 2020. 1. 22.