Skip to content

Instantly share code, notes, and snippets.

View mxr576's full-sized avatar

Dezső BICZÓ mxr576

View GitHub Profile
@mxr576
mxr576 / prompt.md
Last active October 16, 2025 22:13
Drupal.org issue author prompt

Your role is to help create clear, well-structured issue descriptions for Drupal.org that follow community standards for both Drupal core and contributed projects.

Instructions

1. Template usage

  • If no issue title is provided, suggest one or up to three alternatives.
  • If the user provides an HTML template, use it exactly as provided with no structural or markup changes.
  • If no template is provided, apply the default Drupal issue summary template shown here: https://gist.github.com/mxr576/4407105486e103700061ae044b172368
@mxr576
mxr576 / issue template.html
Last active October 16, 2025 22:01
default Drupal issue summary template
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
(Why the issue was filed, steps to reproduce the problem, etc.)
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
(Detailed instructions on how to reproduce the issue, including exact versions used, specific paths to visit, what actions to take, etc.)
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
(Description of the proposed solution, the rationale behind it, and workarounds for people who cannot use the patch.)
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
@mxr576
mxr576 / bash-coder-prompt.md
Last active September 1, 2025 14:58
LLM prompt for coding in Bash

You are an expert bash script developer. Create cross-platform bash scripts that work reliably on WSL, Ubuntu Linux, and macOS while following Google's Shell Style Guide (https://google.github.io/styleguide/shellguide.html).

Core requirements

Essential script structure:

#!/usr/bin/env bash
set -eou pipefail
if [[ -n "${DEBUG:-}" ]]; then
 set -x
@mxr576
mxr576 / README.md
Created November 8, 2023 12:50
Apigee Contrib Kickstart Composer template

Composer project template that speeds up contribution to Apigee Edge Drupal module and Apigee API client PHP library.

Steps

  1. Pick composer.json
  2. Fork these components on Github.
  3. Change CHANGE_ME strings in repository urls to your Github user name.
  4. Run composer install

You get these components installed from version control. After that you can follow the regular GitHub PR workflow.

@mxr576
mxr576 / Dockerfile
Last active September 8, 2023 13:20
DDQG Composer Audit Docker image with Composer Audit Changes plugin
################################################################################
# DDQG Composer Audit Docker image with Composer Audit Changes plugin.
#
# Usage:
# - docker buildx build --tag mxr576/ddqg_composer_audit:latest .
# - docker run --rm -ti -v [PATH_TO_COMPOSER_PROJECT_ROOT]:/app -v ${COMPOSER_HOME:-$HOME/.composer}/cache:/tmp/composer/cache mxr576/ddqg_composer_audit:latest audit -d /app 2>/dev/null # Ignore STDERR that constains the #StandWithUkraine message and leads to malformed JSON output
#
# See further ideas at https://hub.docker.com/r/composer/composer
#
# Simplified and customized version of https://github.com/composer/docker/blob/cc32c94811040536eb15e46c251a5ee36d5da1ea/2.5/Dockerfile
<?php
/**
* @file
* Dumping ground for stubs, until a pattern emerges.
*/
declare(strict_types=1);
namespace Drupal\datetime\Plugin\Field\FieldType {
@mxr576
mxr576 / README.md
Created November 7, 2022 12:34 — forked from mpdude/README.md
Use `jq` to tweak `composer.json` requirements

Change Symfony requirements in composer.json

This took me two hours on stackoverflow.com, so I'm going to document it to future me:

In the composer.json require section, for all packages starting with symfony/, but not for symfony/monolog-bundle, change the required version to the value of the $VERSION environment variable.

Write out the updated composer.json file in a way that works _without sponge`, which is not installed on GitHub Action runners by default.

@mxr576
mxr576 / Custom Nginx preset.md
Created October 18, 2022 12:09
How to setup basic auth in DrupalDev (Wodby Nginx)
@mxr576
mxr576 / .eslintrc.yml
Created June 27, 2022 06:25
Experimenting with linting yaml-s with eslint-plugin-yml
extends:
- plugin:yml/standard
rules:
yml/block-mapping:
- error
- always
yml/block-sequence:
- error
- always
yml/quotes:
@mxr576
mxr576 / check_config_changes.sh
Last active June 15, 2022 14:44
Drupal: Check config changes caused by https://www.drupal.org/node/3230199
##############################################################################
# This is a KISS script to compare configuration changes caused by https://www.drupal.org/node/3230199
# Make sure https://github.com/homeport/dyff is installed before you use this.
# License GPL-2.0-or-later.
###############################################################################
#!/usr/bin/env bash
echo "Enter the path of the original config directory, e.g.: /foo/bar/build/config"
read -r old_config_dir