Skip to content

Instantly share code, notes, and snippets.

View lin-calvin's full-sized avatar
🐢
May no respond in weekdays (expect 5:10pm-6pm UTC+8 )

Calvin lin lin-calvin

🐢
May no respond in weekdays (expect 5:10pm-6pm UTC+8 )
  • High School park of Shenzhen Experimental School
  • Shenzhen
  • 06:24 (UTC +08:00)
View GitHub Profile
@lin-calvin
lin-calvin / k8s-edit-configmap
Created October 4, 2025 13:22
Edot k8s configmap gracefully
#!/bin/bash
# k8s-edit-configmap - Edit Kubernetes ConfigMap data interactively
set -euo pipefail
# Function to display usage
usage() { echo "Usage: $0 <configmap-name> [-n <namespace>]"
echo "Example: $0 my-config -n default"
exit 1
}
@lin-calvin
lin-calvin / vcc_lib_client.py
Last active May 13, 2023 08:25
vcclib client
import service
from service import request
import asyncio
class hello:
def __init__(self, s):
self.s = s
async def say_hi(self):
@lin-calvin
lin-calvin / index.html
Last active October 28, 2022 13:37
Test case for electron #36105
<!DOCTYPE html><html><head>
<title>Test case</title>
<style>
body {
overflow: hidden;
}
</style>
</head>
<body>
hello world