Skip to content

Instantly share code, notes, and snippets.

View 134130's full-sized avatar

JiHwan Oh 134130

View GitHub Profile
id: https://spec.openapis.org/oas/3.0/schema/WORK-IN-PROGRESS
$schema: http://json-schema.org/draft-04/schema#
description: The description of OpenAPI v3.0.x Documents
type: object
required:
- title
- type
properties:
title:
type: string
@134130
134130 / run-kubectl-via-ssh-tunnel.sh
Created July 3, 2024 17:51
run-kubectl-via-ssh-tunnel.sh
export LOCAL_PORT=1080
export [email protected]
# ssh를 통해 SOCKS5 Proxy를 백그라운드에 실행
ssh -fNq -D "$LOCAL_PORT" "$TARGET"
# SOCKS Proxy 정보를 로컬에 구성
export HTTPS_PROXY="socks5://localhost:$LOCAL_PORT"
# SOCKS Proxy 구성정보와 함께 kubectl 명령어 실행
@134130
134130 / generate-certificate.sh
Created February 22, 2024 10:18
Simple openssl command creating x509 certificate with CA chain
#!/bin/sh
cat > req.conf <<EOF
[req]
prompt = no
x509_extensions = v3_req
distinguished_name = dn
[dn]
CN = querypie
[v3_req]
@134130
134130 / # kotlin-spring-lock.md
Last active August 6, 2023 07:42
Simple Distributed Lock with Databases on Spring Application
  • Simple distributed lock for spring applications
  • With Databases
    • MySQLDistLock.kt
  • PostgresDistLock.kt
🌞 Morning 226 commits ███▊░░░░░░░░░░░░░░░░░ 18.1%
🌆 Daytime 612 commits ██████████▎░░░░░░░░░░ 49.0%
🌃 Evening 381 commits ██████▍░░░░░░░░░░░░░░ 30.5%
🌙 Night 29 commits ▍░░░░░░░░░░░░░░░░░░░░ 2.3%
⭐ Total Stars: 69
➕ Total Commits: 1,190
🔀 Total PRs: 347
🚩 Total Issues: 92
📦 Contributed to: 13