Skip to content

Instantly share code, notes, and snippets.

@freemed
freemed / phpmyadmin-3.4.3-3.4.3.2.diff
Created July 27, 2011 12:32
phpmyadmin 3.4.3 to 3.4.3.2 security patch
diff -uNr phpMyAdmin-3.4.3-all-languages/ChangeLog phpMyAdmin-3.4.3.2-all-languages/ChangeLog
--- phpMyAdmin-3.4.3-all-languages/ChangeLog 2011-06-27 10:25:09.000000000 -0400
+++ phpMyAdmin-3.4.3.2-all-languages/ChangeLog 2011-07-23 08:42:50.000000000 -0400
@@ -1,6 +1,18 @@
phpMyAdmin - ChangeLog
======================
+3.4.3.2 (2011-07-23)
+- [security] Fixed XSS vulnerability, see PMASA-2011-9
+- [security] Fixed local file inclusion vulnerability, see PMASA-2011-10
@freemed
freemed / ppa_publish.sh
Created July 11, 2011 18:04
PPA multiple distribution publishing script
#!/bin/bash
# Build and publish Ubuntu/Debian source packages for several releases
# without manually editing debian/changelog each time
#
# Written by TJ <ubuntu@tjworld.net> July 2008
#
if [ $# -eq 0 ]; then
echo -e "\nUsage: $(basename $0) dput-ppa release-a [[release-b] [release-c]]\n"
echo -e " \tE.g. $(basename $0) my-ppa gutsy hardy intrepid\n"
echo "Edits the changelog before calling debuild and dput to publish"
@freemed
freemed / package-ganglia-release.sh
Created July 5, 2011 05:25
Ganglia svn packaging script
#!/bin/bash
#
# package-ganglia-release
# jeff@freemedsoftware.org
#
TAG=$1
CURDIR="$( cd "$(dirname "$0")"; pwd )"
if [ "$TAG" == "" ]; then
@freemed
freemed / tag-ganglia-release.sh
Created July 5, 2011 05:24
Ganglia svn tagging script
#!/bin/bash
#
# tag-ganglia-release
# jeff@freemedsoftware.org
#
TAG=$1
FROM=$2
if [ "$TAG" == "" -o "$FROM" == "" ]; then
@freemed
freemed / gmond-tags.diff
Created June 27, 2011 19:25
gmond tags support
Index: monitor-core/gmetad/xml_hash.c
===================================================================
--- monitor-core/gmetad/xml_hash.c (revision 2618)
+++ monitor-core/gmetad/xml_hash.c (working copy)
@@ -35,12 +35,12 @@
#line 5 "xml_hash.gperf"
struct xml_tag;
-#define TOTAL_KEYWORDS 32
+#define TOTAL_KEYWORDS 33
@freemed
freemed / gist:1038132
Created June 21, 2011 15:40
gmond+gmetric force spoof patch
Index: monitor-core/lib/libgmond.c
===================================================================
--- monitor-core/lib/libgmond.c (revision 2616)
+++ monitor-core/lib/libgmond.c (working copy)
@@ -66,6 +66,8 @@
CFG_BOOL("gexec", 0, CFGF_NONE),
CFG_INT("send_metadata_interval", 0, CFGF_NONE),
CFG_STR("module_dir", NULL, CFGF_NONE),
+ CFG_STR("override_hostname", NULL, CFGF_NONE),
+ CFG_STR("override_ip", NULL, CFGF_NONE),