Skip to content

Instantly share code, notes, and snippets.

View niculistana's full-sized avatar
👋

Nicu Listana niculistana

👋
View GitHub Profile
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@bdfinst
bdfinst / os-corp-dev-practices.md
Last active January 18, 2026 18:39
Contrast best practices between OS and enterprise
Aspect Open Source Enterprise
Governance Maintainers, community consensus, meritocracy-based influence Empowered teams, lightweight oversight, guardrails over gates
Code Review Public PRs, async reviews from global contributors, emphasis on transparency Small PRs, fast feedback loops, pair/mob programming as alternative
Documentation README-driven, contributor guides essential, public wikis Living documentation, lightweight ADRs, docs as code
Branching Strategy Fork-and-PR model, contributors work in personal forks Trunk-based development, short-lived feature branches (< 1 day)
Communication Public channels (GitHub issues, Discord, mailing lists) Co-located teams (in space /and or time), minimal ceremony
Release Cadence Varies widely, often semver-based, maintainer-driven Continuous delivery, deploy on merge, feature flags for controlled rollout
Testing CI on PRs, community-contributed
@swanson
swanson / .irbrc
Last active August 8, 2025 15:57
.irbrc color coding Rails console by environment
# Add color coding based on Rails environment for safety
if defined? Rails
banner = if Rails.env.production?
"\e[41;97;1m #{Rails.env} \e[0m "
else
"\e[42;97;1m #{Rails.env} \e[0m "
end
# Build a custom prompt
@faermanj
faermanj / README.md
Last active June 30, 2020 18:07
AWS Well Architected: Performance Efficiency Notes

Video: https://www.twitch.tv/videos/177667117

PERF 1. How do you select the best performing architecture?

"In God we trust, all others bring data" W. Edwards Deming

Performance 👎

  • Latency
  • Throughput
  • Latency ⍺ Concurrent Users
@alexellis
alexellis / k8s-pi.md
Last active April 7, 2026 15:40
K8s on Raspbian
@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active February 15, 2026 08:09
React Native Bridging Cheatsheet
@ryanermita
ryanermita / rails_locking.md
Last active December 12, 2024 07:03
Optimistic and Pessimistic Locking in Rails

Optimistic Locking assumes that a database transaction conflict is very rare to happen. It uses a version number of the record to track the changes. It raise an error when other user tries to update the record while it is lock.

usage

Just add a lock_version column to the table you want to place the lock and Rails will automatically check this column before updating the record.

Pessimistic locking assumes that database transaction conflict is very likely to happen. It locks the record until the transaction is done. If the record is currently lock and the other user make a transaction, that second transaction will wait until the lock in first transaction is release.

usage

Coding interview practice made easy, a curated list of free and easy-to-follow resources

Competitive Programming

Books

  • Intro to algorithms by Cormen (aka CLRS book)
  • Cracking the Coding Interview by McDowell
@btroncone
btroncone / rxjs_operators_by_example.md
Last active May 3, 2026 02:38
RxJS 5 Operators By Example

Useful Github commands

Viewing unpushed commits

git log origin/master..HEAD