Skip to content

Instantly share code, notes, and snippets.

View myriaglot's full-sized avatar
👋
hello world!

Myria Palala myriaglot

👋
hello world!
View GitHub Profile
@myriaglot
myriaglot / node-what-changed-in-streams.md
Created May 27, 2026 15:10
what changed in streams in nodejs through the years - here is a clearer explanation of **what changed and why it mattered**:

The article explains that Node.js streams became easier over time because newer APIs were added on top of the older event-based system, reducing the amount of manual stream management developers had to do.

Here’s a clearer explanation of what changed and why it mattered:


Why Node Streams Used to Feel Difficult

Older Node streams relied heavily on:

No—the Saga pattern is not just CQRS with “reversible transactions”. They solve different problems, even though you can (and often do) combine them.

What Saga is really about

  • Saga is a coordination pattern for long‑running, distributed workflows: it breaks a big business operation into a sequence of local ACID transactions, each in its own service or DB. linkedin
  • “Reversibility” comes from explicit compensating actions: if step 3 fails, the saga runs undo steps (e.g., refund, release_inventory) in reverse order, not from having some magic ACID rollback. linkedin

In other words, Saga is about distributed transactional consistency and orchestrating compensations, not about how you read or write data models.

What CQRS is really abou

@myriaglot
myriaglot / git-tea.md
Created May 17, 2026 15:12
running git tea summarized

Yes — those three Gitea docs cover the core pieces you need to self-host a clone on your server: database setup, running Gitea as a service, and basic command-line administration. Here’s a practical summary based on them. What you need first

Gitea needs a database, and the docs support PostgreSQL, MySQL/MariaDB, SQLite, and MSSQL. For production, the database-prep guide focuses on PostgreSQL and MySQL because those are the most common server choices. You also need the Gitea binary installed on the server, plus a Linux service setup so it starts automatically on boot. Database setup

The database-prep page says to create a dedicated database and user for Gitea instead of using an existing shared account. The important idea is to give Gitea its own credentials and permissions, then enter those details during the web install or in the config file. If you want the simplest setup, SQLite is built in, but for a real server deployment PostgreSQL or MySQL is the better choice.

@myriaglot
myriaglot / remoev_root_ssh_login.sh
Created May 9, 2026 01:59
confirm before removing root login script
#!/bin/bash
# Function to ask for confirmation
confirm() {
read -r -p "${1:-Are you sure? [y/N]} " response
case "$response" in
[yY][eE][sS]|[yY])
true
;;
*)
@myriaglot
myriaglot / spirngboot.md
Created April 24, 2026 19:47
springboot-overview-in-ecommerce-mvc

I have created a comprehensive lesson guide to teach the flow of a modern Spring Boot E-Commerce application using MermaidJS diagrams.

This guide is broken down into four stages, starting with the full architectural picture and then drilling down into how each specific part (Backend, Frontend, and Database) functions.


Spring Boot + React/Next.js Architecture Lesson

Diagram 1: The Macro View (The Whole E-Commerce Application Flow)

Objective: To show the complete flow of a single user action, like "View Cart," and how it crosses the boundary between the "Frontend" (React/Next.js) and the "Backend" (Spring Boot).

@myriaglot
myriaglot / kiro-powers.md
Last active April 24, 2026 10:27
how to enable powers in Kiro IDE

Kiro IDE & Agent Skills ("Powers") Cheatsheet

This cheatsheet provides a technical overview of the Kiro Agentic IDE ecosystem, focusing on Powers, Skills, and Steering mechanisms.


1. Kiro Interface Comparison

Feature Kiro IDE (Desktop) Kiro CLI
@myriaglot
myriaglot / ai-pigouvian-tax-and-humancapital.md
Created April 22, 2026 08:11
AI Pigouvian tax and Human Capital

. The Pigouvian Tax (The "Pollution" Model)

A Pigouvian Tax is designed to discourage activities that impose a cost on society that the company isn't paying for (negative externalities). Traditionally, this is used for carbon emissions or tobacco.

  • How it applies to your idea: If a company replaces 1,000 workers with an AI model, the "pollution" is the resulting unemployment, loss of local tax revenue, and the strain on social services.

  • The Implementation: The government would levy a "Displacement Tax" or "Robot Tax" on companies that automate roles.

  • The Incentive to Work: Since this tax is paid by the employer, it doesn't directly discourage the worker. However, it might slow down the pace of AI adoption, keeping human roles viable for longer.

📊 Analytics vs AI Analytics — Quick Gist for Businesses

What is Analytics?

Analytics is the process of collecting, analyzing, and visualizing data to understand what is happening in a business.

Traditional tools like Tableau, Power BI, or Google Analytics help teams:

  • Track performance (sales, traffic, revenue)
  • Identify trends over time
@myriaglot
myriaglot / simple-gitolite-rust.md
Created April 8, 2026 01:16
gitolite in rust RFP

PLAN.md: Rust-Gitolite (Working Title)

A minimalist, high-performance, SSH-based Git hosting server with zero UI and strict identity enforcement.

1. Core Objectives

  • Zero UI: Everything managed via CLI (clap) and TOML.
  • Identity Integrity: Strict enforcement of SSH key identity against Git commit metadata (email/username).
  • Minimalist Footprint: A single static binary managing the system's authorized_keys.
  • Security: Use Ed25519 (via ssh-key) for all authentication.
@myriaglot
myriaglot / answers_to_common_questions.md
Last active March 30, 2026 15:30
react-junior developer interview notes

Here are clean, interview-ready one-liners + quick examples you can say in a rapid-fire round:


⚡ Prop Drilling

Answer:

“Prop drilling is when data is passed through multiple intermediate components just to reach a deeply nested child.”