Skip to content
Türker Yıldırım
Writing
Snippets
About
Search
Snippets
One-liners, regexes and short scripts worth keeping. Copy, adapt, move on.
Check SSL/TLS expiry dates across a list of remote domains in parallel
ssh
tls
Measure OPcache memory utilization from the command line
opcache
performance
Extract all MCP tool calls from local JSONL debug logs with jq
ai-tooling
bash
Stream Claude/OpenAI JSON responses into a PHP stream resource
ai-tooling
php
Find orphaned WordPress postmeta rows with a single join
sql
wordpress
A PSR-15 middleware that enforces request timeout headers
php
psr
Inspect dead-letter queue payload headers in RabbitMQ via curl
rabbitmq
Kill long-running MySQL queries exceeding an execution threshold
mysql
Validate an Nginx configuration file in a CI container before reload
ci-cd
nginx
Register a custom PHPStan rule without a third-party extension
phpstan
Drain and restart systemd queue workers gracefully in bash
bash
queues
Show the largest tables in MySQL excluding InnoDB system tables
mysql
Find the largest autoloaded options
mysql
performance
profiling
wordpress
Wait for a compose service to be healthy before running tests
bash
ci-cd
docker
docker-compose
testing
A PHPStan baseline that can only shrink
ci-cd
phpstan
refactoring
static-analysis
testing
Alert on an error budget burn rate
logging
monitoring
performance
system-design
Run a Postman collection in CI with Newman
api-design
ci-cd
integration-testing
postman
Measure replication lag with a heartbeat table
architecture
monitoring
mysql
sql
Validate a request against an OpenAPI schema
api-design
openapi
php
testing
Cache Composer in a GitHub Actions workflow
ci-cd
composer
github-actions
performance
Create a Redis ACL user for one service
caching
deployment
redis
security
Generate a PHPStan baseline and fail on growth
bash
ci-cd
phpstan
static-analysis
Restore last night’s dump and assert on row counts
backup
bash
monitoring
mysql
Find indexes that have never been read
indexing
monitoring
mysql
sql
A debounced value as a React hook
async
javascript
performance
react
Verify a webhook signature in constant time
deployment
gitlab-ci
php
security
Pass a build secret without baking it into a layer
ci-cd
deployment
docker
security
Mount a Composer cache in a BuildKit build
ci-cd
composer
docker
performance
Reindex behind an alias with no downtime
bash
deployment
elasticsearch
migrations
Make an index invisible to test a drop
indexing
migrations
mysql
sql
Check every hostname in a file for a near-expiry certificate
bash
monitoring
security
tls
A content security policy header for a site with no inline script
deployment
nginx
security
tls
Wait for a TCP port before starting a container command
bash
deployment
docker
docker-compose
Count queries per request in Laravel middleware
laravel
php
profiling
query-optimization
Build a PHP image with only the extensions you need
deployment
docker
performance
php
Read a Symfony parameter without injecting the container
design-patterns
oop
php
symfony
Alert when a certificate is under thirty days
bash
monitoring
security
tls
Register a Gutenberg block from PHP
gutenberg
php
wordpress
wp-plugins
Debounce without a library
async
javascript
linting
performance
Fail a build when PHPStan finds a new error
bash
ci-cd
phpstan
static-analysis
1
2
3
…
6
Older