This file contains 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
find . -type f -print0 | xargs -0 -n1 shellcheck |
This file contains 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
#!/bin/bash | |
# Function to display usage information | |
usage() { | |
echo "Usage: $0 source_directory [-o output_file] [-e exclude_dirs] [-x exclude_exts]" | |
echo " source_directory Source directory to be processed" | |
echo " -o output_file Optional output file name (default: output.txt)" | |
echo " -e exclude_dirs Optional comma-separated list of directories to exclude" | |
echo " -x exclude_exts Optional comma-separated list of file extensions to exclude" | |
exit 1 |
This file contains 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
#!/bin/bash | |
GREEN='\033[1;32m' | |
RED='\033[1;31m' | |
NC='\033[0m' # No Color | |
while true; do | |
if ping -c 1 google.com &> /dev/null; then | |
echo -e "${GREEN}$(date): Internet connection is up${NC}" | |
else |
This file contains 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
colima start --cpu=3 --disk=64 --memory=6 --dns=1.1.1.1 |
This file contains 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
php ./vendor/bin/typo3cms cache:flush |
This file contains 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
# Docker Compose reuses anonymous volumes created by the previous containers for the new containers. This way the new cache container can reuse the cache from the old container. To force Docker Compose to renew anonymous volumes for the new containers, we use: | |
docker compose up --build --force-recreate -V | |
# ----------------------------------------------------------------------------- | |
# Deploying changes | |
# When you make changes to your app code, remember to rebuild your image and recreate your app’s containers. To redeploy a service called web, use: | |
docker-compose build web | |
docker-compose up --no-deps -d web |
This file contains 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
* { | |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; | |
} |
This file contains 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
git ls-tree --full-tree -r --name-only HEAD |
This file contains 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
php -d memory_limit=-1 bin/console cache:clear |
This file contains 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_MEMORY_LIMIT=-1 composer upgrade |
NewerOlder