Skip to content

Instantly share code, notes, and snippets.

View mariuz's full-sized avatar

Popa Marius Adrian mariuz

View GitHub Profile
@mariuz
mariuz / Lazarus 1.0 release available for download.html
Created August 30, 2012 12:04
Lazarus 1.0 release available for download
The Lazarus team is glad to <a href=http://lazarus.freepascal.org/index.php/topic,18019.html>announce</a> the release of:<br /> <strong>Lazarus 1.0</strong><br /><br />At this important stage the current team would like to thank all the past and current people who were involved in getting us here.<br />* Thanks also go to the FPC team for providing the compiler that makes it all possible.<br />* Special thanks go to the founders of the project who started Lazarus more than a decade ago in 1999: Cliff Baeseman, Shane Miller and Michael A. Hess.<br />* A history of developers involved can be found at <a href="http://wiki.lazarus.freepascal.org/History" class="bbc_link" target="_blank">http://wiki.lazarus.freepascal.org/History</a>. And a list of the many contributors comes with the distribution.&nbsp; <br /><br />The release is available for download at the SourceForge download page:<br /><a href="http://sourceforge.net/projects/lazarus/files/" class="bbc_link" target="_blank">http://sourceforge.net/projects/la
@mariuz
mariuz / DriverExample.java
Created June 23, 2011 19:54
Firebird driver example using jaybird-full jar
// Original version of this file was part of InterClient 2.01 examples
//
// Copyright InterBase Software Corporation, 1998.
// Written by com.inprise.interbase.interclient.r&d.PaulOstler :-)
//
// Code was modified by Roman Rokytskyy to show that Firebird JCA-JDBC driver
// does not introduce additional complexity in normal driver usage scenario.
//
// A small application to demonstrate basic, but not necessarily simple, JDBC features.
//
@mariuz
mariuz / models.py
Created January 17, 2011 11:00
models for firebirdsql.ro (tip use TextField for large text areas like html text)
from django.db import models
# Create your models here.
class News(models.Model):
title = models.CharField(max_length=140)
body = models.TextField()
url = models.URLField()
publication_date = models.DateField()
def __unicode__(self):
# Django settings for django_frontend project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
@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();
<h2>Conceptual Architecture for Firebird</h2>
<P>Hubert Chan and Dmytro Yashkir<BR>
Faculty of Mathematical, Statistical and Computer Sciences<BR>
University of Waterloo, Canada.<BR>
January 29, 2002</P>
<p>Updated by : Popa Adrian Marius<br>
January , 2011
</p>
<H4>Abstract</H4>
import json
import logging
import time
import boto3
from botocore.exceptions import ClientError
logger = logging.getLogger(__name__)
sns_resource = boto3.resource('sns')
<?php
$str_conn="firebird:host=localhost;dbname=/var/lib/firebird/2.5/data/employee.fdb;charset=UTF8";
$dbh = new PDO($str_conn, "sysdba", "masterkey");
?>
@mariuz
mariuz / emperor.sh
Last active August 26, 2020 12:59
uwsgi emperor init script for debian 7.x
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: emperor
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the uwsgi emperor app server
# Description: starts uwsgi emperor app server using start-stop-daemon
@mariuz
mariuz / execute_insert_statement.py
Created May 19, 2012 19:17
new fdb firebird driver example :execute insert statement
# $ pip install fdb
# use this documentation for the moment http://www.firebirdsql.org/file/documentation/drivers_documentation/python/3.3.0/tutorial.html#connecting-to-a-database
import fdb as kinterbasdb
con = kinterbasdb.connect(dsn='/var/lib/firebird/2.5/data/rdbgraph.fdb', user='sysdba', password='masterkey')
cur = con.cursor()
# Execute the insert statement:
name="name"