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 |
| // Scalar stuff | |
| var Scalar = {}; | |
| (function () { | |
| "use strict"; | |
| Scalar.mulFunc = function (first, second) { | |
| return first * second; | |
| }; |
| 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 |
| import java.util.Iterator; | |
| import java.util.NoSuchElementException; | |
| import junit.framework.TestCase; | |
| import org.junit.After; | |
| import org.junit.Before; | |
| import org.junit.Test; | |
| /** |
Insights:
Relevant tech:
| $ git push heroku master | |
| ! Heroku has temporarily disabled this feature, please try again shortly. | |
| ! See http://status.heroku.com for current Heroku platform status. | |
| fatal: Could not read from remote repository. | |
| Please make sure you have the correct access rights | |
| and the repository exists. |
| 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 - |