Skip to content

Instantly share code, notes, and snippets.

@ignj
ignj / jumppod.yaml
Last active December 26, 2023 12:52
Reverse proxy + Jumpbox
# Test with Bitnami chart. helm install psql --set auth.postgresPassword=postgres oci://registry-1.docker.io/bitnamicharts/postgresql
apiVersion: v1
kind: ConfigMap
metadata:
name: rp-jb-nginx
data:
nginx.conf: |
events {}
http {
@ignj
ignj / AsyncJS.tsx
Created December 8, 2020 23:49
AsyncJS
const sleep = (ms: number) => {
return new Promise(resolve => setTimeout(resolve, ms));
}
/* First example */
const delayedPrint = async (delayMs: number, value: string) => {
await sleep(delayMs)
console.log(value)
}