composer require drupal/upgrade_status --dev
drush en upgrade_status
drush upgrade_status:analyze --all --ignore-contrib
# docker alias' | |
alias dupl='docker compose up -d; docker compose logs -f php' | |
alias dup='docker compose up -d' | |
alias dstop='docker compose stop' | |
alias drm='docker compose rm' | |
alias dphp='docker compose exec php bash' | |
alias dnode='docker compose exec node bash' | |
alias dq="docker compose exec quasar bash" |
# remove specific file from git cache | |
git rm --cached filename | |
# remove all files from git cache | |
git rm -r --cached . | |
git add . | |
git commit -m ".gitignore is now working" |
# display all processes running on port 80 | |
netstat -aon | findstr 0.0:80 | |
# diplay the process details | |
tasklist /FI "PID eq 18748" |
-- DROP TABLE #tmpTableSizes | |
CREATE TABLE #tmpTableSizes | |
( | |
tableName varchar(100), | |
numberofRows varchar(100), | |
reservedSize varchar(50), | |
dataSize varchar(50), | |
indexSize varchar(50), | |
unusedSize varchar(50) | |
) |
<template> | |
<div> | |
<!--start-here--> | |
</div> | |
</template> | |
<script setup> | |
import { ref, computed } from 'vue' | |
// props and emits | |
const props = defineProps(['someProp']) |
# redirect from multiple domains to your primary domain | |
if (isset($_SERVER['WODBY_ENVIRONMENT_TYPE']) && $_SERVER['WODBY_ENVIRONMENT_TYPE'] == 'prod' && php_sapi_name() != "cli") { | |
$redirect_from = array( | |
'oldsite.com', | |
'alternative-spelling.com', | |
); | |
if (in_array($_SERVER['HTTP_HOST'], $redirect_from)) { | |
header('HTTP/1.0 301 Moved Permanently'); | |
header('Location: https://primary-domain.com'); |
# rebuild permissions | |
drush php-eval "node_access_rebuild();" | |
# remove missing module | |
drush sql-query "DELETE FROM key_value WHERE collection='system.schema' AND name='module_name';" | |
# how to re-apply drupal update | |
drush ev "drupal_set_installed_schema_version('field_group', 8000)" |
# show all pods | |
kubectl get pods --all-namespaces | |
# get pod info | |
kubectl -n {uuid} describe pods {container_name} | |
# delete pod | |
kubectl -n {uuid} delete pods -lname={container_name} | |
# view pod log |