Skip to content

Instantly share code, notes, and snippets.

View lpostelnicu-beg's full-sized avatar

Lucian Postelnicu-Ciurez lpostelnicu-beg

View GitHub Profile
@bradtraversy
bradtraversy / terminal-commands.md
Last active March 23, 2026 23:17
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@zcourts
zcourts / tmux cheat sheet
Last active March 16, 2026 22:43
tmux cheat sheet image from DuckDuckGo UI
https://duckduckgo.com/?q=tmux+cheat+sheet&atb=v47-1_x&ia=cheatsheet&iax=1
@LeCoupa
LeCoupa / redis_cheatsheet.bash
Last active March 19, 2026 17:42
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active March 21, 2026 03:05
tmux Cheat Sheet
@eulerfx
eulerfx / EventMachines.md
Last active March 3, 2026 13:39
The relationship between state machines and event sourcing

A state machine is defined as follows:

  • Input - a set of inputs
  • Output - a set of outputs
  • State - a set of states
  • S0 ∈ S - an initial state
  • T : Input * State -> Output * State - a transition function

If you model your services (aggregates, projections, process managers, sagas, whatever) as state machines, one issue to address is management of State. There must be a mechanism to provide State to the state machine, and to persist resulting State for subsequent retrieval. One way to address this is by storing State is a key-value store. Another way is to use a SQL database. Yet another way is event sourcing. The benefit of even sourcing is that you never need to store State itself. Instead, you rely on the Output of a service to reconstitute state. In order to do that, the state machine transition function needs to be factored into two functions as follows:

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active March 23, 2026 22:39
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname