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
# Variable used for multiple IF hack | |
set $is_maintenance ""; | |
# Check for notice HTML file | |
if (-f /var/www/django/kontrafon/templates/maintenance.html) { | |
set $is_maintenance M; | |
} | |
# Use this to circumvent maintenance message | |
if ($remote_addr != "1.2.3.4") { |
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/sh | |
PRINTER=s2a | |
COPIES=1 | |
ARGS="" | |
HOST=tyr | |
DRY=0 | |
if ! opts=$(getopt -o p:n:r:h:fd24 -l fit,duplex,host:,range:,dry -- "$@") | |
then | |
echo "Usage: dprint [-p printer] [-n copies] [--fit] [--duplex] [-2 | -4]" |