Skip to content

Instantly share code, notes, and snippets.

View EcmaXp's full-sized avatar
💤
쿠쿨자

SangGyu Lee EcmaXp

💤
쿠쿨자
View GitHub Profile
@EcmaXp
EcmaXp / config.yaml
Created May 2, 2025 18:50
Deploy MCP Server to Orbstack Kubernetes
mcpServers:
mcp-run-python:
image: denoland/deno
command: deno
args:
- run
- -N
- -R=node_modules
- -W=node_modules
- --node-modules-dir=auto
@EcmaXp
EcmaXp / dbx-career-framework-convert.py
Last active April 5, 2025 12:19
convert dbx-career-framework html docs to markdown files
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "beautifulsoup4",
# "emoji",
# "pypandoc_binary",
# ]
# ///
# https://dropbox.github.io/dbx-career-framework
@EcmaXp
EcmaXp / ovn.nix
Last active January 21, 2025 18:10
{
config,
lib,
pkgs,
...
}:
let
cfg = config.virtualisation.ovn;
vswitchCfg = config.virtualisation.vswitch;
@EcmaXp
EcmaXp / gen_kitty_hanguls.py
Last active May 22, 2024 01:37
Generate Hangul keyboard shortcuts from QWERTY mappings for Kitty terminal configuration
from dataclasses import dataclass
from enum import IntFlag
KITTY_LICENSE = """
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
@EcmaXp
EcmaXp / ufw-export.py
Created January 21, 2024 13:19
Export UFW (Uncomplicated Firewall) rules as UFW commands using the iptables backend
#!/usr/bin/env python3
"""
/usr/local/bin/ufw-export
"""
import gettext
from ufw.backend_iptables import UFWBackendIptables # noqa
from ufw.parser import UFWCommandRule, UFWCommandRouteRule # noqa
@EcmaXp
EcmaXp / ovn_private_example.fish
Created November 19, 2023 10:57
OVN + IPv4 + IPv6 + DHCP
#!/usr/bin/env fish
set CIDR_V4 10.0.0.0/16
set CIDR_V6 fdec::0/64
set CIDR_PREFIX_V6 fdec:0:0:0::
set EXCLUDE_IPS_V4 10.0.0.1..10.0.0.10
set SWITCH OVN-TEST-SW
set SWITCH_PORT OVN-TEST-SW-PORT
set ROUTER OVN-TEST-LR
set ROUTER_PORT OVN-TEST-LR-PORT
#!/usr/bin/env python3
# https://intellij-support.jetbrains.com/hc/en-us/community/posts/8438534916370-Window-is-rendered-incorrectly-rotated-90-degrees
import shlex
import subprocess
# https://github.com/jakehilborn/displayplacer
DISPLAYPLACER_BIN = "/opt/homebrew/bin/displayplacer"

Keybase proof

I hereby claim:

  • I am EcmaXp on github.
  • I am ecmaxp (https://keybase.io/ecmaxp) on keybase.
  • I have a public key whose fingerprint is FC3F 7720 6CAA 2B29 0EE8 CB30 6F69 A78C 07AA 30C2

To claim this, I am signing this object: