brew install docker --cask
from /Applications/Docker.app
Wait until the "Docker Dashboard starting…"-message disappears (= Setup complete)
| /** --- | |
| * To set an existing column in MySQL 5.7 from 0000-00-00 00:00:00 to NULL as default | |
| * the following iterative 3 steps will get the job done. | |
| * (Without just using the NO_ZERO_DATE compatibility mode-workaround) | |
| --- */ | |
| /* Step 1) Set all 0000-00-00... to a valid but nonsense value: */ | |
| UPDATE my_table SET my_datetime_col = '1001-01-01 00:00:00' WHERE CAST(my_datetime_col AS CHAR(20)) = '0000-00-00 00:00:00'; | |
| /* Step 2) Modify the column to DEFAULT: NULL */ |
| # === MAMP App === | |
| # Start/Stop | |
| alias mamp='/Applications/MAMP/bin/start.sh' | |
| alias mamp_stop='/Applications/MAMP/bin/stop.sh' | |
| # === MAMP Apache === | |
| alias apachectl='/Applications/MAMP/Library/bin/apachectl' | |
| alias apache='apachectl' |
| COMPOSE_PROJECT_NAME=“myapp" | |
| OS_PLATFORM="linux/x86_64" | |
| HTTP_PORT=80 | |
| HTTPS_PORT=443 | |
| DOMAINNAME="localhost" # With hosts entry, adjust accordingly like "myapp.local" | |
| APACHE_WEBROOT="/var/www" | |
| PHP_Version=7.4 | |
| MYSQL_TYPE="mariadb" # Use "mariadb" or "mysql" | |
| MYSQL_VERSION="latest" | |
| MYSQL_PORT=3306 |
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| # Files that might appear in the root of a volume | |
| .DocumentRevisions-V100 | |
| .fseventsd | |
| .Spotlight-V100 | |
| .TemporaryItems |
| services: | |
| apache-php: | |
| platform: linux/x86_64 | |
| image: php:8.1-apache | |
| container_name: my-website | |
| restart: unless-stopped | |
| environment: | |
| - APACHE_DOCUMENT_ROOT=/var/www/html | |
| hostname: mywebsite | |
| domainname: mywebsite.local |
| COMPOSE_PROJECT_NAME="myblog" | |
| OS_PLATFORM="linux/x86_64" | |
| HTTP_PORT="80" | |
| HTTPS_PORT="443" | |
| WP_LOCALHOST="wordpress" | |
| WP_HOST_WEBFILES="./public" | |
| WP_HOST_DATABASEFILES="./mariadb" | |
| WP_WEBROOT="/var/www/html" | |
| WP_DB_NAME="wordpress" | |
| WP_DB_USER="root" |
| find /path/to/dir -maxdepth 2 -type f -exec sh -c 'iconv -f utf-8 -t utf-8 "{}" >/dev/null 2>&1 || echo "{}: Not UTF-8"' \; |
| #!/bin/bash | |
| # Inspired from: https://x.com/SwissMacUser/status/1349065380514426883 | |
| # Personally used to add event reminders to the downloadabl iCalendar files | |
| # of the yearly Stadt Zürich digital Entsorgungskalender at | |
| # https://www.stadt-zuerich.ch/ted/de/index/entsorgung_recycling/entsorgen/persoenlicher_entsorgungskalender.html | |
| # Check if the minimum number of arguments is provided | |
| if [ "$#" -lt 2 ]; then | |
| echo "Usage: $0 <path-to-ics-file> <hours-to-alert-before> [backup]" |
| seta r_fullscreen "1" // Run game in fullscreen. 0=windowed | |
| seta r_mode "-1" // Enable a custom resolution (width + height) | |
| seta r_customWidth "2560" // Mac display resolution WIDTH | |
| seta r_customHeight "1440" // Mac display resolution HEIGHT | |
| seta r_aspectRatio "1" // Set aspect ratio: 0=4:3 (default), 1=16:9 (widescreen), 2=16:10 (ultrawide) | |
| seta com_fixedTic "-1" // dhewm3-specific: uncapped FPS (>60 FPS) | |
| seta com_showFPS "1" // Show the in-game FPS counter. 0=off |