Skip to content

Instantly share code, notes, and snippets.

View mariusbalcytis's full-sized avatar

Marius Balčytis mariusbalcytis

View GitHub Profile
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 2, 2024 12:33
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@jedi4ever
jedi4ever / nodejs-cluster-zero-downtime.md
Last active June 29, 2024 16:00
nodejs clustering, zero downtime deployment solutions

Clustering: The basics

The trick? pass the file descriptor from a parent process and have the server.listen reuse that descriptor. So multiprocess in their own memory space (but with ENV shared usually)

It does not balance, it leaves it to the kernel.

In the last nodejs > 0.8 there is a cluster module (functional although marked experimental)