Skip to content

Instantly share code, notes, and snippets.

View barein's full-sized avatar

Nicolas Bareil barein

View GitHub Profile
@barein
barein / SKILL.md
Created February 14, 2026 15:23 — forked from mnapoli/SKILL.md
DB transactions skill
name database-transactions
description Database transactions and pessimistic locking. Activates when working with DB::transaction, lockForUpdate, concurrent modifications, or read-modify-write patterns; or when the user mentions race conditions, locking, or data integrity.

Database Transactions & Pessimistic Locking

@barein
barein / Dockerfile
Created April 12, 2020 08:04
bitnami/php-fpm:7.4 set up with non-root user
FROM bitnami/php-fpm:7.4
#Install SURY repo to install php7.4 extensions
RUN apt-get update \
&& apt-get install -y \
zlib1g-dev \
&& apt install -y curl wget gnupg2 ca-certificates lsb-release apt-transport-https \
&& wget https://packages.sury.org/php/apt.gpg \
&& apt-key add apt.gpg \
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.list \