Skip to content

Instantly share code, notes, and snippets.

View rawkode's full-sized avatar

David Flanagan rawkode

View GitHub Profile
@rawkode
rawkode / txt
Created December 8, 2025 23:07
cuenv --llms
# cuenv
> A modern application build toolchain with typed environments and CUE-powered task orchestration.
cuenv provides two core primitives for secure, validated development environments:
## Core Primitives
### `cuenv exec -- <command>`
@rawkode
rawkode / CLAUDE-4.5-Sonnet.md
Last active November 22, 2025 10:48
LLM Eval: Production Valkey
---
apiVersion: v1
kind: Namespace
metadata:
  name: valkey
  labels:
    app.kubernetes.io/name: valkey
    app.kubernetes.io/component: database
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "rust-env";
nativeBuildInputs = [
rustc cargo rustracerrustfmt rls
# Example Build-time Additional Dependencies
pkgconfig
];
from(bucket: "devrel-platform-metrics")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "docker_hub")
|> filter(fn: (r) => r["_field"] == "pull_count")
|> group(columns: ["url"])
|> count()
|> group()
|> sort(columns: ["_value"], desc: true)
@rawkode
rawkode / commit-count-by-author-by-month.flux
Created May 28, 2020 11:39
Time Series Analysis of InfluxData's Core Open Source Repositories
from(bucket: "gitseries")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) =>
(r["_measurement"] == "commit"))
|> filter(fn: (r) =>
(r["_field"] == "deletions" or r["_field"] == "files_modified" or r["_field"] == "insertions"))
|> group(columns: ["author"])
|> aggregateWindow(every: 1mo, fn: count)
.define(
INFLUXDB_MEASUREMENT,
Type.STRING,
"",
Importance.LOW,
INFLUXDB_MEASUREMENT_DOC
)
.define(
INFLUXDB_MEASUREMENT_FIELD,
Type.STRING,
@rawkode
rawkode / unipkg.yaml
Last active February 27, 2020 22:14
Unipkg
managers:
arch:
command: yay
install: -Sy --noconfirm
uninstall: -Rd --noconfirm
debian:
command: apt
install: install -y
uninstall: uninstall -y
nix:
@rawkode
rawkode / main.ts
Last active October 2, 2023 14:29
Pulumi Secret in JSON
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
const config = new pulumi.Config();
const kubernetesProvider = new k8s.Provider("metrics", {
kubeconfig: config.requireSecret("kubeconfig"),
// Why doesn't it use the namespace from the context?
// PR submitted: https://github.com/pulumi/pulumi-kubernetes/pull/862
namespace: "community"
});
version: '3'
services:
plex:
image: plexinc/pms-docker:latest
environment:
- PLEX_CLAIM="CLAIM-2PDJ1X9MGSCEISNKTTQZ"
- PLEX_UID=1000
- PLEX_GID=1000
volumes:
@rawkode
rawkode / metrics.json
Created April 5, 2019 10:57
Envoy Metrics
{
"stats": [{
"name": "access_log_file.flushed_by_timer",
"value": 0
}, {
"name": "access_log_file.reopen_failed",
"value": 0
}, {
"name": "access_log_file.write_buffered",
"value": 0