This file contains 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
version: '3' | |
services: | |
spark-master: | |
image: bitnami/spark:3.5.1 | |
container_name: spark-master | |
environment: | |
- SPARK_MODE=master | |
- SPARK_MASTER_HOST=spark-master | |
ports: |
This file contains 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 | |
db_set(){ | |
echo "$1,$2" >> database | |
} | |
db_get(){ | |
grep "$1^," database | sed -e "s/^$i, //" | tail -n 1 | |
} |
This file contains 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
annotations: | |
kubernetes.io/ingress.class: alb | |
external-dns.alpha.kubernetes.io/hostname: "dns" | |
alb.ingress.kubernetes.io/backend-protocol: HTTP | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/target-type: ip | |
alb.ingress.kubernetes.io/certificate-arn: arn-certificate | |
alb.ingress.kubernetes.io/healthcheck-port: "8080" | |
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP | |
alb.ingress.kubernetes.io/healthcheck-interval-seconds: "30" |
This file contains 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 ubuntu:20.04 | |
RUN apt-get update | |
RUN apt-get install -y git python3 | |
# ... |
This file contains 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 pulumi import ResourceOptions | |
import pulumi_kubernetes as kubernetes | |
def get_object(dependencies): | |
return kubernetes.core.v1.PersistentVolumeClaim("pulumi에서 관리할 name지정", | |
kind="PersistentVolumeClaim", | |
api_version="v1", | |
metadata=kubernetes.meta.v1.ObjectMetaArgs( | |
namespace="k8s namespace", | |
name="pulumi에서 관리할 name지정", |
This file contains 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
import sys | |
sys.path.append('vb_code.py 경로 추가하거나, 동일 경로상에 두고 테스트 수행하기') | |
import vb | |
from struct import unpack | |
import random | |
from typing import List, TextIO | |
def test_vbc(): |
This file contains 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 struct import pack, unpack | |
from typing import List, TextIO | |
def encode_number(number: int) -> TextIO: | |
""" | |
VB Code Encode Number method | |
:param number: | |
:return: | |
Usage |
This file contains 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
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import platform | |
%matplotlib inline | |
import matplotlib | |
import tensorflow as tf | |
BATCH_SIZE=6 # 커널이 계속 죽는다.. (메모리 초과...;) -> 배치 사이즈가 6보다 크면 메모리 초과 발생; | |
MAX_SEQ_LEN = 512 |
NewerOlder