Create various settings file I have one file for each provider, all in ~/.claude
- KIMI K2.5: kimi_settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.moonshot.ai/anthropic",
A couple of code samples to show how a named pipe can be used to extend Go's channel paradigm for use between different processes running on a system.
Note that opening a write channel will return two channels -
| # See: https://olegk.dev/go-linters-configuration-the-right-version | |
| run: | |
| # Depends on your hardware, my laptop can survive 8 threads. | |
| concurrency: 8 | |
| # I really care about the result, so I'm fine to wait for it. | |
| timeout: 30m | |
| # Fail if the error was met. |
| readinessProbe: | |
| exec: | |
| command: ["/root/grpc_health_probe", "-addr=:6666"] | |
| initialDelaySeconds: 1 | |
| livenessProbe: | |
| exec: | |
| command: ["/root/grpc_health_probe", "-addr=:6666"] | |
| initialDelaySeconds: 2 | |
| imagePullPolicy: IfNotPresent |
| //Place this script inside your application module build.gradle | |
| //It will create a new task(s) based on your application variants within (run) group | |
| //sample: ./gradlew installRunDebug | |
| //sample: ./gradlew installRunStagDebug | |
| project.afterEvaluate { | |
| android.applicationVariants.all { variant -> | |
| task "installRun${variant.name.capitalize()}"(type: Exec, dependsOn: "install${variant.name.capitalize()}", group: "run") { | |
| commandLine = ["adb", "shell", "monkey", "-p", variant.applicationId + " 1"] | |
| doLast { |
| gac() { git add -A && git commit -m "$*" && git push; } |
| package db | |
| import ( | |
| "strings" | |
| "time" | |
| "github.com/sqs/modl" | |
| ) | |
| // SimpleQueue is a PostgreSQL-backed queue with atomic enqueue and dequeue, no |