Skip to content

Instantly share code, notes, and snippets.

View mariuz's full-sized avatar

Popa Marius Adrian mariuz

View GitHub Profile
@mariuz
mariuz / test db for phpbug 61183.sql
Created July 16, 2015 14:06
test db for phpbug 61183
CREATE TABLE phpbb_users (
user_id INTEGER NOT NULL,
user_type INTEGER DEFAULT 0 NOT NULL,
group_id INTEGER DEFAULT 3 NOT NULL,
user_permissions BLOB SUB_TYPE TEXT CHARACTER SET NONE DEFAULT '' NOT NULL,
user_perm_from INTEGER DEFAULT 0 NOT NULL,
user_ip VARCHAR(40) CHARACTER SET NONE DEFAULT '' NOT NULL,
user_regdate INTEGER DEFAULT 0 NOT NULL,
username VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
username_clean VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
@mariuz
mariuz / mariuz.xml
Created July 14, 2015 07:42
sudo lshw -xml > marius.xml
<?xml version="1.0" standalone="yes" ?>
<!-- generated by lshw-B.02.16 -->
<!-- GCC 4.8.2 -->
<!-- Linux 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 -->
<!-- GNU libc 2 (glibc 2.19) -->
<list>
<node id="lorkstation64" claimed="true" class="system" handle="DMI:0001">
<description>Desktop Computer</description>
<product>To Be Filled By O.E.M. (To Be Filled By O.E.M.)</product>
<vendor>To Be Filled By O.E.M.</vendor>
@mariuz
mariuz / gist:ecfbab056136b8736bda
Last active August 29, 2015 14:23
gdb backtrace libo
export CPPUNITTRACE="gdb --args"
SAL_LOG="+WARN+INFO.connectivity.firebird" make CppunitTest_dbaccess_firebird_test
make -j 4 -rs -f /home/mariuz/work/libo/Makefile.gbuild CppunitTest_dbaccess_firebird_test
[build CUT] dbaccess_firebird_test
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
(gdb) run
Starting program: /home/mariuz/work/libo/workdir/LinkTarget/Executable/cppunittester /home/mariuz/work/libo/workdir/LinkTarget/CppunitTest/libtest_dbaccess_firebird_test.so --headless -env:BRAND_BASE_DIR=file:///home/mariuz/work/libo/instdir -env:BRAND_SHARE_SUBDIR=share -env:UserInstallation=file:///home/mariuz/work/libo/workdir/CppunitTest/dbaccess_firebird_test.test.user -env:CONFIGURATION_LAYERS=xcsxcu:file:///home/mariuz/work/libo/instdir/share/registry\ xcsxcu:file:///home/mariuz/work/libo/workdir/unittest/registry -env:UNO_TYPES=file:///home/mariuz/work/libo/instdir/program/types/offapi.rdb\ file:///home/mariuz/work/libo/instdir/program/types/oovbaapi.rdb\ file:///home/mariuz/work/libo/instdir/program/types.rd
@mariuz
mariuz / firebird_backtrace_test
Created June 24, 2015 14:59
backtrace to libreoffice issue #72987 export CPPUNITTRACE="gdb --args"
warn:connectivity.firebird:13656:1:connectivity/source/drivers/firebird/Util.cxx:51: firebird_sdbc error:
*invalid database handle (no active connection)
caused by
'isc_detach_database'
Catchpoint 1 (exception thrown), 0x00002aaaab2068b0 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#0 0x00002aaaab2068b0 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1 0x00002aaabf0e34e7 in connectivity::firebird::evaluateStatusVector(long const (&) [20], rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::uno::XInterface> const&) () from /home/mariuz/work/libo/instdir/program/libfirebird_sdbclo.so
#2 0x00002aaabf0b2b29 in connectivity::firebird::Connection::disposing() () from /home/mariuz/work/libo/instdir/program/libfirebird_sdbclo.so
#3 0x00002aaaacd3513a in cppu::WeakComponentImplHelperBase::dispose (this=0x2aaaca8dde90) at /home/mariuz/work/libo/cppuhelper/source/implbase.cxx:109
patching file builds/posix/make.defaults
patching file builds/posix/make.shared.variables
Hunk #1 succeeded at 292 (offset 1 line).
patching file builds/posix/Makefile.in.examples
patching file builds/posix/Makefile.in.extlib
patching file builds/posix/Makefile.in.firebird
Hunk #2 succeeded at 301 (offset -1 lines).
patching file builds/posix/Makefile.in.intl
patching file builds/posix/Makefile.in.libfbembed
patching file builds/posix/Makefile.in.libfbstatic
@mariuz
mariuz / libo_firebird3.patch
Last active April 1, 2016 16:27
Libreoffice with Firebird3 patch
diff --git a/download.lst b/download.lst
index 7ba8351..7f3899d 100644
--- a/download.lst
+++ b/download.lst
@@ -34,10 +34,10 @@ export ETONYEK_MD5SUM := 77ff46936dcc83670557274e7dd2aa33
export ETONYEK_VERSION_MICRO := 6
export ETONYEK_TARBALL := libetonyek-0.1.$(ETONYEK_VERSION_MICRO).tar.bz2
export EXPAT_TARBALL := dd7dab7a5fea97d2a6a43f511449b7cd-expat-2.1.0.tar.gz
-export FIREBIRD_MD5SUM := b0b5293991fcf07347b38431c80be1d4
-export FIREBIRD_TARBALL := Firebird-2.5.5.26952-0.tar.bz2
@mariuz
mariuz / save_to_fbk.patch
Created March 24, 2015 16:09
save_to_fbk.patch
diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx
index 8958bd2..1f83f94 100644
--- a/connectivity/source/drivers/firebird/Connection.cxx
+++ b/connectivity/source/drivers/firebird/Connection.cxx
@@ -75,7 +75,7 @@ using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::uno;
-const OUString Connection::our_sDBLocation( "firebird.fdb" );
+const OUString Connection::our_sFBKLocation( "firebird.fbk" );
@mariuz
mariuz / Xorg.0.log
Created March 14, 2015 18:09
xorg log lubuntu 15.04 flgrx
[ 37.088]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[ 37.088] X Protocol Version 11, Revision 0
[ 37.088] Build Operating System: Linux 3.2.0-61-generic x86_64 Ubuntu
[ 37.088] Current Operating System: Linux mariuz-K52JT 3.19.0-9-generic #9-Ubuntu SMP Wed Mar 11 17:50:03 UTC 2015 x86_64
[ 37.088] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.19.0-9-generic root=UUID=5267e944-5389-4628-9c67-c6b769b7a3f5 ro nomodeset
[ 37.088] Build Date: 12 March 2015 04:06:59PM
[ 37.088] xorg-server 2:1.17.1-0ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 37.088] Current version of pixman: 0.32.6
#include "ibase.h"
#include <string>
#include <boost/thread.hpp>
#define BOOST_TEST_MODULE LegacyTests
#include <boost/test/included/unit_test.hpp>
using std::string;
using boost::thread;
@mariuz
mariuz / linking flamerobin.txt
Created January 29, 2015 14:08
linking flamerobin with qt
$ g++ -o flamerobin flamerobin_addconstrainthandler.o flamerobin_Config.o flamerobin_DatabaseConfig.o flamerobin_ArtProvider.o flamerobin_CodeTemplateProcessor.o flamerobin_FRError.o flamerobin_Observer.o flamerobin_ProgressIndicator.o flamerobin_StringUtils.o flamerobin_Subject.o flamerobin_TemplateProcessor.o flamerobin_URIProcessor.o flamerobin_Visitor.o flamerobin_databasehandler.o flamerobin_MetadataLoader.o flamerobin_frprec.o flamerobin_frutils.o flamerobin_AboutBox.o flamerobin_AdvancedMessageDialog.o flamerobin_AdvancedSearchFrame.o flamerobin_BackupFrame.o flamerobin_BackupRestoreBaseFrame.o flamerobin_BaseDialog.o flamerobin_BaseFrame.o flamerobin_CommandManager.o flamerobin_ConfdefTemplateProcessor.o flamerobin_ContextMenuMetadataItemVisitor.o flamerobin_ControlUtils.o flamerobin_DataGrid.o flamerobin_DataGridRowBuffer.o flamerobin_DataGridRows.o flamerobin_DataGridTable.o flamerobin_DBHTreeControl.o flamerobin_DndTextControls.o flamerobin_LogTextControl.o flamerobin_PrintableHtmlWindow.o flamerob