Skip to content

Instantly share code, notes, and snippets.

View AlexanderS's full-sized avatar

Alexander Sulfrian AlexanderS

View GitHub Profile
#!/bin/bash
TARGET="$HOME/test"
DATABASES=$( cat ./enabledDBs )
for DATABASE in ${DATABASES}; do
mysqldump ${DATABASE} > ${TARGET}/${DATABASE}.mysql
done
#!/bin/bash
TARGET="$HOME/test"
egrep -v "^(#|\\s*$)" ./enabledDBs | while read DATABASE ; do
mysqldump "${DATABASE}" > "${TARGET}/${DATABASE}.mysql"
done
From cf0ddf751c0ce25ad86beac65f3ed2654d65ba13 Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <[email protected]>
Date: Wed, 14 Nov 2012 01:54:41 +0100
Subject: [PATCH] bcfg2-info: flush output buffer before exit
The process should not use os._exit to terminate. This does not flush
the output buffers and causes that the output does not appear, if
stdout is piped away.
---
src/sbin/bcfg2-info | 2 +-
From cf0ddf751c0ce25ad86beac65f3ed2654d65ba13 Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <[email protected]>
Date: Wed, 14 Nov 2012 01:54:41 +0100
Subject: [PATCH] bcfg2-info: flush output buffer before exit
The process should not use os._exit to terminate. This does not flush
the output buffers and causes that the output does not appear, if
stdout is piped away.
---
src/sbin/bcfg2-info | 2 +-
From 4c1758df588ceec301402c954801cdd8753138a5 Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <[email protected]>
Date: Tue, 14 Oct 2014 22:45:40 +0200
Subject: [PATCH] TestOptions: mock parser.error
This removes the irritating error messages during the tests.
---
.../Testsrc/Testlib/TestOptions/TestComponents.py | 3 +++
.../Testsrc/Testlib/TestOptions/TestConfigFiles.py | 2 ++
.../Testlib/TestOptions/TestOptionGroups.py | 2 ++
diff --git a/schemas/packages.xsd b/schemas/packages.xsd
index e538bb0..e7ecf12 100644
--- a/schemas/packages.xsd
+++ b/schemas/packages.xsd
@@ -211,6 +211,16 @@
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
+ <xsd:attribute type="xsd:string" name="name">
+ <xsd:annotation>
From 588acb5e623f0d245f247d33bd13f76a1e3a3618 Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <[email protected]>
Date: Tue, 21 Oct 2014 19:25:07 +0200
Subject: [PATCH] Bcfg2/Options: fix early parsing hook for later added Options
---
src/lib/Bcfg2/Options/Options.py | 2 ++
src/lib/Bcfg2/Options/Parser.py | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
From 8782caa2bff62eb996d6790f49287529752a138d Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <[email protected]>
Date: Tue, 21 Oct 2014 22:36:05 +0200
Subject: [PATCH 1/2] testsuite: check if early_parsing_hook is called
---
.../Testsrc/Testlib/TestOptions/TestOptions.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/testsuite/Testsrc/Testlib/TestOptions/TestOptions.py b/testsuite/Testsrc/Testlib/TestOptions/TestOptions.py