Skip to content

Instantly share code, notes, and snippets.

View mariuz's full-sized avatar

Popa Marius Adrian mariuz

View GitHub Profile
@mariuz
mariuz / my steam survey linux.txt
Created March 15, 2017 21:07
my steam survey linux
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Pentium(R) Dual-Core CPU E5400 @ 2.70GHz
CPU Family: 0x6
@mariuz
mariuz / make.android.x86_64
Last active October 24, 2016 09:15
firebird make file for android x86_64
ifeq ($(NDK),)
$(error Must export NDK location before building for Android)
endif
NDK_ROOT:=$(NDK)
#NDK_LOG:=1
include $(NDK)/build/core/init.mk
TOOLCHAIN_DIR:=$(foreach chain, $(NDK_ALL_TOOLCHAINS), $(if $(findstring x86_64, $(chain)), $(chain), ))
# Filter out clang
emerge --oneshot portage
* IMPORTANT: 17 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
[ebuild N ] sys-apps/install-xattr-0.5
[ebuild NS ] dev-lang/python-3.4.3-r1 [2.7.9-r1, 3.3.5-r1] USE="gdbm ipv6 ncurses readline ssl threads xml -build -examples -hardened -sqlite -tk -wininst"
[ebuild N ] dev-python/packaging-15.3-r2 USE="{-test}" PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) -python3_3 (-python3_5)"
[ebuild U ] dev-python/setuptools-18.4 [7.0] PYTHON_TARGETS="python3_4* -python3_3* (-python3_5)"
@mariuz
mariuz / icu_error.log
Created March 31, 2016 18:45
Icu Error with Firebird 3.0 patch
make[6]: Making `all' in `makeconv'
make[7]: Entering directory '/home/mariuz/work/libo/workdir/UnpackedTarball/firebird/extern/icu/source/tools/makeconv'
generating dependency information for gencnvex.c
generating dependency information for genmbcs.c
generating dependency information for ucnvstat.c
generating dependency information for makeconv.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common -I./../toolutil -DHAVE_CONFIG_H -pthread -c -o makeconv.o makeconv.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common -I./../toolutil -DHAVE_CONFIG_H -pthread -c -o ucnvstat.o ucnvstat.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common -I./../toolutil -DHAVE_CONFIG_H -pthread -c -o genmbcs.o genmbcs.c
gcc -I/home/mariuz/work/libo/workdir/UnpackedTarball/libatomic_ops/src -D_REENTRANT -I../../common -I../../common
@mariuz
mariuz / VC14Changes.diff
Created March 30, 2016 15:17
Add Visual Studio 14 Changes to compilre firebird 2.5 branch https://github.com/FirebirdSQL/firebird/pull/12
diff --git a/src/burp/burp.cpp b/src/burp/burp.cpp
index 58dfdf0..1f29346 100644
--- a/src/burp/burp.cpp
+++ b/src/burp/burp.cpp
@@ -126,8 +126,8 @@ static const StatFormat STAT_FORMATS[] =
{
{"time", "%4lu.%03u ", 9},
{"delta", "%2lu.%03u ", 7},
- {"reads", "%6"UQUADFORMAT" ", 7},
- {"writes", "%6"UQUADFORMAT" ", 7}
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "flamerobin", "flamerobin_flamerobin.vcproj", "{3C914FEE-C6E8-58AA-B046-6E951FCD6BFC}"
ProjectSection(ProjectDependencies) = postProject
{F98A5270-7698-516C-9430-13EBB667AEA5} = {F98A5270-7698-516C-9430-13EBB667AEA5}
{F98A5270-7698-516C-9430-13EBB667AEA5} = {F98A5270-7698-516C-9430-13EBB667AEA5}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ibpp", "flamerobin_ibpp.vcproj", "{F98A5270-7698-516C-9430-13EBB667AEA5}"
EndProject
@mariuz
mariuz / UpgradeLogVS2013.htm
Created November 19, 2015 14:47
UpgradeLogVS2013.htm
<!DOCTYPE html>
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="ConversionReport0">
Migration Report
</title><style>
/* Body style, for the entire document */
body
{
background: #F3F3F4;
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ibase.h>
#define SVC_RESPBUF 512
int main (void) {
char *user = "SYSDBA",
@mariuz
mariuz / isc_service_attach.c
Created August 4, 2015 17:02
isc_service_attach test gcc isc_service_attach.c -lfbclient
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ibase.h>
int main (void) {
char *user = "SYSDBA",
*pass = "masterkey";
char *x;
@mariuz
mariuz / test-script-for-phpbug-61183.php
Created July 16, 2015 14:08
test-script-for-phpbug-61183
cat test.php
<?php
try
{
$dbh = new PDO('firebird:host=localhost;dbname=/tmp/tests.fdb', 'SYSDBA', 'masterkey');
for($i = 0; $i < 5000; $i++)
{
$statement = $dbh->prepare('INSERT INTO "PHPBB_USERS" ("USER_ID", "USERNAME", "USERNAME_CLEAN", "USER_PERMISSIONS", "USER_SIG", "USER_OCC", "USER_INTERESTS") VALUES (?, ?, ?, ?, ?, ?, ?)');
$statement->execute(array (0 => '2', 1 => 'banned', 2 => 'banned', 3 => '', 4 => '', 5 => '', 6 => ''));
echo 'Statement run: ' . $i . "\n";