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
# 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")/"' _ {} \;
# move all files
find . -type f -exec bash -c 'mkdir -p "${1%/*}/$(date -r "$1" "+%Y")"; mv "$1" "${1%/*}/$(date -r "$1" "+%Y")/"' _ {} \;
# copy files
find . -type f -exec bash -c 'mkdir -p "${1%/*}/$(date -r "$1" "+%Y")"; cp "$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;