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 | |
# Original version: https://raw.githubusercontent.com/rhukster/sphp.sh/main/sphp.sh | |
script_version=1.0.0 | |
# Supported PHP versions | |
brew_array=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0" "8.1" "8.2" "8.3" "8.4") | |
target_version=$1 | |
php_version="php@$target_version" |
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 | |
mkdir -p /volume1/tmp/plex/ > /dev/null 2>&1 | |
token=$(cat /volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Preferences.xml | grep -oP 'PlexOnlineToken="\K[^"]+') | |
url=$(echo "https://plex.tv/api/downloads/5.json?channel=plexpass&X-Plex-Token=$token") | |
jq=$(curl -s "${url}") | |
newversion=$(echo $jq | jq -r .nas.Synology.version) | |
echo "Latest Version: $newversion" |
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
# Install dnsmasq. | |
brew install dnsmasq | |
# Setup *.dev. | |
echo 'address=/.dev/127.0.0.1' > /usr/local/etc/dnsmasq.conf | |
# Start it and ensure it auto-starts on reboot in the future | |
sudo brew services start dnsmasq | |
# Setup dns resovler. |