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 | |
Install_me_so=' | |
apt-get install debsums | |
wget -O /usr/local/bin/deb2diffs https://gist.github.com/ilyaevseev/8818910/raw/67677ef6324554f51aea390e39597ad97140d3de/deb2diffs.sh | |
chmod +x /usr/local/bin/deb2diffs | |
' | |
#set -x | |
Fail() { echo "$@" 1>&2; exit 1; } |
--- sphinxapi.php.orig 2013-07-02 00:55:44.000000000 +0200 | |
+++ sphinxapi.php 2014-03-21 11:52:10.000000000 +0100 | |
@@ -847,2 +847,2 @@ | |
- assert ( is_float($min) ); | |
- assert ( is_float($max) ); | |
+ assert ( is_float($min) || is_numeric($min) ); | |
+ assert ( is_float($max) || is_numeric($max) ); |
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $MIN_DELTA = 120; | |
my $nan; | |
my $last_good; |
#!/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:
#!/usr/bin/perl | |
# http://www.mail-archive.com/smokeping-users@lists.oetiker.ch/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:VerySecretPassword@mercurial.example.ru:5000" | |
Push0() { | |
local o="/tmp/$2.log" | |
local e="/tmp/$2.err" | |
( | |
cd "$1" |
#!/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 |