Insights:
Relevant tech:
- Amazon SWF
- Uber Cadence
- Temporal
- Netflix Conductor
- MSFT DurableTask
| package teehook | |
| var _ mypkg.Hook = (*Tee)(nil) | |
| func NewTeeHook(hooks ...mypkg.Hook) mypkg.Hook { | |
| return &Tee{hooks: hooks} | |
| } | |
| type Tee struct { | |
| hooks []mypkg.Hook |
| keybind = global:option+space=toggle_quick_terminal | |
| quick-terminal-animation-duration=0.07 |
| FROM node:22-alpine AS base | |
| # deps | |
| FROM base AS deps | |
| WORKDIR /usr/src/app | |
| RUN apk add --no-cache libc6-compat | |
| COPY package.json package-lock.json* ./ | |
| RUN npm ci | |
| # builder |
| import "net/http/httptrace" | |
| func (cl *httpClient) makeTrace(kvs []*kvpb.KV) *httptrace.ClientTrace { | |
| start := cl.timeNow() | |
| var ( | |
| startDial = start | |
| startDNS = start | |
| startConnect = start | |
| startTLS = start |
Insights:
Relevant tech:
| const magnitudes = [ | |
| {magnitude: 1_0000_0000, suffix: "억"}, | |
| {magnitude: 1_0000, suffix: "만"}, | |
| // {magnitude: 1000, suffix: "천"}, // this works too | |
| ]; | |
| const krFormat = (num: number): string => { | |
| const m = magnitudes.find((m) => num >= m.magnitude); | |
| if (!m) { | |
| return `${num}` |
| local namespace="" | |
| local secret="" | |
| local data_key="" | |
| local filename="" | |
| kubectl get secret -n ${namespace} ${secret} -o json \ | |
| | jq --arg datakey ${data_key} --argjson value <(base64 -w 0 < ${filename} | jq -R -s '.') '.data[$datakey] = $value' \ | |
| | kubectl apply -f - |
| Error: Error waiting for Load Balancer (cockroach-lb.stage) to become active: Error issuing read request in LoadbalancerStateRefreshFunc to DigitalOcean for Load Balancer 'e1bf1559-2ded-41bd-88d4-d1e7066bd6e1': GET https://api.digitalocean.com/v2/load_balancers/e1bf1559-2ded-41bd-88d4-d1e7066bd6e1: 504 <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]--> | |
| <head> | |
| <title>api.digitalocean.com | 504: Gateway time-out</title> | |
| <meta charset="UTF-8" /> |
| ==> Checking that code complies with gofmt requirements... | |
| TF_ACC=1 go test "./kubernetes" -v -test.run TestAccKubernetesPod_with_projected_volume -timeout 120m | |
| === RUN TestAccKubernetesPod_with_projected_volume | |
| TestAccKubernetesPod_with_projected_volume: testing.go:654: Step 0 error: After applying this step, the plan was not empty: | |
| DIFF: | |
| UPDATE: kubernetes_pod.test | |
| spec.0.container.0.command.#: "" => "0" | |
| spec.0.container.0.env.#: "0" => "0" |
| package main | |
| func main() { | |
| println("lol") | |
| } |