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
# Use basic filtering of `drush status` to hopefully ensure more broader support | |
# for various drush versions. | |
DRUPAL_VERSION=$(drush status | grep -i "drupal version" | awk '{print $NF}'); | |
if [ "${DRUPAL_VERSION%.*}" == "7" ] ; then | |
if drush cc all; then echo "drush cc all complete"; else exit $?; fi; | |
elif [ "${DRUPAL_VERSION%.*.*}" -ge "8" ] ; then | |
if drush cr -y; then echo "drush cache:rebuild complete"; else exit $?; fi; | |
else \ | |
echo "could not clear cache for found Drupal version ${DRUPAL_VERSION}"; | |
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
docker-compose-yaml: docker-compose.yml | |
environments: | |
production: | |
routes: | |
- nginx: | |
- "www.example.com" |
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
# Query string stripping for web analytics. | |
# | |
# Currently stripped query parameteres include: | |
# - Google Analytics | |
# - Google Adwords (Doubleclick) | |
set req.http.X-Original-Url = req.url; | |
set req.url = querystring.globfilter(req.url, "utm_*"); | |
set req.url = querystring.filter(req.url, | |
"fbclid" + querystring.filtersep() + |
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 | |
# Script to Auto Update Plex on Synology NAS | |
# | |
# Must be run as root. | |
# | |
# @author Martino https://forums.plex.tv/u/Martino | |
# @see https://forums.plex.tv/t/script-to-auto-update-plex-on-synology-nas-rev4/479748 | |
mkdir -p /tmp/plex/ |