Listening:
- 12.04: on 127.0.0.1:9000
- 14.04: on /var/run/php5-fpm.sock
Suhosin:
- 12.04: present
- 14.04: gone away, see http://askubuntu.com/a/298772/228477
#!/bin/sh | |
# | |
# /etc/cron.daily/redmine_database_backup | |
# | |
# Works under Debian/Ubuntu | |
# | |
MAIL_TO="admins" # ..see also /etc/aliases | |
REDMINE_CONFIG="/etc/redmine/default/database.yml" | |
MYSQL_CONFIG="/etc/mysql/debian.cnf" | |
DESTDIR="/home/redmine_backups" |
Listening:
Suhosin:
#!/bin/sh | |
( | |
cd /usr/local/domaincheck || exit 1 | |
mkdir -p state logs || exit 1 | |
./domaincheck domains.txt state > logs/$(date +%Y%m%d-%H%M%S).log 2>&1 | |
find logs/ -type f -name '*.log' -mtime +30 -delete |
#!/usr/bin/perl | |
# http://www.mail-archive.com/[email protected]/msg04048.html | |
# this script would be run when smokeping detects some loss. The | |
# smokeping trigger could look like: | |
# | |
# +highLossTwice | |
# type = loss | |
# pattern = >70%,>70% |
#!/bin/sh | |
WEBAPP_BASEDIR="/home/webapp" | |
HGSERVER_URI="http://webserv1:[email protected]:5000" | |
Push0() { | |
local o="/tmp/$2.log" | |
local e="/tmp/$2.err" | |
( | |
cd "$1" |
#!/bin/sh | |
TSTAMP="$(LANG=C date +%Y.%m.%d_%H%M%S)" | |
DIR="/var/lib/mysqldump" | |
LOG="$DIR/log-$TSTAMP.log" | |
DUMP="$DIR/dump_all_databases.sql" | |
Fail() { logger "$0: $@"; echo "$@" | mail -s "mysqldump failed" admins; exit 1; } | |
mkdir -p "$DIR" || Fail "Mkdir $DIR failed." |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use CGI; | |
my $cgi = new CGI; | |
my $textTitle = 'Change LDAP password'; | |
my $textHeader = 'Change your LDAP password'; |
#!/bin/sh | |
xrandr | perl -ne ' | |
BEGIN { my ($x, $y) = (0, 0) } | |
END { printf "%sx%s\n", $x, $y if $x and $y } | |
/^\s+(\d+)x(\d+)\s+\d/ && ($1 + $2 > $x + $y) && (($x, $y) = ($1, $2)); | |
' | xargs -r xrandr -s |
#!/bin/sh | |
# | |
# Generate index page and thumbnail pictures | |
# for all GIF/JPG/PNG/... stuff in current directory. | |
# | |
THUMBDIR=thumbnails | |
THUMBSIZE=160x120 | |
INDEX=index.html | |
INDEX0=index.inc |