Skip to content

Instantly share code, notes, and snippets.

View khuezy's full-sized avatar

khuezy

View GitHub Profile
@khuezy
khuezy / Dockerfile
Last active February 22, 2025 16:52
Temporal Fly.io
ARG GOPROXY
##### Temporal server with Auto-Setup #####
FROM temporalio/ui:2.27.2 as ui
FROM temporalio/server:1.24.1.0 as server
WORKDIR /etc/temporal
FROM temporalio/auto-setup:1.24.1.0 as final
@khuezy
khuezy / Dns.ts
Last active June 29, 2023 15:40
AWS Get Closest DynamoDB Region
// DNS Stack
export function Dns({ stack, app }: StackContext) {
...
createLatencyRecords(stack, 'example.app', 'zone_id')
}
function createLatencyRecords(stack: Stack, domainName: string, hostedZoneId: string) {
// Create TXT Records with region names under record name: lbr.example.app
// This allows us to query `dns.resolveTxt('lbr.example.app')` to get the
// region w/ the lowest latency for DynamoDB to connect to.
REGIONS.map(region => {
@khuezy
khuezy / link.tsx
Last active October 15, 2023 13:42
next/link patch