Skip to content

Instantly share code, notes, and snippets.

View nicewook's full-sized avatar

Jeong Hyunseok nicewook

View GitHub Profile
@nicewook
nicewook / statusline.sh
Created August 21, 2025 08:15
Claude Code statusline script
#!/bin/bash
# Claude Code용 향상된 상태표시줄 스크립트
# 표시 형식: 프로젝트명 브랜치-상태 모델 YYYY-MM-DD HH:MM:SS
# 표준 입력(stdin)에서 JSON 형식의 입력 데이터를 읽어옴
# Claude Code에서 모델 정보 등을 JSON으로 전달
input=$(cat)
# Git 저장소인지 확인하고 브랜치 이름, 브랜치 상태를 알아냄
if git rev-parse --git-dir >/dev/null 2>&1; then
@nicewook
nicewook / functional_options.go
Last active February 11, 2024 04:13
함수형 옵션 패턴
package main
import (
"fmt"
)
// Server - 서버 설정을 위한 구조체
type Server struct {
Host string
Port int
package main
import (
"fmt"
"time"
)
func main() {
// 날짜와 시간을 모두 파싱 (time.Local 사용)
dateTimeStr := "2024-01-01 09:10:20"
package main
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"os"
"time"
THE KREUTZER SONATA.
CHAPTER I.
Travellers left and entered our car at every stopping of the train.
Three persons, however, remained, bound, like myself, for the farthest
{
"public_identifier":"johnrmarty",
"profile_pic_url":"https://s3.us-west-000.backblazeb2.com/proxycurl/person/johnrmarty/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20230713%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20230713T082809Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a4160fa552e755a71cd052a448bb2b2c64e1f4ffcac32501800d451e36dfed0c",
"background_cover_image_url":"None",
"first_name":"John",
"last_name":"Marty",
"full_name":"John Marty",
"follower_count":285045,
"occupation":"Co-Founder at FF Real Estate",
"headline":"LinkedIn Top Voice",
syntax on
set nu rnu
set expandtab
set tabstop=2
set shiftwidth=2
colo wombat
map <C-n> :cnext<CR>
@nicewook
nicewook / dockerfile
Created June 16, 2022 08:58
from scratch
# START: probes
# START: beginning
FROM golang:1.18-alpine AS build
WORKDIR /go/src/proglog
COPY . .
RUN CGO_ENABLED=0 go build -o /go/bin/proglog ./cmd/proglog
# END: beginning
# START_HIGHLIGHT
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.1 && \
wget -qO /go/bin/grpc_health_probe \

K8s 클러스터로 gRPC 호출을 하는데 연결이 실패하는 문제

예제를 테스트중인데 막혀서 이렇게 질문드려 봅니다. 예제는 간단합니다. kind로 k8s 클러스터를 만들고 helm으로 docker image를 실행시킨 다음 gRPC 클라이언트로 요청하나를 보내는 것입니다.

현재상황

  • 윈도우 WLS2 에서 실습
$ helm template proglog deploy/proglog
---
# Source: proglog/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: proglog
namespace: default
labels:
helm.sh/chart: proglog-0.1.0