Skip to content

Instantly share code, notes, and snippets.

View hongbo-miao's full-sized avatar
❣️
🥥🏝️🌺🍍🌸

Hongbo Miao hongbo-miao

❣️
🥥🏝️🌺🍍🌸
View GitHub Profile
This file has been truncated, but you can view the full file.
22:12:36 - LiteLLM Proxy:DEBUG: proxy_server.py:3109 - Request received by LiteLLM:
{
"model": "claude-3-opus",
"messages": [
{
"role": "system",
"content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.\n\n====\n \nCAPABILITIES\n\n- You can read and analyze code in various programming languages, and can write clean, efficient, and well-documented code.\n- You can debug complex issues and providing detailed explanations, offering architectural insights and design patterns.\n- You have access to tools that let you execute CLI commands on the user's computer, list files, view source code definitions, regex search, inspect websites, read and write files, and ask follow-up questions. These tools help you effectively accomplish a wide range of tasks, such as writing code, making edits or improvements to existing files, understanding the current state of
@hongbo-miao
hongbo-miao / gist:feff6f441727b6db7c7104784eb7e3f4
Created July 16, 2024 17:23
Clang v18.1.8 default LLVM .clang-format
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
>> ATTEMPT 1/1
2024-07-14 08:08:51 platform > Cloud storage job log path: /workspace/924/0/logs.log
2024-07-14 08:09:04 INFO i.m.r.Micronaut(start):101 - Startup completed in 2249ms. Server Running: http://orchestrator-repl-job-924-attempt-0:9000
2024-07-14 08:09:05 replication-orchestrator > Writing async status INITIALIZING for KubePodInfo[namespace=production-hm-airbyte, name=orchestrator-repl-job-924-attempt-0, mainContainerInfo=KubeContainerInfo[image=airbyte/container-orchestrator:0.63.6, pullPolicy=IfNotPresent]]...
2024-07-14 08:08:51 platform > Executing worker wrapper. Airbyte version: 0.63.6
2024-07-14 08:08:51 platform > Creating orchestrator-repl-job-924-attempt-0 for attempt number: 0
2024-07-14 08:08:51 platform > Successfully deleted all running pods for the connection!
2024-07-14 08:08:56 platform > Waiting for pod to be running...
2024-07-14 08:08:58 platform > Pod production-hm-airbyte/orchestrator-repl-job-924-attempt-
@hongbo-miao
hongbo-miao / gist:c65bb869eb9c52bd275bcb9607251d66
Last active July 15, 2024 01:06
Airbyte sync succeed log
>> ATTEMPT 1/1
2024-07-14 07:46:41 platform > Cloud storage job log path: /workspace/923/0/logs.log
2024-07-14 07:47:20 INFO i.m.r.Micronaut(start):101 - Startup completed in 2263ms. Server Running: http://orchestrator-repl-job-923-attempt-0:9000
2024-07-14 07:47:22 replication-orchestrator > Writing async status INITIALIZING for KubePodInfo[namespace=production-hm-airbyte, name=orchestrator-repl-job-923-attempt-0, mainContainerInfo=KubeContainerInfo[image=airbyte/container-orchestrator:0.63.6, pullPolicy=IfNotPresent]]...
2024-07-14 07:46:41 platform > Executing worker wrapper. Airbyte version: 0.63.6
2024-07-14 07:46:41 platform >
2024-07-14 07:46:41 platform > Using default value for environment variable SIDECAR_KUBE_CPU_LIMIT: '2.0'
2024-07-14 07:46:41 platform > ----- START CHECK -----
2024-07-14 07:46:41 platform > Using default value for environment variable SOCAT_KUBE_CPU_LIMIT: '2.0'
@hongbo-miao
hongbo-miao / gist:860afd1e482ef6227876d979b4c0aa0b
Last active July 11, 2024 01:58
MSK KRaft connector error log
```sh
[Worker-0b87c1d131f888840] No sanity checks script found. Ignoring.
[Worker-0b87c1d131f888840] Waiting for resolving bootstrap servers address ...
[Worker-0b87c1d131f888840] Successfully resolved bootstrap servers address.
[Worker-0b87c1d131f888840] Starting MSK Connect...
[Worker-0b87c1d131f888840] [2024-07-10 20:45:15,092] INFO WorkerInfo values:
[Worker-0b87c1d131f888840] jvm.args = JVM_ARGS
[Worker-0b87c1d131f888840] jvm.spec = Amazon.com Inc., OpenJDK 64-Bit Server VM, 11.0.22, 11.0.22+7-LTS
[Worker-0b87c1d131f888840] jvm.classpath = CLASSPATH
[Worker-0b87c1d131f888840] os.spec = Linux, amd64, 5.10.215-203.850.amzn2.x86_64
@hongbo-miao
hongbo-miao / code_line_count.json
Last active September 4, 2026 10:19
hongbomiao.com code line count
{"label":"code lines","message":"287.1k","schemaVersion":1,"color":"blue","labelColor":"gray"}
#if defined(ESP32)
#include <WiFiMulti.h>
WiFiMulti wifiMulti;
#define DEVICE "ESP32"
#elif defined(ESP8266)
#include <ESP8266WiFiMulti.h>
ESP8266WiFiMulti wifiMulti;
#define DEVICE "ESP8266"
#endif
@hongbo-miao
hongbo-miao / hm-connect-cluster-connect-api.json
Created December 4, 2021 10:17
hm-connect-cluster-connect-api verify error
{
"name": "io.confluent.connect.elasticsearch.ElasticsearchSinkConnector",
"error_count": 3,
"groups": [
"Common",
"Transforms",
"Predicates",
"Error Handling",
"Transforms: unwrap",
"Transforms: key",
@hongbo-miao
hongbo-miao / docker-compose.yml
Created July 9, 2021 17:24 — forked from asafc/docker-compose.yml
OPAL example configuration with decision logs
version: "3.8"
services:
# When scaling the opal-server to multiple nodes and/or multiple workers, we use
# a *broadcast* channel to sync between all the instances of opal-server.
# Under the hood, this channel is implemented by encode/broadcaster (see link below).
# At the moment, the broadcast channel can be either: postgresdb, redis or kafka.
# The format of the broadcaster URI string (the one we pass to opal server as `OPAL_BROADCAST_URI`) is specified here:
# https://github.com/encode/broadcaster#available-backends
broadcast_channel:
image: postgres:alpine
@hongbo-miao
hongbo-miao / opalogger.py
Created July 9, 2021 17:24 — forked from asafc/opalogger.py
Example fastapi server that accept OPA decision logs and prints them to the console
"""
you may run this example with uvicorn, by using this command:
uvicorn opalogger:app --reload
"""
import gzip
from typing import Callable, List
from fastapi import Body, FastAPI, Request, Response