irm "https://christitus.com/win" | iex
// Select and Install: Git, Node LTS (v22), VsCode, Chrome, Firefox
| "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. |
| # display all processes running on port 80 | |
| netstat -aon | findstr 0.0:80 | |
| # diplay the process details | |
| tasklist /FI "PID eq 18748" |