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
/** | |
* Progressive Enahncement to use SVG sprites with PNG fallback for IE6+7 | |
* | |
* The trick: | |
* Legacy IE does not support rgba values. | |
* By defining a rgba background color together with the | |
* SVG background image for all modern browsers, legacy IE | |
* will ignore the SVG and use the | |
* first background definition containing the fallback PNG | |
* |
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
# We only have one backend to define: NGINX | |
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
} | |
# Only allow purging from specific IPs | |
acl purge { | |
"localhost"; | |
"127.0.0.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
############################################################################### | |
## Basic Configuration | |
############################################################################### | |
# Start Monit as background daemon and delay 1st check (in seconds) after boot | |
set daemon 60 | |
with start delay 120 | |
# Mail configuration |
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
#!/usr/bin/env bash | |
# Set locales to C (raw uninterpreted byte sequence) to avoid illegal byte sequence errors and invalid number errors | |
export LANG=C LC_NUMERIC=C LC_COLLATE=C | |
# Check for proper input parameters | |
# Filename and selected JPEG compressor should both be set | |
if [ -z $1 ] || [ -z $2 ]; then | |
echo "Please select 2 JPEGs to compare" | |
exit 1 |