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
| // generic menu | |
| m_on = "On" | |
| m_off = "Off" | |
| m_back = "Back" | |
| m_select = "Select" | |
| m_ok = "OK" | |
| m_y_or = "Y or" | |
| m_n_or = "N or" | |
| // iis menu |
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
| osascript -e "display notification \"This notification comes straight from Terminal.app to your macOS Notification Center, thanks to AppleScript 🤓\"" |
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
| #!/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 |
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
| 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 |
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
| #!/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]" |
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
| 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"' \; |
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
| 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" |
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
| 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 |
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
| # General | |
| .DS_Store | |
| .AppleDouble | |
| .LSOverride | |
| # Files that might appear in the root of a volume | |
| .DocumentRevisions-V100 | |
| .fseventsd | |
| .Spotlight-V100 | |
| .TemporaryItems |
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
| 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 |
NewerOlder