brew install docker --cask
from /Applications/Docker.app
Wait until the "Docker Dashboard starting…"-message disappears (= Setup complete)
#!/bin/zsh | |
# ================================================================================ | |
# A macOS shell script to create an .icns icon file from an image input file | |
# | |
# NOTE: make this file executable first using: | |
# chmod +x /path/to/icon_maker.sh | |
# | |
# -------------------------------------------------------------------------------- | |
# Source: https://gist.github.com/Swiss-Mac-User/7a1a55e499db618c59718cbffe23318c |
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 |
#!/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]" |
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"' \; |
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" |
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 |
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Files that might appear in the root of a volume | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems |
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 |
# === 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' |