Skip to content

Instantly share code, notes, and snippets.

@mariuz
mariuz / flamerobin_DAL.mermaid
Created April 27, 2026 17:19
Tansitioning from legacy IBPP to a C++20-based fb-cpp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mariuz
mariuz / pr512.md
Last active April 24, 2026 09:53
Diagram of the change in this PR (cursor state handling across `Commit()` / `Rollback()`):
flowchart TD
  A[Application code] --> B[TransactionImpl::Commit() / Rollback()]
  B --> C[Firebird ends transaction]
  C --> D[Firebird auto-closes all cursors (server-side)]

  subgraph Before[Before (bug)]
    D --> E1[StatementImpl::mCursorOpened stays true]
    E1 --> F1[Next Execute(): calls CursorFree()]
 F1 --> G1[isc_dsql_free_statement(DSQL_close)]
@mariuz
mariuz / root-cause-object-ownership.mmd
Created April 24, 2026 09:15
root-cause-object-ownership.mmd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mariuz
mariuz / root-cause-observer-dangling-pointer.mmd
Created April 24, 2026 09:13
root-cause-observer-dangling-pointer.mmd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mariuz
mariuz / PHPFirebirdCompatibilityGuideV6.1.1.md
Last active December 4, 2025 15:10
PHP Firebird — Compatibility Guide Versions covered: 5.0.2 → 6.1.1-RC.2

PHP Firebird — Compatibility Guide

Versions covered: 5.0.2 → 6.1.1-RC.2
Purpose: one-page upgrade & compatibility reference with short migration examples you can share with your team.


Quick summary (why read this)

Between 5.0.2 and 6.1.1-RC.2 the extension added Firebird 4/5 type support, new transaction/INI options, client-version helpers, and changed some runtime behaviors that may break existing code:

  • INT128 values are represented as strings (5.0.2).
  • New IBASE_LOCK_TIMEOUT + INI options to control lock timeouts (6.1.1-RC.0).
import json
import logging
import time
import boto3
from botocore.exceptions import ClientError
logger = logging.getLogger(__name__)
sns_resource = boto3.resource('sns')
@mariuz
mariuz / connect_and_query_firebird.ts
Created November 19, 2019 17:24
Connect to firebird database with typescript using node-firebird-driver-native and run some queries
import { createNativeClient, getDefaultLibraryFilename } from 'node-firebird-driver-native';
const connect_options = { username: 'sysdba', password: 'masterkey' }
async function test() {
const client = createNativeClient(getDefaultLibraryFilename());
const attachment = await client.connect('localhost:/tmp/new-db.fdb', connect_options);
const transaction = await attachment.startTransaction();
@mariuz
mariuz / create.ts
Last active November 19, 2019 17:20
create database typescript using node-firebird-driver-native
import { createNativeClient, getDefaultLibraryFilename } from 'node-firebird-driver-native';
const connect_options = { username: 'sysdba', password: 'masterkey' }
async function create() {
const client = createNativeClient(getDefaultLibraryFilename());
const attachment = await client.createDatabase('localhost:/tmp/new-db.fdb', connect_options);
await client.dispose();
}
using UnityEngine;
using System.Collections;
using System;
using System.IO;
public class VideoLoadManager : Singleton<VideoLoadManager>
{
public enum TourType
{
Guided,
using UnityEngine;
using UnityEngine.VR;
public class VRMouseLook : MonoBehaviour {
#if UNITY_EDITOR
public bool enableYaw = true;
public bool autoRecenterPitch = true;
public bool autoRecenterRoll = true;