init: Alfred preferences

This commit is contained in:
2026-03-26 09:22:38 +08:00
commit 3cad72b72c
13215 changed files with 108280 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>snippetkeywordprefix</key>
<string></string>
<key>snippetkeywordsuffix</key>
<string></string>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl -n longhorn-system get volumes",
"uid" : "BA1E11C0-BA5A-4331-A056-0D60C84B1F6C",
"name" : "kubectl -n longhorn-system get volumes",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pods -n longhorn-system",
"uid" : "ACB33C63-74B4-4B89-8BD9-6A7E6E7FCF0F",
"name" : "kubectl get pods -n longhorn-system",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pods -o wide",
"uid" : "8894A17E-E8B8-4C72-8304-444302327542",
"name" : "kubectl get pods -o wide",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pod -l app={cursor}",
"uid" : "8643CEB9-A524-4B36-803D-B0815F39B308",
"name" : "依 app 標籤列出 Pod",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl delete pod -l app={cursor}",
"uid" : "3E582DA1-508E-4980-916B-8E7C300EA296",
"name" : "依 app 標籤刪除 Pod",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get deployments",
"uid" : "DF7F790E-7E54-4ED0-ABAE-B3211134F070",
"name" : "列出 Deployment",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get ingress",
"uid" : "FD635D49-A7C9-4440-B902-5F7D79967C15",
"name" : "列出 Ingress",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get ingressclass",
"uid" : "40741B1A-45F2-43E9-B570-33C0B8BF4C18",
"name" : "列出 IngressClass",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get nodes",
"uid" : "E48CED7A-A4F3-4CE9-9DC1-5347FD864734",
"name" : "列出 Node",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pv",
"uid" : "DCBC03AB-08B1-4673-A97F-794FA43939CC",
"name" : "列出 PV",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pvc",
"uid" : "1FD6A2DE-986D-420C-8514-06446F25AC97",
"name" : "列出 PVC",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pods",
"uid" : "181AC6D7-66B7-408D-AAEC-748977E5916A",
"name" : "列出 Pod",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get svc",
"uid" : "459364A3-CD94-42FA-AF5A-0799DFECE4CE",
"name" : "列出 Service",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get services",
"uid" : "9D8162BE-2A37-48B7-981B-6EE854487544",
"name" : "列出 Service",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get sc",
"uid" : "07E6EE32-62B8-4A7D-A83E-68CD33E27238",
"name" : "列出 StorageClass",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get all",
"uid" : "9DB44DDB-320E-4B0F-AD34-802E7A1C9ED9",
"name" : "列出所有資源",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl delete deployment {cursor}",
"uid" : "72DDCFD6-6C36-43AE-B637-727835468BB4",
"name" : "刪除 Deployment",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl delete pod {cursor}",
"uid" : "6EBD0527-A641-40E9-B502-5A66209E489F",
"name" : "刪除 Pod",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl delete service {cursor}",
"uid" : "1C3EA26E-EA13-4E84-98E1-63721BB3F4A5",
"name" : "刪除 Service",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl delete svc {cursor}",
"uid" : "DBDD8960-B279-424A-9978-0930DC1C2581",
"name" : "刪除 Service",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl delete -f {cursor}",
"uid" : "F27D05BC-76D7-4575-95A7-1193462C02A7",
"name" : "刪除 YAML 建立的資源",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pods -w",
"uid" : "7BF5E536-97DF-4FD8-BCF8-473441D32EA4",
"name" : "即時監看 Pod 狀態",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get pod {cursor} -w",
"uid" : "8F03908E-2C30-468B-A097-19B1B2A13D33",
"name" : "即時監看指定 Pod 狀態",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl patch storageclass local-path -p '{\"metadata\": {\"annotations\":{\"storageclass.kubernetes.io\/is-default-class\":\"false\"}}}'",
"uid" : "0FCEC4B7-4F7F-40B4-BD32-5842C51A2C2A",
"name" : "取消 local-path 的預設 StorageClass 設定",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "# 格式: kubectl cp [本機檔案] [Pod名稱]:[容器內路徑]\nkubectl cp {cursor}",
"uid" : "1DBB90F3-8A42-4132-9707-E57D5313D5D3",
"name" : "在本機與 Pod 之間複製檔案",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl apply -f {cursor}",
"uid" : "DEF1BB44-59BB-41CA-B944-5BAAF22365C8",
"name" : "套用 YAML 設定檔",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl expose deployment {cursor} --type=LoadBalancer --port=8080",
"uid" : "64969215-290E-410A-AF6B-AC63FAE8D28D",
"name" : "將 Deployment 對外暴露為 LoadBalancer 服務",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl port-forward -n longhorn-system svc\/longhorn-frontend 8080:80",
"uid" : "5206E89D-0BF8-4460-AD28-F0CCCED2F04E",
"name" : "將 longhorn-frontend 服務轉發到本機 8080",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get configmap {cursor}",
"uid" : "9BB62413-83DD-48E2-9048-4A2AC40716F5",
"name" : "查看 ConfigMap",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl describe configmap {cursor}",
"uid" : "36245785-9DCD-4457-8000-0726F9074340",
"name" : "查看 ConfigMap 詳細內容",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl describe pv {cursor}",
"uid" : "DA3AD925-FE59-43D8-A99E-70978A4CDBA7",
"name" : "查看 PV 詳細資訊",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl logs {cursor}",
"uid" : "DDD0F836-60CF-4070-8C56-709B94B55077",
"name" : "查看 Pod 日誌",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl describe pod {cursor}",
"uid" : "CE92F816-8418-4746-AC83-6337A76B6A4C",
"name" : "查看 Pod 詳細資訊",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl describe svc {cursor}",
"uid" : "C7080719-D3CB-4F61-A512-F621877B9973",
"name" : "查看 Service 詳細資訊",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl config view",
"uid" : "81192C4E-CA4A-4962-BEBC-4897888ED0A3",
"name" : "查看 kubeconfig 設定",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl get events",
"uid" : "3162A82E-FB70-41E4-9CAB-A0D15BAFD8F9",
"name" : "查看叢集事件",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl scale deployment {cursor} --replicas=3",
"uid" : "E1CFB9AA-67E7-458C-9861-2A8543762EAC",
"name" : "調整 Deployment 副本數為 3",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl exec -it {cursor} -- sh",
"uid" : "00F5E63B-A0AC-49D1-B783-807BC94FF0F4",
"name" : "進入 Pod 並啟動 sh",
"keyword" : ""
}
}

View File

@@ -0,0 +1,8 @@
{
"alfredsnippet" : {
"snippet" : "kubectl rollout restart deployment {cursor}",
"uid" : "691D6E36-7941-4D44-9C9D-513DCFAD5B04",
"name" : "重新啟動 Deployment",
"keyword" : ""
}
}