irm "https://christitus.com/win" | iex
// Select and Install: Git, Node LTS (v22), VsCode, Chrome, Firefox
| # AGENTS.md | |
| ## 📋 Project Summary | |
| - **Domain:** [Describe your project focus, e.g., Membership Management / Core CRM Portal] | |
| - **Target Environment:** Local dev sandbox and containerized staging pipelines. | |
| ## ⚙️ Tech Stack & Constraints | |
| - **Core Architecture:** [List core design patterns or framework setups] | |
| - **Frontend/UI:** [List UI engine or styling systems, e.g., Vue.js / Tailwind] | |
| - **Backend/Data Layer:** [List backend engine or state wrappers, e.g., Laravel / SQL] |
| "scripts": { | |
| "build": [ | |
| "drush site:install minimal --existing-config --db-url=mysql://root:password@mariadb:3306/drupal -y", | |
| "drush cr" | |
| ], | |
| "build2": [ | |
| "drush site:install --existing-config --db-url=mysql://root:password@mariadb:3306/drupal -y", | |
| "drush cr" |
| # Ignore gitpod files | |
| .env.gitpod |
https://drupalsun.com/eelke/2018/08/24/quick-tip-generating-hash-salt-drupal-8
Use this to generator a salt hash so that its not included in your settings.php file if you commit that file to your repo.
drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55)' > salt.txt
// alternative
drush php-eval 'echo \Drupal\Component\Utility\Crypt::randomBytesBase64(55)' > drupal\salt.txt
| // make screenshot window bigger using https://git.drupalcode.org/project/dtt | |
| $session = $this->getSession(); | |
| $session->resizeWindow(1920, 1080); // Full HD resolution | |
| $this->captureScreenshot($tp->id()); |
| #!/bin/bash | |
| # ref https://wodby.com/docs/1.0/infrastructure/disk/#3-moving-docker-and-wodbys-data-to-new-volume | |
| echo "Stopping all Kubernetes components and Docker..." | |
| # Stop all services in parallel | |
| systemctl stop kube-apiserver & | |
| systemctl stop kube-controller & | |
| systemctl stop kube-kubelet & |
| # docker aliases | |
| ## https://gist.github.com/ainsofs/ba947741b230606be5d2f4aad6faf7bf | |
| ## common | |
| alias dc='docker compose' | |
| alias dup='docker compose up -d --remove-orphans' | |
| alias dstop='docker compose stop' | |
| alias drm='docker compose rm' | |
| ## helpers | |
| alias dupp='docker compose up -d && docker compose exec php bash' # Start project and open php container. |