Skip to content

Instantly share code, notes, and snippets.

@kimsehwan96
kimsehwan96 / multi_process.py
Created August 14, 2024 03:46
multi_process.py
import json
import os
import time
from typing import List
from concurrent.futures import ProcessPoolExecutor
import asyncio
import boto3
from tqdm import tqdm
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
@kimsehwan96
kimsehwan96 / multi_thread.py
Created August 14, 2024 03:45
multi_thread.py
import json
import os
import time
from typing import List
from concurrent.futures import ThreadPoolExecutor
import asyncio
import boto3
from tqdm import tqdm
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
@kimsehwan96
kimsehwan96 / async.py
Created August 14, 2024 03:44
async.py
import asyncio
import os
import time
from typing import List
import json
import aiobotocore
import boto3
from aiobotocore.session import get_session
from tqdm import tqdm
@kimsehwan96
kimsehwan96 / sync.py
Last active August 14, 2024 03:42
sync.py
import json
import os
import time
from typing import List
import boto3
from tqdm import tqdm
AWS_ACCESS_KEY_ID = os.environ.get("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.environ.get("AWS_SECRET_ACCESS_KEY")
@kimsehwan96
kimsehwan96 / values.yaml
Created July 18, 2024 04:48
default helm values for tempo-distributed helm deployment for EKS environment
global:
image:
# -- Overrides the Docker registry globally for all images, excluding enterprise.
registry: docker.io
# -- Optional list of imagePullSecrets for all images, excluding enterprise.
# Names of existing secrets with private container registry credentials.
# Ref: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
# Example:
# pullSecrets: [ my-dockerconfigjson-secret ]
pullSecrets: []
@kimsehwan96
kimsehwan96 / kubeadm-config-certs.yaml
Last active March 28, 2024 15:05
kubeadm-config.yaml example
certSANs:
- kubernetes
- kubernetes.default
- kubernetes.default.svc
- kubernetes.default.svc.cluster.local
- 10.233.0.1 # <- k8s service 였브젝트 CIDR λŒ€μ—­μ˜ IP둜. 이것은 kube-apiserver 의 service object Cluster IP μ£Όμ†Œμ΄λ‹€.
- localhost
- 127.0.0.1
- node1
- node2
@kimsehwan96
kimsehwan96 / retrieve-all-current-secrets.sh
Created October 24, 2022 07:18
retrieve-all-current-secrets in AWS SecretsManager
#!/usr/bin/env bash
export AWS_REGION=ap-northeast-2
export AWS_PROFILE_NAME=YOUR_PROFILE_NAME
NAMES=$(
aws secretsmanager list-secrets \
--query 'SecretList[?Name!=`null`].Name' \
--output text
)
🌞 Morning 45 commits β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.5%
πŸŒ† Daytime 276 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 33.5%
πŸŒƒ Evening 314 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 38.2%
πŸŒ™ Night 188 commits β–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22.8%
@kimsehwan96
kimsehwan96 / install.sh
Created July 17, 2021 10:12
파이썬 3.7.2 μ„€μΉ˜ 슀크립트
#!/bin/bash
#파이썬 3.7.2 버전을 μžλ™μœΌλ‘œ μ„€μΉ˜ν•˜λŠ” μ‰˜ μŠ€ν¬λ¦½νŠΈμž…λ‹ˆλ‹€.
#λ°λΉ„μ•ˆ 계열 λ¦¬λˆ…μŠ€ λ°°ν¬νŒμ—μ„œ μ‚¬μš© κ°€λŠ₯ν•©λ‹ˆλ‹€
echo "installing python3.7 start"
#set -e
apt-get update -y
if [ $? -ne 0 ]; then
echo "check your network"
else