Skip to content

Instantly share code, notes, and snippets.

View myoungpyohong's full-sized avatar

Myoungpyo, Hong myoungpyohong

View GitHub Profile
@myoungpyohong
myoungpyohong / frontend-ws-connection.ts
Created September 11, 2020 10:14 — forked from jsdevtom/frontend-ws-connection.ts
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);
@myoungpyohong
myoungpyohong / macos-ramdisk.md
Created September 10, 2020 09:56 — forked from htr3n/macos-ramdisk.md
Creating RAM disk in macOS

Built-in

diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.

Notes: