Skip to content

Instantly share code, notes, and snippets.

import argparse
import json
import logging
from datetime import datetime, timedelta
from typing import Dict, List, Optional
import requests
from sqlalchemy.dialects.postgresql import insert
from orion.biz.models.meta_ads import MetaAds

Checking prometheus configuration and port accessibility in orion namespace... Found 91 unique apps with running pods (with app label)

Results

App Name Sample Pod Prometheus Config Status Accessibility
calendar-reminder-reloader-baikal-eci calendar-reminder-reloader-baikal-eci-29380328-4wbh9 No Config Error: command terminated with exit code 7 ❌ NOT ACCESSIBLE
dash-consumer-evaluation dash-consumer-evaluation-c9777fc7-gq9fj Port: 8000, Path: /metrics 200 ✅ ACCESSIBLE
dash-orion-api dash-orion-api-6f6569cb66-jgqcb Port: 8000, Path: prometheus/metrics/metrics 200 ✅ ACCESSIBLE
{
"sub": "Rt5zQWwZ3XArAx7hx+nRZg==",
"avatar_url": "https://files.yestoki.com/avatar/img_7cf876b3-1f63-4bda-a2c8-3beb433a74a8.jpg",
"name": "@wooparadog",
"given_name": null,
"family_name": null,
"middle_name": null,
"nickname": null,
"preferred_username": null,
"profile": null,
diff --git a/PKGBUILD b/PKGBUILD
index f582a43..2b976bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
_pkgname=awesome
pkgname=${_pkgname}-git
-pkgver=4.3.1683.g691e36425
+pkgver=4.3.1684.gf009815cb
diff --git a/PKGBUILD b/PKGBUILD
index f582a43..2b976bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
_pkgname=awesome
pkgname=${_pkgname}-git
-pkgver=4.3.1683.g691e36425
+pkgver=4.3.1684.gf009815cb
--- Dola/DolaApp/Resources/Localizable.xcstrings 2025-09-11 17:25:41.359392185 +0800
+++ NewLocalizable.xcstrings 2025-09-11 17:25:36.670262737 +0800
@@ -2,50 +2,7 @@
"sourceLanguage" : "en",
"strings" : {
"" : {
- "localizations" : {
- "de" : {
- "stringUnit" : {
- "state" : "translated",
#!/usr/bin/env python3
"""
Compare two Apple .xcstrings localization files to ensure they have the same final effects.
This script verifies that both files would produce identical user-facing translations.
"""
import json
import sys
from typing import Dict, Any, Set, List, Tuple
from pathlib import Path
Fetching pods from Kubernetes cluster...
Found 449 pods
========================================================================================================================
POD TO DEPLOYMENT MAPPING
========================================================================================================================
+-----------------------------------------------------------------+-------------+-----------------+-----------------------------------------------------+-----------------------------------------------------+
| Pod Name | Namespace | Product Label | App Label | Deployment (from app) |
+=================================================================+=============+=================+=====================================================+=====================================================+
| 647niubi-7hmfq | orion
import os
from typing import Any, Dict, List
import requests
# Get access token from environment variables
access_token = os.environ.get("DASH_TOKEN")
if not access_token:
raise ValueError("Please set the DASH_TOKEN environment variable")
import mailbox
import json
from email.header import decode_header, make_header
from email.utils import parsedate_to_datetime
def get_decoded_header(header):
"""Decodes an email header to a string."""
if header is None:
return ""
# The make_header function ensures that different encoding parts are handled correctly.