This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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")/"' _ {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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")/"' _ {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fail2Ban | |
| ``` | |
| sudo apt update; | |
| sudo apt install fail2ban; | |
| sudo nano /etc/fail2ban/jail.local; | |
| ``` | |
| # | |
| Grundkonfiguration: | |
| ```[DEFAULT] | |
| bantime = 1h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **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> ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ubuntu-drivers list; | |
| sudo ubuntu-drivers install; | |
| # install a specific version from the list: | |
| sudo ubuntu-drivers install nvidia:535; |
NewerOlder