sh
composer.json
"config": {
"discard-changes": true,
}
19.12.2025 | Michael Ebert
Composer update fails with "has uncommitted changes": How to fix
19.12.2025 | Michael Ebert
How to run a PHPUnit test for custom Drupal code
13.11.2025 | Peter Majmesku
Install the Latest GitFlow Version on macOS
git-global-config.sh
git config --global --add --bool push.autoSetupRemote true
git config --global pull.rebase false
08.08.2025 | Peter Majmesku
Git: Useful global settings for all projects
Mac:
replace_token_mac.sh
find $HOME/.config/kube/krauthosting/ -type f -exec sed -i '' 's/[old_token]/[new_token]/g' {} \;Linux:
replace_token_linux.sh
find $HOME/.config/kube/krauthosting/ -type f -exec sed -i 's/[old_token]/[new_token]/g' {} \;
13.06.2025 | Michael Ebert
Internal: Replace invalid git access token in all kubeconfig files
get_one_time_login_for_domains.sh
drush uli
https://my-project.dev.erd.fish/user/reset/1/1743658959/GxIzcvUB-Hv7E9WPoxyAIF-_pXD4kTH3GCIXQ2QFZz0/login
get_environment_one_time_login.txt
copy:
/user/reset/1/1743658959/GxIzcvUB-Hv7E9WPoxyAIF-_pXD4kTH3GCIXQ2QFZz0/login
look up your site domains in the .ddev/.ddev-docker-compose-base.yaml:
external_links:
- "ddev-router:cms.ddev.site"
Add everything after '/' from the drush uli command.
cms.ddev.site/user/reset/1/1743659359/GxIzcvUB-Hv7E9WPoxyAIF-_pXD4kTH3GCIXQ2QFZz0/login
12.06.2025 | Lothar Ferreira Neumann
Login with drush uli on multiple domains of a multi-site Drupal system
db-import.sh
mc ls --json wgs3/drupal-wg-bike/dumps/lnx-prd-01-blue-live-2025-03-25-backup.sql.gz
mc cat wgs3/drupal-wg-bike/dumps/lnx-prd-01-blue-live-2025-03-25-backup.sql.gz | pv -s 32944378 | gunzip -c | ddev drush sqlc
28.03.2025 | Dominik Wille
DB Import from minio with progress bar
.env
PHP_XDEBUG_MODE=profilekcachegrind_symlink.sh
ln -s /var/www/conductix.com /var/www/htmlkcachegrind.sh
kcachegrind web/sites/default/files/cachegrind.out.127.gzphp.development.ini
xdebug.profiler_output_name = cachegrind.out.%p
xdebug.output_dir=/var/www/html/web/sites/default/files
21.03.2025 | Dominik Wille
XDebug Profiler
start_docker.sh
# start Docker anywhere
up:
@if [ -n "$(docker ps -q)" ]; then \
echo "Stopping existing containers..."; \
docker stop $(docker ps -q); \
fi; \
echo "Starting project containers..."; \
doc up
21.03.2025 | Lothar Ferreira Neumann