Knowledge Base
Snippets
Reusable code snippets — copy-paste ready.
Drupal Twig Field Rendering Patterns
Common patterns for rendering field values in Drupal 8+ Twig templates.
Drupal Drush Quick Reference
Essential Drush commands for Drupal development and operations.
Hex to RGB Conversion
Convert hex color codes to RGB values in JavaScript.
Extract YouTube & Vimeo Video IDs
Parse video IDs from YouTube and Vimeo URLs and generate embed URLs.
Patch npm Packages with patch-package
Apply fixes to node_modules packages that persist across installs.
Python Read CSV with Arabic Date Translation
Read CSV files with pandas and parse Arabic dates using dateparser.
Drupal Create Links Programmatically
Create various types of links in Drupal 8 using URL and Link classes.
WordPress Enqueue Scripts & Styles
Properly enqueue external and theme scripts/styles in WordPress.
WordPress Admin Customization Snippets
Hide admin menus, remove category prefix, and hide reCAPTCHA badge.
Node.js EACCES Permission Fix (Windows)
Fix 'Error: listen EACCES: permission denied' on Windows by resetting WinNAT.
WordPress Custom Post Type Taxonomy
Get taxonomy terms for custom post types in WordPress.
WordPress Polylang Language Switcher Shortcode
Create a custom language switcher shortcode with flags for Polylang.
WordPress ACF Meta Query for Checkbox Fields
Query posts by ACF checkbox field values using WP_Query meta_query.
Cloudflare WAF Rule for WordPress
Protect WordPress admin and login pages with Cloudflare WAF custom rules.
CSS Sticky Footer
Keep the footer at the bottom of the page with minimal CSS.
WordPress Cookie Bar Conditional Display
Hide GDPR cookie consent bar on specific pages using wildcard matching.
Composer Memory Limit Fix
Fix 'Allowed memory size exhausted' error when running Composer.
Git User Configuration Per Repository
Set different Git identities for different repositories.
Yarn Network Timeout Fix
Increase Yarn's network timeout for slow connections.
HTML Custom 404 Page
A clean, minimal 404 error page with centered layout.