Skip to content

Instantly share code, notes, and snippets.

View 134130's full-sized avatar
πŸ’­
0xB4B0

JiHwan Oh 134130

πŸ’­
0xB4B0
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: 80
βž• Total Commits: 1,210
πŸ”€ Total PRs: 354
🚩 Total Issues: 94
πŸ“¦ Contributed to: 10