Skip to content

Instantly share code, notes, and snippets.

# list all apps
umbreld client apps.list.query
#stop app
umbreld client apps.stop.mutate --appId appname
#restart app after changing docker-compose.yml
umbreld client apps.restart.mutate --appId appname
# copy files into folders
find . -type f -exec bash -c 'mkdir -p "${1%/*}/$(date -r "$1" "+%Y")"; cp "$1" "${1%/*}/$(date -r "$1" "+%Y")/"' _ {} \;
#move files into folders
find . -type f -exec bash -c 'mkdir -p "${1%/*}/$(date -r "$1" "+%Y")"; mv "$1" "${1%/*}/$(date -r "$1" "+%Y")/"' _ {} \;
# on local repo path
# rename origin
git remote rename origin bitbucket;
# add new github origin
git remote add origin git@github.com:workspace/repo.git;
# push to new github repo
git push -u origin main;
Schritt-für-Schritt Konfiguration (503-Response für gebannte IPs)
1. Apache so konfigurieren, dass er Client-IPs korrekt sieht
Installiere und aktiviere mod_remoteip:
sudo a2enmod remoteip
In /etc/apache2/conf-available/remoteip.conf (neu anlegen):
Fail2Ban
```
sudo apt update;
sudo apt install fail2ban;
sudo nano /etc/fail2ban/jail.local;
```
#
Grundkonfiguration:
```[DEFAULT]
bantime = 1h
**Schritt 1: Interface identifizieren**
Finde heraus, wie dein Ethernet-Interface heißt:
`ip link`
Du siehst eine Liste wie:
1: lo: <LOOPBACK,...>
2: enp3s0: <BROADCAST,MULTICAST> ...
#composer requirements
"require-dev": {
"captainhook/captainhook": "^5.25",
"deployer/deployer": "^7.5",
"friendsofphp/php-cs-fixer": "^3.75",
"frosh/shopware-rector": "^0.5.5",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-symfony": "^2.0",
"rector/rector": "^2.0",
"shopware/dev-tools": "^1.5",
ubuntu-drivers list;
sudo ubuntu-drivers install;
# install a specific version from the list:
sudo ubuntu-drivers install nvidia:535;
## https://forum.shopware.com/t/bild-als-cover-setzen-bei-mehrfachaenderung/96122/14
## set cover image
UPDATE
product p
LEFT JOIN product_media pm ON (p.id = pm.product_id AND p.version_id = pm.product_version_id AND pm.position = (
SELECT
min(position)
FROM
product_media
WHERE
ddev config --project-type=php --docroot=htdocs --create-docroot --web-working-dir=/var/www/html/ \
--database=mysql:8.0 --php-version=8.2 --nodejs-version=20 --webserver-type=apache-fpm \
--web-environment-add="DATABASE_URL=mysql://db:db@db:3306/db,MAILER_DSN=smtp://localhost:1025?encryption=&auth_mode=,APP_URL=\${DDEV_PRIMARY_URL},APP_DEBUG=1,APP_ENV=dev"