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
# screen hacks | |
LESS='-MRXFC~' | |
alias more='less -mFERX~' | |
# git | |
alias gi='git add -i' | |
alias gl='git log --oneline --all --graph --decorate' | |
alias glp='git log -p' | |
alias gp='git add -p' | |
alias gs='git status -b -s -uno' |
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
--- httpd-2.2.27/support/rotatelogs.c | |
+++ httpd-2.2.27/support/rotatelogs.c | |
@@ -56,6 +56,7 @@ | |
#if APR_HAVE_STRINGS_H | |
#include <strings.h> | |
#endif | |
+#include <unistd.h> | |
#define BUFSIZE 65536 | |
#define ERRMSGSZ 256 |
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
rsync --del will refuse to delete files vanished from source (even when the whole parent dirs are gone), but appear in --exclude directives. you may agree with the logic, or not. | |
override with --delete-excluded |
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
1. backup - it may be destructive if you hate perl. | |
2. review - it does not catch all strings | |
# export strings for labels and descriptions | |
perl -ne '$p="PREFIX"; if (/name="(.*?)".*label="(.*?)".*description="(.+?)"/) { $n="\U$1"; $l=$2; $ll=$p."_$n"."_LBL"; $d=$3; $dd=$p."_$n"."_DESC"; s~$l~$ll~; s~$d~$dd~; print "$ll=\"$l\"\n$dd=\"$d\"\n"; }' extension.xml > translation.ini | |
# replace them with placeholders | |
perl -i -pe '$p="PREFIX"; if (/name="(.*?)".*label="(.*?)".*description="(.+?)"/) { $n="\U$1"; $l=$2; $ll=$p."_$n"."_LBL"; $d=$3; $dd=$p."_$n"."_DESC"; s~$l~$ll~; s~$d~$dd~; }' extension.xml |
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
--- suhosin-patch-5.3.9-0.9.10.patch 2012-01-11 22:05:08.000000000 +0100 | |
+++ suhosin-patch-5.3.22-0.9.10.patch 2013-03-08 20:20:46.000000000 +0100 | |
@@ -5701,21 +5701,21 @@ | |
diff -Nura php-5.3.9/sapi/cgi/cgi_main.c suhosin-patch-5.3.9-0.9.10/sapi/cgi/cgi_main.c | |
--- php-5.3.9/sapi/cgi/cgi_main.c 2012-01-01 14:15:04.000000000 +0100 | |
+++ suhosin-patch-5.3.9-0.9.10/sapi/cgi/cgi_main.c 2012-01-11 19:36:52.000000000 +0100 | |
-@@ -1932,11 +1932,19 @@ | |
+@@ -1955,11 +1955,19 @@ | |
SG(headers_sent) = 1; | |
SG(request_info).no_headers = 1; |